Class CreatedAccountEvent
Object
se.curity.identityserver.sdk.data.events.AccountEvent
se.curity.identityserver.sdk.data.events.CreatedAccountEvent
- All Implemented Interfaces:
SerializableAsMap,AuditableEvent,Event
Event fired when an account is created.
- Since:
- 2.2.0
-
Constructor Summary
ConstructorsConstructorDescriptionCreatedAccountEvent(AccountAttributes postedAccount, AccountAttributes storedAccount) Creates an AccountCreatedEvent with the given attributes used to create and persist the account. -
Method Summary
Modifier and TypeMethodDescriptionasMap()Get a map representation of thisEvent.Get allAuditDataassociated with this auditable event.Get theAccountAttributesthat were posted to create this account.Get theAccountAttributesthat got persisted when creating this account.Methods inherited from class se.curity.identityserver.sdk.data.events.AccountEvent
getUsername, toString
-
Constructor Details
-
CreatedAccountEvent
Creates an AccountCreatedEvent with the given attributes used to create and persist the account.- Parameters:
postedAccount- theAccountAttributesused for initiating account creationstoredAccount- theAccountAttributesthat got persisted when creating this account
-
-
Method Details
-
getPostedAccount
Get theAccountAttributesthat were posted to create this account.- Returns:
- the
AccountAttributesused for initiating account creation
-
getStoredAccount
Get theAccountAttributesthat got persisted when creating this account.- Returns:
- the
AccountAttributesof the created account
-
getAuditData
Description copied from interface:AuditableEventGet allAuditDataassociated with this auditable event.This method must always return the same instant of
AuditData.- Specified by:
getAuditDatain interfaceAuditableEvent- Returns:
- the
AuditDataconcisely describing the auditable data of this event
-
asMap
Description copied from interface:EventGet a map representation of thisEvent.- Specified by:
asMapin interfaceEvent- Specified by:
asMapin interfaceSerializableAsMap- Overrides:
asMapin classAccountEvent- Returns:
- a
Maprepresentation of thisEvent. This can be used to serialize events. Sub-types are encouraged to override this method, callingsuper.asMap()and enriching the returned mutableMapwith the more specific information added by the sub-type.
-