Class CredentialPolicyStateReadGraphQLEvent

Object
se.curity.identityserver.sdk.data.events.graphql.CredentialPolicyStateReadGraphQLEvent
All Implemented Interfaces:
SerializableAsMap, Event, GraphQLEvent, UserManagementGraphQLEvent

public final class CredentialPolicyStateReadGraphQLEvent extends Object implements UserManagementGraphQLEvent
Event fired when credential policies states are read via the GraphQL interface.
Since:
10.0
  • Constructor Details

    • CredentialPolicyStateReadGraphQLEvent

      public CredentialPolicyStateReadGraphQLEvent(String authenticatedSubject, String username, TenantId tenantId, MapAttributeValue attributesRead)
  • Method Details

    • getAuthenticatedSubject

      public String getAuthenticatedSubject()
      Description copied from interface: GraphQLEvent
      Get the authenticated subject, i.e. who triggered the event.
      Specified by:
      getAuthenticatedSubject in interface GraphQLEvent
      Returns:
      The subject of whoever triggered the event (client or user)
    • getUsername

      public String getUsername()
      Get the username ID of the user whose credential policy states are being read.
      Returns:
      username
    • getAttributesRead

      public MapAttributeValue getAttributesRead()
      Get the credential policy state read for the user.
      Returns:
      policy state
    • getTenantId

      public TenantId getTenantId()
      Returns:
      the tenant ID.
    • 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 GraphQLEvent
      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.