Class ClientCredentialsGrant

  • All Implemented Interfaces:
    AsMap

    @Introspected
    public class ClientCredentialsGrant
    extends java.lang.Object
    implements AsMap
    Client Credentials Grant.
    Since:
    1.2.0
    Author:
    Sergio del Amo
    See Also:
    Access Token Request
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String KEY_GRANT_TYPE  
      static java.lang.String KEY_SCOPES  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getGrantType()  
      java.lang.String getScope()  
      void setScope​(java.lang.String scope)  
      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

      • ClientCredentialsGrant

        public ClientCredentialsGrant()
        Default Constructor.
    • Method Detail

      • getGrantType

        @Nonnull
        public java.lang.String getGrantType()
        Returns:
        client_credentials
      • getScope

        @Nullable
        public java.lang.String getScope()
        Returns:
        Requested scope values for the access token.
      • setScope

        public void setScope​(@Nullable
                             java.lang.String scope)
        Parameters:
        scope - Requested scope values for the access token.
      • toMap

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