Package io.meeds.oauth2.server.util
Class EntityMapper
java.lang.Object
io.meeds.oauth2.server.util.EntityMapper
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringEncryption can be randomized, thus use deterministic Hash for lookup with a fixed secret HMAC key switch platform (CodecInitializer Key encrypted constant)static voidtoEntity(org.springframework.security.oauth2.server.authorization.client.RegisteredClient registeredClient, OAuthClientEntity entity) static voidtoEntity(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsent authorizationConsent, OAuthConsentEntity entity) static OAuthTokenEntitytoEntity(org.springframework.security.oauth2.server.authorization.OAuth2Authorization authorization, String hmacKey) static org.springframework.security.oauth2.server.authorization.client.RegisteredClienttoObject(OAuthClientEntity entity) static org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsenttoObject(OAuthConsentEntity entity) static org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationtoObject(OAuthTokenEntity entity) static OAuthConsenttoSimplifiedObject(OAuthConsentEntity entity) static OAuthAccessTokentoSimplifiedObject(OAuthTokenEntity entity)
-
Field Details
-
CLIENT_URI_SETTING
- See Also:
-
CLIENT_UUID_SETTING
- See Also:
-
CLIENT_LOGO_URI_SETTING
- See Also:
-
CLIENT_POLICY_URI_SETTING
- See Also:
-
CLIENT_DISPLAYED_SETTING
- See Also:
-
CLIENT_ENABLED_SETTING
- See Also:
-
CLIENT_SYSTEM_SETTING
- See Also:
-
CLIENT_SERVICE_SETTING
- See Also:
-
CLIENT_IS_DCR_SETTING
- See Also:
-
CLIENT_IS_CIMD_SETTING
- See Also:
-
CLIENT_CREATION_DATE
- See Also:
-
CUSTOM_CLIENT_METADATA
-
-
Method Details
-
toObject
public static org.springframework.security.oauth2.server.authorization.client.RegisteredClient toObject(OAuthClientEntity entity) -
toEntity
public static void toEntity(org.springframework.security.oauth2.server.authorization.client.RegisteredClient registeredClient, OAuthClientEntity entity) -
toObject
public static org.springframework.security.oauth2.server.authorization.OAuth2Authorization toObject(OAuthTokenEntity entity) -
toSimplifiedObject
-
toEntity
public static OAuthTokenEntity toEntity(org.springframework.security.oauth2.server.authorization.OAuth2Authorization authorization, String hmacKey) -
toObject
public static org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsent toObject(OAuthConsentEntity entity) -
toSimplifiedObject
-
toEntity
public static void toEntity(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsent authorizationConsent, OAuthConsentEntity entity) -
hashToken
Encryption can be randomized, thus use deterministic Hash for lookup with a fixed secret HMAC key switch platform (CodecInitializer Key encrypted constant)- Parameters:
token- Token to hashhmacKey- Secret key for MAC- Returns:
- Deterministically hashed value used for lookup
-