Interface SerializableAsMap

All Known Subinterfaces:
AlarmDescription, AuditableEvent, CredentialRuleDescriptor, DatabaseClientGraphQLEvent, DatabaseClientStoredGraphQLEvent, Delegation, DistributedCacheEvent, DistributedServiceEvent, Event, GrantedAuthorizationGraphQLEvent, GraphQLEvent, ProblemDetails, ScopeClaim, ScopeConfig, UserManagementGraphQLEvent
All Known Implementing Classes:
AccessTokenAttributes, AccessTokenAuthenticationEvent, AccessTokenOAuthEvent, AccountAttributes, AccountCreatedGraphQLEvent, AccountCreatedScimEvent, AccountDeletedGraphQLEvent, AccountDeletedScimEvent, AccountEvent, AccountLinkDeletedGraphQLEvent, AccountReadGraphQLEvent, AccountReadScimEvent, AccountSearchScimEvent, AccountUpdatedGraphQLEvent, AccountUpdatedScimEvent, ActivatedAccountEvent, Address, AssertionJwtValidationAttributes, AttributeAdditions, AttributeReplacements, Attributes, AuditData, AuthenticationActionAttributes, AuthenticationAttemptEvent, AuthenticationAttributes, AuthenticationEvent, AuthorizationActionAttributes, AuthorizationAttributes, AuthorizationCodeNonceAttributes, AuthorizationCodeOAuthEvent, AuthorizationResourceAttributes, AuthorizedClaimAttributes, AuthorizedOAuthClientAttributes, AuthorizedScopeAttributes, BackchannelAuthenticationEvent, BucketDeletedGraphQLEvent, BucketReadGraphQLEvent, ByRefRequestObjectAttributes, ClientAttestationAttributes, ClientAuthenticationAttributes, ClientAuthenticationEvent, ClientAuthenticationVerifier, ClientCapabilitiesAttributes, ClientCapabilitiesAttributes.AssertionCapability, ClientCapabilitiesAttributes.AssistedTokenCapability, ClientCapabilitiesAttributes.BackchannelCapability, ClientCapabilitiesAttributes.ClientCredentialsCapability, ClientCapabilitiesAttributes.CodeCapability, ClientCapabilitiesAttributes.HaapiCapability, ClientCapabilitiesAttributes.ImplicitCapability, ClientCapabilitiesAttributes.IntrospectionCapability, ClientCapabilitiesAttributes.OAuthTokenExchangeCapability, ClientCapabilitiesAttributes.RopcCapability, ClientCapabilitiesAttributes.SingletonTypedCapability, ClientCapabilitiesAttributes.TokenExchangeCapability, ClientCapabilitiesAttributes.TypedCapability, ClientIdentifier, ComplexAttributeValue, ConfigurationChangedSystemEvent, ConfirmationAttributes, ConsentAttributes, ConsentorCompleteOAuthEvent, ConsentorCompleteOAuthEvent.Success, ConsentorCompleteOAuthEvent.Unsuccessful, ConsentorResultAttributes, ConsumedAuthorizationCodeOAuthEvent, ConsumedDeviceCodeOAuthEvent, ConsumedInitialAccessTokenDcrOAuthEvent, ContextAttributes, CreatedAccountEvent, CreatedDeviceEvent, CreatedSsoSessionEvent, CredentialAttributes, CredentialManagerEvent, CredentialPolicyReadGraphQLEvent, CredentialPolicyStateReadGraphQLEvent, CredentialPolicyStateUpdatedGraphQLEvent, DatabaseClientAttributes, DatabaseClientCreatedGraphQLEvent, DatabaseClientDeletedGraphQLEvent, DatabaseClientReadGraphQLEvent, DatabaseClientUpdatedGraphQLEvent, DelegationAttributes, DelegationBasedTokenAttributes, DelegationOauthEvent, DeletedAccountEvent, DeletedDeviceEvent, DeniedIntrospectionOAuthEvent, Device, DeviceAttributes, DeviceCodeNonceAttributes, DeviceCodeOAuthEvent, DeviceCreatedGraphQLEvent, DeviceDeletedGraphQLEvent, DeviceEvent, DeviceUpdatedEvent, DeviceUpdatedGraphQLEvent, DistributedCacheDataRebalancedEvent, DistributedCacheStartedEvent, DistributedCacheStoppedEvent, DistributedServiceStartedEvent, DistributedServiceStoppedEvent, DistributedServiceTopologyChangeEvent, DistributedServiceTopologyChangeEvent.ClusterMember, DynamicallyRegisteredClientAttributes, Email, Entitlement, EventMetaData, FailedAuthenticationActionEvent, FailedAuthenticationEvent, FailedCatVerificationEvent, FailedVerificationCredentialManagerEvent, FailureBackchannelAuthenticationEvent, FailureClientAuthenticationEvent, GrantedAuthorizationAttributes, GrantedAuthorizationFailedRevocationGraphQLEvent, GrantedAuthorizationReadGraphQLEvent, GrantedAuthorizationRevocationGraphQLEvent, GraphQLAuthorizationActionAttributes, GraphQLAuthorizationResourceAttributes, Group, IdTokenAttributes, IdTokenConfigAttributes, IdTokenOAuthEvent, InitialAccessTokenDcrOAuthEvent, InitializedAccountActivationGraphQLEvent, InstantMessaging, IntrospectionError, IntrospectionOAuthEvent, IssuedAccessTokenOAuthEvent, IssuedAuthorizationCodeOAuthEvent, IssuedDelegationOAuthEvent, IssuedDeviceCodeOAuthEvent, IssuedIdTokenOAuthEvent, IssuedInitialAccessTokenDcrOAuthEvent, IssuedRefreshTokenOAuthEvent, JweEncryptionAttributes, JwksUri, JwtAssertionAttributes, JwtSigningAttributes, LinkedAccount, LinkedAccountAttributes, LinkedAccountEvent, LoginAuthenticationEvent, LogoutAuthenticationEvent, MapAttributeValue, Meta, MultiValuedAttributeValue, MutualTlsAttributes, Name, NonceAttributes, OAuthAuthorizationActionAttributes, OAuthAuthorizationResourceAttributes, OAuthEvent, OAuthTokenAttributes, OptInMfaAttributes, OptinMfaPreferencesAttributes, OptInMfaRecoveryCodesResetStartedGraphQLEvent, OptInMfaSetupStartedGraphQLEvent, PasskeyVerificationStartedGraphQLEvent, PasswordResetGraphQLEvent, PasswordUpdatedCredentialManagerEvent, PendingCompletionAuthenticationActionEvent, PhoneNumber, Photo, ProblemOAuthEvent, ProfileAddedSystemEvent, ProofKeyAttributes, RecoveryCodeBatchAttributes, RecoveryCodeValidationAttributes, RefreshTokenAttributes, RefreshTokenConfigAttributes, RefreshTokenOAuthEvent, RegisteredDcrClientOAuthEvent, RegisteredFactorAttributes, RegisteredFactorsAttributes, RegistrableFactorAttributes, RegistrableFactorsAttributes, RequestObjectAttributes, ResourceAttributes, ResourceQuery, RestartAuthenticationActionEvent, RevokedAccessTokenOAuthEvent, RevokedDelegationOAuthEvent, RevokedDelegationScimEvent, RevokedInitialAccessTokenDcrOAuthEvent, RevokedRefreshTokenOAuthEvent, Role, ScimAuthorizationActionAttributes, ScimAuthorizationResourceAttributes, ScimEvent, SessionEvent, StartedBackchannelAuthenticationEvent, SubjectAttributes, SuccessAuthenticationActionEvent, SuccessAuthenticationEvent, SuccessBackchannelAuthenticationEvent, SuccessClientAuthenticationEvent, SuccessfulVerificationCredentialManagerEvent, SuccessSsoAuthenticationEvent, SystemEvent, TokenAttributes, TokenDataAttributes, TokenIssuanceProblemOAuthEvent, TokenOAuthEvent, TotpDeviceVerificationStartedGraphQLEvent, UnlinkedAccountEvent, UserAuthenticationConfigAttributes, UserAuthenticationEvent, UserConsentAttributes, UserConsentedOAuthEvent, UserInfoOAuthEvent, VerifiableCredentialAttributes, VerifiableCredentialJwtVcJsonTokenDataAttributes, VerifiableCredentialSubjectAttributes, VerifiableCredentialVcSdJwtTokenDataAttributes, X509Certificates

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

    Modifier and Type
    Method
    Description
     
  • Method Details

    • asMap

      Map<String,Object> asMap()
      Returns:
      representation of this Object as a Map containing only Java primitive types, plus instances of Collection, String and Map.

      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.