Class AccountEvent

Object
se.curity.identityserver.sdk.data.events.AccountEvent
All Implemented Interfaces:
SerializableAsMap, Event
Direct Known Subclasses:
ActivatedAccountEvent, CreatedAccountEvent, LinkedAccountEvent, UnlinkedAccountEvent

public abstract class AccountEvent extends Object implements Event
Common base class for account events.
Since:
2.3.0
  • Constructor Details

    • AccountEvent

      protected AccountEvent(String username)
  • Method Details

    • getUsername

      public String getUsername()
      Get the username from the affected account.
      Returns:
      the username of the activated account
    • 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
      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.
    • toString

      public String toString()
      Overrides:
      toString in class Object