Interface SerializableAsMap
- All Known Subinterfaces:
AlarmDescription,AuditableEvent,Delegation,Event,GraphQLEvent,ProblemDetails,ScopeClaim,ScopeConfig,UserManagementGraphQLEvent
- All Known Implementing Classes:
AccessTokenAuthenticationEvent,AccessTokenOAuthEvent,AccountAttributes,AccountCreatedGraphQLEvent,AccountCreatedScimEvent,AccountDeletedGraphQLEvent,AccountDeletedScimEvent,AccountEvent,AccountReadGraphQLEvent,AccountReadScimEvent,AccountSearchScimEvent,AccountUpdatedGraphQLEvent,AccountUpdatedScimEvent,ActivatedAccountEvent,AttributeAdditions,AttributeReplacements,Attributes,AuditData,AuthenticationAttemptEvent,AuthenticationAttributes,AuthenticationEvent,AuthorizationAttributes,AuthorizationCodeOAuthEvent,BackchannelAuthenticationEvent,ClientAuthenticationEvent,ClientIdentifier,ConfigurationChangedSystemEvent,ConsentAttributes,ConsentorCompleteOAuthEvent,ConsentorCompleteOAuthEvent.Success,ConsentorCompleteOAuthEvent.Unsuccessful,ConsentorResultAttributes,ConsumedAuthorizationCodeOAuthEvent,ConsumedDeviceCodeOAuthEvent,ConsumedInitialAccessTokenDcrOAuthEvent,CreatedAccountEvent,CreatedDeviceEvent,CreatedSsoSessionEvent,CredentialManagerEvent,DelegationOauthEvent,DeletedDeviceEvent,DeniedIntrospectionOAuthEvent,DeviceAttributes,DeviceCodeOAuthEvent,DeviceEvent,DeviceUpdatedEvent,DynamicallyRegisteredClientAttributes,EventMetaData,FailedAuthenticationActionEvent,FailedAuthenticationEvent,FailedCatVerificationEvent,FailedVerificationCredentialManagerEvent,FailureBackchannelAuthenticationEvent,FailureClientAuthenticationEvent,IdTokenOAuthEvent,InitialAccessTokenDcrOAuthEvent,IntrospectionOAuthEvent,IssuedAccessTokenOAuthEvent,IssuedAuthorizationCodeOAuthEvent,IssuedDelegationOAuthEvent,IssuedDeviceCodeOAuthEvent,IssuedIdTokenOAuthEvent,IssuedInitialAccessTokenDcrOAuthEvent,IssuedRefreshTokenOAuthEvent,LinkedAccountEvent,LoginAuthenticationEvent,LogoutAuthenticationEvent,OAuthEvent,PasswordUpdatedCredentialManagerEvent,PendingCompletionAuthenticationActionEvent,ProfileAddedSystemEvent,RefreshTokenOAuthEvent,RegisteredDcrClientOAuthEvent,ResourceAttributes,ResourceQuery,RevokedAccessTokenOAuthEvent,RevokedDelegationOAuthEvent,RevokedDelegationScimEvent,RevokedInitialAccessTokenDcrOAuthEvent,RevokedRefreshTokenOAuthEvent,ScimEvent,SessionEvent,StartedBackchannelAuthenticationEvent,SuccessAuthenticationActionEvent,SuccessAuthenticationEvent,SuccessBackchannelAuthenticationEvent,SuccessClientAuthenticationEvent,SuccessfulVerificationCredentialManagerEvent,SuccessSsoAuthenticationEvent,SystemEvent,TokenAttributes,TokenOAuthEvent,UnlinkedAccountEvent,UserAuthenticationEvent,UserConsentedOAuthEvent,UserInfoOAuthEvent
public interface SerializableAsMap
Instances of this type can be fully serialized as a Map.
For deserialization, usually the concrete type should have a constructor
or factory method which accepts a Map, which is expected to have the same format
as the Map returned by asMap().
Using this interface, a type does not need to be serializable using Java serialization, it only needs to provide a Map representation of itself which can be serialized as JSON, for example.
-
Method Summary
-
Method Details
-
asMap
- Returns:
- representation of this Object as a Map containing only Java primitive types, plus instances of
Collection,StringandMap.It should be possible to fully re-construct this Object from a Map obtained by calling this method.
Unfortunately, in Java it is quite hard to make the type system enforce this condition, so implementators must be especially careful about this.
-