Class AbstractClientSecureGrant

    • Field Detail

      • clientId

        protected java.lang.String clientId
      • clientSecret

        protected java.lang.String clientSecret
    • Constructor Detail

      • AbstractClientSecureGrant

        public AbstractClientSecureGrant()
    • Method Detail

      • getGrantType

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

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

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

        public void setClientId​(@Nullable
                                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​(@Nullable
                                    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

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

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