Class OAuth2Parameters


  • public final class OAuth2Parameters
    extends java.lang.Object
    Class that contains definition od parameters used in OAuth2.
    Since:
    2.3
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  OAuth2Parameters.GrantType
      Parameter grant_type used in the access token request.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String CLIENT_ID
      Parameter client_id that corresponds to (ClientIdentifier.getClientId()).
      static java.lang.String CLIENT_SECRET
      Parameter client_secret that corresponds to (ClientIdentifier.getClientSecret()).
      static java.lang.String CODE
      Authorization code
      static java.lang.String REDIRECT_URI
      Parameter response_type used in the authorization request.
      static java.lang.String REDIRECT_URI_UNDEFINED  
      static java.lang.String REFRESH_TOKEN
      Parameter refresh_token contains Refresh Token (corresponds to TokenResult.getRefreshToken()).
      static java.lang.String RESPONSE_TYPE
      Parameter response_type used in the authorization request.
      static java.lang.String SCOPE
      Parameter scope that defines the scope to which an authorization is requested.
      static java.lang.String STATE
      State parameter used in the authorization request and authorization response to protect against CSRF attacks.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private OAuth2Parameters()
      Prevent instantiation.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • RESPONSE_TYPE

        public static final java.lang.String RESPONSE_TYPE
        Parameter response_type used in the authorization request. For Authorization Code Grant Flow the value is code.
        See Also:
        Constant Field Values
      • REDIRECT_URI

        public static final java.lang.String REDIRECT_URI
        Parameter response_type used in the authorization request.
        See Also:
        Constant Field Values
      • SCOPE

        public static final java.lang.String SCOPE
        Parameter scope that defines the scope to which an authorization is requested. Space delimited format. Scope values are defined by the Service Provider.
        See Also:
        Constant Field Values
      • STATE

        public static final java.lang.String STATE
        State parameter used in the authorization request and authorization response to protect against CSRF attacks.
        See Also:
        Constant Field Values
      • REDIRECT_URI_UNDEFINED

        public static final java.lang.String REDIRECT_URI_UNDEFINED
        See Also:
        Constant Field Values
    • Constructor Detail

      • OAuth2Parameters

        private OAuth2Parameters()
        Prevent instantiation.