public class WrappedOnDemandX509CertificateEx extends X509CertificateEx
| Modifier and Type | Method and Description |
|---|---|
static X509CertificateEx |
fromX509Certificate(org.nhindirect.common.crypto.KeyStoreProtectionManager mgr,
X509Certificate cert,
byte[] wrappedData)
Creates an instance by proviing the certificate, the wrapped private key, and KeyStoreProtectionManager that can unwrap the
key.
|
PrivateKey |
getPrivateKey()
Gets the certificates private key.
|
boolean |
hasPrivateKey()
Indicates if the certificate contains its private key.
|
checkValidity, checkValidity, equals, fromX509Certificate, getBasicConstraints, getCriticalExtensionOIDs, getEncoded, getExtendedKeyUsage, getExtensionValue, getIssuerAlternativeNames, getIssuerDN, getIssuerUniqueID, getIssuerX500Principal, getKeyUsage, getNonCriticalExtensionOIDs, getNotAfter, getNotBefore, getPublicKey, getSerialNumber, getSigAlgName, getSigAlgOID, getSigAlgParams, getSignature, getSubjectAlternativeNames, getSubjectDN, getSubjectUniqueID, getSubjectX500Principal, getTBSCertificate, getVersion, hashCode, hasUnsupportedCriticalExtension, toString, verify, verifygetTypepublic static X509CertificateEx fromX509Certificate(org.nhindirect.common.crypto.KeyStoreProtectionManager mgr, X509Certificate cert, byte[] wrappedData)
mgr - The keystore protection manager used to unwrap the private keycert - The certificate.wrappedData - A wrapped representation of the private keypublic boolean hasPrivateKey()
hasPrivateKey in class X509CertificateExpublic PrivateKey getPrivateKey()
getPrivateKey in class X509CertificateExCopyright © 2010-2016 NHIN Direct. All Rights Reserved.