Class OAuth2AuthorizationCode
java.lang.Object
org.springframework.security.oauth2.core.AbstractOAuth2Token
org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationCode
- All Implemented Interfaces:
Serializable
,org.springframework.security.oauth2.core.OAuth2Token
public class OAuth2AuthorizationCode
extends org.springframework.security.oauth2.core.AbstractOAuth2Token
An implementation of an
AbstractOAuth2Token
representing an OAuth 2.0
Authorization Code Grant.- Since:
- 0.0.3
- See Also:
-
AbstractOAuth2Token
- Section 4.1 Authorization Code Grant
- Serialized Form
-
Constructor Summary
ConstructorDescriptionOAuth2AuthorizationCode
(String tokenValue, Instant issuedAt, Instant expiresAt) Constructs anOAuth2AuthorizationCode
using the provided parameters. -
Method Summary
Methods inherited from class org.springframework.security.oauth2.core.AbstractOAuth2Token
equals, getExpiresAt, getIssuedAt, getTokenValue, hashCode
-
Constructor Details
-
OAuth2AuthorizationCode
Constructs anOAuth2AuthorizationCode
using the provided parameters.- Parameters:
tokenValue
- the token valueissuedAt
- the time at which the token was issuedexpiresAt
- the time at which the token expires
-