Package org.hyperledger.aries
Class AriesWebSocketClient
- java.lang.Object
-
- org.hyperledger.aries.webhook.ReactiveEventHandler
-
- org.hyperledger.aries.AriesWebSocketClient
-
- All Implemented Interfaces:
AutoCloseable,IEventHandler
public class AriesWebSocketClient extends ReactiveEventHandler implements AutoCloseable
ACA-PY Websocket Client: Receives events from aca-py
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAriesWebSocketClient.AriesWebSocketClientBuilder
-
Constructor Summary
Constructors Constructor Description AriesWebSocketClient(String url, String apiKey, String bearerToken, okhttp3.OkHttpClient client, List<IEventHandler> handler, List<String> walletIdFilter)Create a new websocket client, supports builder methods like:AriesWebSocketClient.builder().build()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AriesWebSocketClient.AriesWebSocketClientBuilderbuilder()voidclose()-
Methods inherited from class org.hyperledger.aries.webhook.ReactiveEventHandler
basicMessage, connection, credentialEx, credentialExV2, credentialIssueIndy, credentialIssueLD, discoverFeature, endorseTrx, handleEvent, handleEvent, issuerRevocation, ping, presentationEx, presentationExV2, problemReport, revocationNotification, revocationNotificationV2
-
-
-
-
Constructor Detail
-
AriesWebSocketClient
public AriesWebSocketClient(@Nullable String url, @Nullable String apiKey, @Nullable String bearerToken, @Nullable okhttp3.OkHttpClient client, List<IEventHandler> handler, @Nullable List<String> walletIdFilter)Create a new websocket client, supports builder methods like:AriesWebSocketClient.builder().build()- Parameters:
url- Optional: The aca-py ws URL e.g. ws(s)://host:[port]/ws, defaults to localhostapiKey- Optional: The admin api key if security is enabledbearerToken- Optional: The Bearer token used in the Authorization header when running in multi tenant modeclient- Optional:OkHttpClientif null or not set a default client is createdhandler- Optional: None, one or many custom event handler implementations, defaults toEventHandler.DefaultEventHandlerwalletIdFilter- Optional: Filter events by provided walletId
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
builder
public static AriesWebSocketClient.AriesWebSocketClientBuilder builder()
-
-