Class LinkedAccountEvent

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

public class LinkedAccountEvent extends AccountEvent implements AuditableEvent
Event fired when an account is linked.
Since:
2.2.0
  • Constructor Details

    • LinkedAccountEvent

      public LinkedAccountEvent(String localAccountId, String linkingAccountManager, String foreignAccountId, String foreignDomainName)
      Parameters:
      localAccountId - The ID of the local account
      linkingAccountManager - The account manager handling this account link
      foreignAccountId - The ID of the account being linked
      foreignDomainName - The domain name of the account being linked
  • Method Details

    • getLocalAccountId

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

      @Deprecated public String getLocalDomainName()
      Deprecated.
      Use getLinkingAccountManager() instead. Deprecated since 3.0.0
      Get the domain name of the local account.
      Returns:
      The name of the local domain
    • getLinkingAccountManager

      public String 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

      public String getForeignAccountId()
      Get the ID of the account being linked.
      Returns:
      the ID of the foreign account
    • getForeignDomainName

      public String getForeignDomainName()
      Get the domain name of the account being linked.
      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.