Class AuthorizationCodeGrant

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getClientId()  
      java.lang.String getClientSecret()  
      java.lang.String getCode()  
      java.lang.String getGrantType()  
      java.lang.String getRedirectUri()  
      void setClientId​(java.lang.String clientId)
      Sets the client id in the grant.
      void setClientSecret​(java.lang.String clientSecret)
      Sets the client secret in the grant.
      void setCode​(java.lang.String code)  
      void setGrantType​(java.lang.String grantType)  
      void setRedirectUri​(java.lang.String redirectUri)  
      java.util.Map<java.lang.String,​java.lang.String> toMap()  
      • Methods inherited from class java.lang.Object

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

      • AuthorizationCodeGrant

        public AuthorizationCodeGrant()
        Default Constructor.
    • Method Detail

      • getGrantType

        @Nonnull
        public java.lang.String getGrantType()
        Returns:
        OAuth 2.0 Grant Type.
      • setGrantType

        public void setGrantType​(@Nonnull
                                 java.lang.String grantType)
        Parameters:
        grantType - OAuth 2.0 Grant Type.
      • getClientId

        @Nonnull
        public java.lang.String getClientId()
        Returns:
        The application's Client identifier.
      • setClientId

        public void setClientId​(@Nonnull
                                java.lang.String clientId)
        Description copied from interface: SecureGrant
        Sets the client id in the grant.
        Specified by:
        setClientId in interface SecureGrant
        Parameters:
        clientId - Application's Client identifier.
      • setClientSecret

        public void setClientSecret​(java.lang.String clientSecret)
        Description copied from interface: SecureGrant
        Sets the client secret in the grant.
        Specified by:
        setClientSecret in interface SecureGrant
        Parameters:
        clientSecret - Application's Client clientSecret.
      • getClientSecret

        public java.lang.String getClientSecret()
        Returns:
        The application's Client clientSecret.
      • getRedirectUri

        @Nonnull
        public java.lang.String getRedirectUri()
        Returns:
        Redirection URI to which the response will be sent.
      • setRedirectUri

        public void setRedirectUri​(@Nonnull
                                   java.lang.String redirectUri)
        Parameters:
        redirectUri - Redirection URI to which the response will be sent.
      • getCode

        @Nonnull
        public java.lang.String getCode()
        Returns:
        An authorization code.
      • setCode

        public void setCode​(@Nonnull
                            java.lang.String code)
        Parameters:
        code - An authorization code.
      • toMap

        public java.util.Map<java.lang.String,​java.lang.String> toMap()
        Specified by:
        toMap in interface AsMap
        Returns:
        this object as a Map