Package org.hyperledger.aries.webhook
Class TenantAwareEventHandler
- java.lang.Object
-
- org.hyperledger.aries.webhook.TenantAwareEventHandler
-
- All Implemented Interfaces:
IEventHandler
- Direct Known Subclasses:
TenantAwareEventHandler.DefaultTenantAwareEventHandler
public abstract class TenantAwareEventHandler extends Object implements IEventHandler
Event handler for multi tenant wallets. E.g. when running with --multitenant flag
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTenantAwareEventHandler.DefaultTenantAwareEventHandler
-
Constructor Summary
Constructors Constructor Description TenantAwareEventHandler()
-
Method Summary
-
-
-
Method Detail
-
handleEvent
public void handleEvent(String topic, String payload)
Description copied from interface:IEventHandlerHandler for regular wallets- Specified by:
handleEventin interfaceIEventHandler- Parameters:
topic- event typepayload- json payload
-
handleEvent
public void handleEvent(String walletId, String topic, String payload)
Description copied from interface:IEventHandlerHandler for multi tenant wallets- Specified by:
handleEventin interfaceIEventHandler- Parameters:
walletId- x-wallet-id HTTP header valuetopic- event typepayload- json payload
-
handleConnection
public void handleConnection(String walletId, ConnectionRecord connection) throws Exception
- Throws:
Exception
-
handleProof
public void handleProof(String walletId, PresentationExchangeRecord proof) throws Exception
- Throws:
Exception
-
handleProofV2
public void handleProofV2(String walletId, V20PresExRecord proof) throws Exception
- Throws:
Exception
-
handleCredential
public void handleCredential(String walletId, V1CredentialExchange credential) throws Exception
- Throws:
Exception
-
handleCredentialV2
public void handleCredentialV2(String walletId, V20CredExRecord v20Credential) throws Exception
- Throws:
Exception
-
handleDiscoverFeature
public void handleDiscoverFeature(String walletId, DiscoverFeatureEvent discoverFeature) throws Exception
- Throws:
Exception
-
handleIssueCredentialV2Indy
public void handleIssueCredentialV2Indy(String walletId, V2IssueIndyCredentialEvent credentialInfo) throws Exception
- Throws:
Exception
-
handleIssueCredentialV2LD
public void handleIssueCredentialV2LD(String walletId, V2IssueLDCredentialEvent credentialInfo) throws Exception
- Throws:
Exception
-
handleBasicMessage
public void handleBasicMessage(String walletId, BasicMessage message) throws Exception
- Throws:
Exception
-
handlePing
public void handlePing(String walletId, PingEvent ping) throws Exception
- Throws:
Exception
-
handleRevocation
public void handleRevocation(String walletId, RevocationEvent revocation) throws Exception
- Throws:
Exception
-
handleRevocationNotification
public void handleRevocationNotification(String walletId, RevocationNotificationEvent revocationNotification) throws Exception
- Throws:
Exception
-
handleRevocationNotificationV2
public void handleRevocationNotificationV2(String walletId, RevocationNotificationEventV2 revocationNotificationV2) throws Exception
- Throws:
Exception
-
handleRevocationRegistry
public void handleRevocationRegistry(String walletId, IssuerRevRegRecord revocationRegistry) throws Exception
- Throws:
Exception
-
handleEndorseTransaction
public void handleEndorseTransaction(String walletId, EndorseTransactionRecord transaction) throws Exception
- Throws:
Exception
-
handleProblemReport
public void handleProblemReport(String walletId, ProblemReport report) throws Exception
- Throws:
Exception
-
handleSettings
public void handleSettings(String walletId, Settings settings) throws Exception
- Throws:
Exception
-
-