Class OAuth2TokenFormat
java.lang.Object
org.springframework.security.oauth2.server.authorization.settings.OAuth2TokenFormat
- All Implemented Interfaces:
Serializable
Standard data formats for OAuth 2.0 Tokens.
- Since:
- 0.2.3
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final OAuth2TokenFormat
Reference (opaque) tokens are unique identifiers that serve as a reference to the token metadata and claims of the user and/or client, stored at the provider.static final OAuth2TokenFormat
Self-contained tokens use a protected, time-limited data structure that contains token metadata and claims of the user and/or client. -
Constructor Summary
ConstructorDescriptionOAuth2TokenFormat
(String value) Constructs anOAuth2TokenFormat
using the provided value. -
Method Summary
-
Field Details
-
SELF_CONTAINED
Self-contained tokens use a protected, time-limited data structure that contains token metadata and claims of the user and/or client. JSON Web Token (JWT) is a widely used format. -
REFERENCE
Reference (opaque) tokens are unique identifiers that serve as a reference to the token metadata and claims of the user and/or client, stored at the provider.
-
-
Constructor Details
-
OAuth2TokenFormat
Constructs anOAuth2TokenFormat
using the provided value.- Parameters:
value
- the value of the token format
-
-
Method Details