public final class SigningCredential
extends java.lang.Object
PrivateKey and a chain of certificates.| Modifier and Type | Method and Description |
|---|---|
static SigningCredential |
create(java.util.List<java.security.cert.X509Certificate> certificateChain)
Create a new
SigningCredential with a certificate(chain) to verify if messages are signed by an expected signer. |
static SigningCredential |
create(java.security.PrivateKey privateKey,
java.util.List<java.security.cert.X509Certificate> certificateChain)
Create a new
SigningCredential with a PrivateKey and a list of certificates to sign messages with a certified public
key. |
static SigningCredential |
create(java.security.PrivateKey privateKey,
java.lang.String subjectKeyIdentifier)
Create a new
SigningCredential with a PrivateKey and a subject's key id to sign messages with a registered public
key. |
static SigningCredential |
create(java.security.PrivateKey privateKey,
java.security.cert.X509Certificate... certificateChain)
Create a new
SigningCredential with a PrivateKey and a dynamic list of certificates. |
static SigningCredential |
create(java.lang.String subjectKeyIdentifier,
java.security.PublicKey publicKey)
Create a new
SigningCredential with a key id and registered public key to validate signed messages. |
static SigningCredential |
create(java.security.cert.X509Certificate... certificateChain)
Create a new
SigningCredential with a certificate(chain) to verify if messages are signed by an expected signer. |
boolean |
equals(java.lang.Object obj) |
java.util.List<java.security.cert.X509Certificate> |
getCertificateChain() |
java.security.PrivateKey |
getPrivateKey() |
java.security.PublicKey |
getPublicKey() |
java.lang.String |
getSubjectKeyIdentifier() |
int |
hashCode() |
public static SigningCredential create(java.util.List<java.security.cert.X509Certificate> certificateChain)
SigningCredential with a certificate(chain) to verify if messages are signed by an expected signer.certificateChain - A chain of trusted certificates, used for trust of the Certificate Authority.public static SigningCredential create(java.security.cert.X509Certificate... certificateChain)
SigningCredential with a certificate(chain) to verify if messages are signed by an expected signer.certificateChain - A chain of trusted certificates, used for trust of the Certificate Authority.public static SigningCredential create(java.security.PrivateKey privateKey, java.security.cert.X509Certificate... certificateChain)
SigningCredential with a PrivateKey and a dynamic list of certificates.privateKey - A private key to sign the message.certificateChain - A chain of trusted certificates.public static SigningCredential create(java.security.PrivateKey privateKey, java.util.List<java.security.cert.X509Certificate> certificateChain)
SigningCredential with a PrivateKey and a list of certificates to sign messages with a certified public
key.privateKey - A private key to sign the message.certificateChain - A chain of trusted certificates, used for trust of the Certificate Authority.public static SigningCredential create(java.security.PrivateKey privateKey, java.lang.String subjectKeyIdentifier)
SigningCredential with a PrivateKey and a subject's key id to sign messages with a registered public
key.privateKey - A private key to sign the message.subjectKeyIdentifier - registrationId of the public key at the Registration Authority.public static SigningCredential create(java.lang.String subjectKeyIdentifier, java.security.PublicKey publicKey)
SigningCredential with a key id and registered public key to validate signed messages.subjectKeyIdentifier - registrationId of the public key at the Registration Authority.publicKey - A public key to validate the signed message.public java.lang.String getSubjectKeyIdentifier()
public java.security.PrivateKey getPrivateKey()
public java.security.PublicKey getPublicKey()
public java.util.List<java.security.cert.X509Certificate> getCertificateChain()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2025 eHealth. All rights reserved.