public interface ISafeguardA2AContext
| Modifier and Type | Method and Description |
|---|---|
String |
brokerAccessRequest(char[] apiKey,
BrokeredAccessRequest accessRequest)
Creates an access request on behalf of another user using Safeguard A2A.
|
void |
dispose()
Dispose of an object
|
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.
|
List<A2ARetrievableAccount> getRetrievableAccounts() throws ObjectDisposedException, SafeguardForJavaException
ObjectDisposedException - Object has already been disposed.SafeguardForJavaException - General Safeguard for Java exception.char[] retrievePassword(char[] apiKey)
throws ObjectDisposedException,
SafeguardForJavaException,
ArgumentException
apiKey - API key corresponding to the configured account.ObjectDisposedException - Object has already been disposed.SafeguardForJavaException - General Safeguard for Java exception.ArgumentException - Invalid argument.ISafeguardEventListener getA2AEventListener(char[] apiKey, ISafeguardEventHandler handler) throws ObjectDisposedException, ArgumentException
apiKey - 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.ISafeguardEventListener getA2AEventListener(List<char[]> apiKeys, ISafeguardEventHandler handler) throws ObjectDisposedException, ArgumentException
apiKeys - 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.ISafeguardEventListener getPersistentA2AEventListener(char[] apiKey, ISafeguardEventHandler handler) throws ObjectDisposedException, ArgumentException
apiKey - 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 argumentISafeguardEventListener getPersistentA2AEventListener(List<char[]> apiKeys, ISafeguardEventHandler handler) throws ObjectDisposedException, ArgumentException
apiKeys - 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 argumentString brokerAccessRequest(char[] apiKey, BrokeredAccessRequest accessRequest) throws ObjectDisposedException, SafeguardForJavaException, ArgumentException
apiKey - 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 argumentvoid dispose()
Copyright © 2019. All rights reserved.