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:
  • Constructor Details

    • OAuth2AuthorizationCode

      public OAuth2AuthorizationCode(String tokenValue, Instant issuedAt, Instant expiresAt)
      Constructs an OAuth2AuthorizationCode using the provided parameters.
      Parameters:
      tokenValue - the token value
      issuedAt - the time at which the token was issued
      expiresAt - the time at which the token expires