Class ClientCredentials

    • Constructor Detail

      • ClientCredentials

        public ClientCredentials​(@Nonnull
                                 String clientId,
                                 @Nonnull
                                 String clientSecret)
        Specifies the OAuth 2.0 client.
        Parameters:
        clientId - - the ID of the OAuth 2.0 client requesting the token.
        clientSecret - - the secret of the OAuth 2.0 client requesting the token.
    • Method Detail

      • getId

        public String getId()
        Description copied from interface: ClientIdentity
        Client id of identity service instance.
        Specified by:
        getId in interface ClientIdentity
        Returns:
        client identifier
      • isValid

        public boolean isValid()
        Description copied from interface: ClientIdentity
        Returns true, if the mandatory attributes in ClientIdentity class are filled for the specified authentication method i.e X.509 or client secret
        Specified by:
        isValid in interface ClientIdentity
        Returns:
        the boolean
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object