public class SafeguardA2AContext extends Object implements ISafeguardA2AContext
| Constructor and Description |
|---|
SafeguardA2AContext(String networkAddress,
String certificatePath,
char[] certificatePassword,
int apiVersion,
boolean ignoreSsl) |
SafeguardA2AContext(String networkAddress,
String certificateAlias,
int apiVersion,
boolean ignoreSsl) |
SafeguardA2AContext(String networkAddress,
String certificateAlias,
String certificatePath,
char[] certificatePassword,
int apiVersion,
boolean ignoreSsl) |
| Modifier and Type | Method and Description |
|---|---|
String |
brokerAccessRequest(char[] apiKey,
BrokeredAccessRequest accessRequest)
Creates an access request on behalf of another user using Safeguard A2A.
|
Object |
cloneObject() |
void |
dispose()
Dispose of an object
|
protected void |
finalize() |
ISafeguardEventListener |
getA2AEventListener(char[] apiKey,
ISafeguardEventHandler handler)
Gets an A2A event listener.
|
ISafeguardEventListener |
getA2AEventListener(List<char[]> apiKeys,
ISafeguardEventHandler handler)
Gets an A2A event listener.
|
ISafeguardEventListener |
getPersistentA2AEventListener(char[] apiKey,
ISafeguardEventHandler handler)
Gets a persistent A2A event listener.
|
ISafeguardEventListener |
getPersistentA2AEventListener(List<char[]> apiKeys,
ISafeguardEventHandler handler)
Gets a persistent A2A event listener.
|
List<A2ARetrievableAccount> |
getRetrievableAccounts()
Retrieves the list of retrievable accounts for this A2A context.
|
char[] |
retrievePassword(char[] apiKey)
Retrieves a password using Safeguard A2A.
|
public SafeguardA2AContext(String networkAddress, String certificateAlias, String certificatePath, char[] certificatePassword, int apiVersion, boolean ignoreSsl)
public SafeguardA2AContext(String networkAddress, String certificateAlias, int apiVersion, boolean ignoreSsl)
public List<A2ARetrievableAccount> getRetrievableAccounts() throws ObjectDisposedException, SafeguardForJavaException
ISafeguardA2AContextgetRetrievableAccounts in interface ISafeguardA2AContextObjectDisposedException - Object has already been disposed.SafeguardForJavaException - General Safeguard for Java exception.public char[] retrievePassword(char[] apiKey)
throws ObjectDisposedException,
SafeguardForJavaException,
ArgumentException
ISafeguardA2AContextretrievePassword in interface ISafeguardA2AContextapiKey - API key corresponding to the configured account.ObjectDisposedException - Object has already been disposed.SafeguardForJavaException - General Safeguard for Java exception.ArgumentException - Invalid argument.public ISafeguardEventListener getA2AEventListener(char[] apiKey, ISafeguardEventHandler handler) throws ObjectDisposedException, ArgumentException
ISafeguardA2AContextgetA2AEventListener in interface ISafeguardA2AContextapiKey - API key corresponding to the configured account to listen for.handler - A delegate to call any time the AssetAccountPasswordUpdate event occurs.ObjectDisposedException - The object has already been disposed.ArgumentException - Invalid argument.public ISafeguardEventListener getA2AEventListener(List<char[]> apiKeys, ISafeguardEventHandler handler) throws ObjectDisposedException, ArgumentException
ISafeguardA2AContextgetA2AEventListener in interface ISafeguardA2AContextapiKeys - A list of API keys corresponding to the configured accounts to listen for.handler - A delegate to call any time the AssetAccountPasswordUpdate event occurs.ObjectDisposedException - The object has already been disposed.ArgumentException - Invalid argument.public ISafeguardEventListener getPersistentA2AEventListener(char[] apiKey, ISafeguardEventHandler handler) throws ObjectDisposedException, ArgumentException
ISafeguardA2AContextgetPersistentA2AEventListener in interface ISafeguardA2AContextapiKey - API key corresponding to the configured account to listen for.handler - A delegate to call any time the AssetAccountPasswordUpdate event occurs.ObjectDisposedException - The object has already been disposed.ArgumentException - Invalid argumentpublic ISafeguardEventListener getPersistentA2AEventListener(List<char[]> apiKeys, ISafeguardEventHandler handler) throws ObjectDisposedException, ArgumentException
ISafeguardA2AContextgetPersistentA2AEventListener in interface ISafeguardA2AContextapiKeys - A list of API keys corresponding to the configured accounts to listen for.handler - A delegate to call any time the AssetAccountPasswordUpdate event occurs.ObjectDisposedException - The object has already been disposed.ArgumentException - Invalid argumentpublic String brokerAccessRequest(char[] apiKey, BrokeredAccessRequest accessRequest) throws ObjectDisposedException, SafeguardForJavaException, ArgumentException
ISafeguardA2AContextbrokerAccessRequest in interface ISafeguardA2AContextapiKey - API key corresponding to the configured account.accessRequest - The details of the access request to create.ObjectDisposedException - Object has already been disposed.SafeguardForJavaException - General Safeguard for Java exception.ArgumentException - Invalid argumentpublic void dispose()
ISafeguardA2AContextdispose in interface ISafeguardA2AContextprotected void finalize()
throws Throwable
public Object cloneObject()
Copyright © 2019. All rights reserved.