Class LinkedAccountEvent
Object
se.curity.identityserver.sdk.data.events.AccountEvent
se.curity.identityserver.sdk.data.events.LinkedAccountEvent
- All Implemented Interfaces:
SerializableAsMap,AuditableEvent,Event
Event fired when an account is linked.
- Since:
- 2.2.0
-
Constructor Summary
ConstructorsConstructorDescriptionLinkedAccountEvent(String localAccountId, String linkingAccountManager, String foreignAccountId, String foreignDomainName) Creates aLinkedAccountEvent. -
Method Summary
Modifier and TypeMethodDescriptionasMap()Get a map representation of thisEvent.Get allAuditDataassociated with this auditable event.Get the ID of the account being linked.Get the domain name of the account being linked.Get the name of the account manager handling this linked account.Get the ID of the local account.Deprecated.Methods inherited from class se.curity.identityserver.sdk.data.events.AccountEvent
getUsername, toString
-
Constructor Details
-
LinkedAccountEvent
public LinkedAccountEvent(String localAccountId, String linkingAccountManager, String foreignAccountId, String foreignDomainName) Creates aLinkedAccountEvent.- Parameters:
localAccountId- The ID of the local accountlinkingAccountManager- The account manager handling this account linkforeignAccountId- The ID of the account being linkedforeignDomainName- The domain name of the account being linked
-
-
Method Details
-
getLocalAccountId
Get the ID of the local account.- Returns:
- the ID of the local account
-
getLocalDomainName
Deprecated.UsegetLinkingAccountManager()instead. Deprecated since 3.0.0Get the domain name of the local account.- Returns:
- The name of the local domain
-
getLinkingAccountManager
Get the name of the account manager handling this linked account.- Returns:
- The account manager responsible for this link
- Since:
- 3.0.0
-
getForeignAccountId
Get the ID of the account being linked.- Returns:
- the ID of the foreign account
-
getForeignDomainName
Get the domain name of the account being linked.- Returns:
- the name of the foreign domain
-
getAuditData
Description copied from interface:AuditableEventGet allAuditDataassociated with this auditable event.This method must always return the same instant of
AuditData.- Specified by:
getAuditDatain interfaceAuditableEvent- Returns:
- the
AuditDataconcisely describing the auditable data of this event
-
asMap
Description copied from interface:EventGet a map representation of thisEvent.- Specified by:
asMapin interfaceEvent- Specified by:
asMapin interfaceSerializableAsMap- Overrides:
asMapin classAccountEvent- Returns:
- a
Maprepresentation of thisEvent. This can be used to serialize events. Sub-types are encouraged to override this method, callingsuper.asMap()and enriching the returned mutableMapwith the more specific information added by the sub-type.
-
getLinkingAccountManager()instead.