Class ClientCertificate

    • Constructor Detail

      • ClientCertificate

        public ClientCertificate​(@Nullable
                                 String certificate,
                                 @Nullable
                                 String key,
                                 @Nullable
                                 String clientId)
        Represents certificate based client identity.
        Parameters:
        certificate - PEM encoded X.509 certificate of the OAuth 2.0 client
        key - PEM encoded X.509 private key of the OAuth 2.0 client
        clientId - ID of the OAuth 2.0 client requesting the token.
    • Method Detail

      • getKey

        public String getKey()
        Description copied from interface: ClientIdentity
        PEM encoded private key the certificate is signed with.
        Specified by:
        getKey in interface ClientIdentity
        Returns:
        private key
      • 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