Class AccountCreatedScimEvent

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

public class AccountCreatedScimEvent extends ScimEvent implements AuditableEvent
Event fired when an account is created through SCIM.
Since:
2.2.0
  • Constructor Details

    • AccountCreatedScimEvent

      public AccountCreatedScimEvent(String authenticatedSubject, String scimAccountId, AccountAttributes postedAccount, ResourceAttributes<?> storedAccount, @Nullable ResponseModel.MapResponseModel responseModel, String profileId)
      Parameters:
      authenticatedSubject - The subject responsible for creating the account
      scimAccountId - The ID of the created account
      postedAccount - The AccountAttributes used to created the account
      storedAccount - The attributes persisted on the account
      responseModel - The response model retrieved when creating the account (or null if none/unknown)
      profileId - The ID of the profile from which this event originated
  • Method Details

    • getScimAccountId

      public String getScimAccountId()
      Get the account ID of the account created in this event.
      Returns:
      the account ID of the created account
    • getPostedAccount

      public AccountAttributes getPostedAccount()
      The AccountAttributes posted when creating this account.
      Returns:
      The AccountAttributes posted for creating this account
    • getStoredAccount

      public ResourceAttributes<?> getStoredAccount()
      Get the ResourceAttributes that were persisted when storing this account.
      Returns:
      The ResourceAttributes that were persisted when storing this account
    • getResponseModel

      public Map<String,Object> getResponseModel()
      The response model retrieved when creating the account (empty map if none/unknown).
      Returns:
      The response model retrieved when creating the account (empty map if none/unknown)
    • 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 ScimEvent
      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.