Class X509Identity
java.lang.Object
org.hyperledger.fabric.client.identity.X509Identity
- All Implemented Interfaces:
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
Constructor.- Parameters:
mspId
- A membership service provider identifier.certificate
- An X.509 certificate.
-
-
Method Details
-
getCertificate
Get the certificate for this identity.- Returns:
- An X.509 certificate.
-
getMspId
Description copied from interface:Identity
Member services provider to which this identity is associated. -
getCredentials
public byte[] getCredentials()Description copied from interface:Identity
Implementation-specific credentials.- Specified by:
getCredentials
in interfaceIdentity
- Returns:
- Credential data.
-
equals
-
hashCode
public int hashCode()
-