Class X509Identity

java.lang.Object
org.hyperledger.fabric.client.identity.X509Identity
All Implemented Interfaces:
Identity

public final class X509Identity extends Object implements Identity
A client identity described by an X.509 certificate. The Identities class provides static methods to create an X509Certificate object from PEM-format data.
  • Constructor Details

    • X509Identity

      public X509Identity(String mspId, X509Certificate certificate)
      Constructor.
      Parameters:
      mspId - A membership service provider identifier.
      certificate - An X.509 certificate.
  • Method Details

    • getCertificate

      public X509Certificate getCertificate()
      Get the certificate for this identity.
      Returns:
      An X.509 certificate.
    • getMspId

      public String getMspId()
      Description copied from interface: Identity
      Member services provider to which this identity is associated.
      Specified by:
      getMspId in interface Identity
      Returns:
      A member services provider identifier.
    • getCredentials

      public byte[] getCredentials()
      Description copied from interface: Identity
      Implementation-specific credentials.
      Specified by:
      getCredentials in interface Identity
      Returns:
      Credential data.
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object