Class UnlinkedAccountEvent

Object
se.curity.identityserver.sdk.data.events.AccountEvent
se.curity.identityserver.sdk.data.events.UnlinkedAccountEvent
All Implemented Interfaces:
SerializableAsMap, AuditableEvent, Event

public class UnlinkedAccountEvent extends AccountEvent implements AuditableEvent
Event fired when an account is unlinked.
Since:
3.0.0
  • Constructor Details

    • UnlinkedAccountEvent

      public UnlinkedAccountEvent(String localAccountId, String linkingAccountManager, String foreignSubject, String foreignDomainName, TenantId tenantId)
      Parameters:
      localAccountId - The ID of the local account
      linkingAccountManager - The account manager handling this account link
      foreignSubject - The subject being linked
      foreignDomainName - The domain name of the subject being linked
      tenantId - The tenant ID of the local account
  • Method Details

    • getLocalAccountId

      public String getLocalAccountId()
      Get the ID of the local account.
      Returns:
      the ID of the local account
    • getLinkingAccountManager

      public String getLinkingAccountManager()
      Get the name of the account manager handling this linked account.
      Returns:
      The account manager responsible for this link
    • getForeignSubject

      public String getForeignSubject()
      Get the foreign subject being unlinked.
      Returns:
      the foreign subject
    • getForeignDomainName

      public String getForeignDomainName()
      Get the domain name of the account being unlinked.
      Returns:
      the name of the foreign domain
    • getAuditData

      public AuditData getAuditData()
      Description copied from interface: AuditableEvent
      Get all AuditData associated with this auditable event.

      This method must always return the same instant of AuditData.

      Specified by:
      getAuditData in interface AuditableEvent
      Returns:
      the AuditData concisely describing the auditable data of this event
    • asMap

      public Map<String,Object> asMap()
      Description copied from interface: Event
      Get a map representation of this Event.
      Specified by:
      asMap in interface Event
      Specified by:
      asMap in interface SerializableAsMap
      Overrides:
      asMap in class AccountEvent
      Returns:
      a Map representation of this Event. This can be used to serialize events. Sub-types are encouraged to override this method, calling super.asMap() and enriching the returned mutable Map with the more specific information added by the sub-type.