public class SmimeKey extends Object
PrivateKey and a chain of X509Certificates used to sign or decrypt a MIME message.| Constructor and Description |
|---|
SmimeKey(PrivateKey privateKey,
X509Certificate... certificateChain)
Create a new
SmimeKey with the given private key and certificate
chain. |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getAssociatedAddresses()
Compiles and returns the list of email address associated with the
certificate of this SmimeKey by
inspecting the subjects distinguished name. |
X509Certificate |
getCertificate()
Returns the certificate that holds the public key that corresponds to the
private key of this
SmimeKey. |
X509Certificate[] |
getCertificateChain()
Returns the chain of certificates of this
SmimeKey starting with
the certificate that holds the public key that corresponds to the private
key of this SmimeKey and ending with the trust anchor. |
PrivateKey |
getPrivateKey()
Returns the private key of this
SmimeKey. |
public SmimeKey(PrivateKey privateKey, X509Certificate... certificateChain)
SmimeKey with the given private key and certificate
chain.privateKey - The PrivateKey of this SmimeKeycertificateChain - The chain of X509Certificates of this
SmimeKey starting with the certificate that holds the
public key that corresponds to the given private key and
ending with the trust anchor.public PrivateKey getPrivateKey()
SmimeKey.PrivateKey.public X509Certificate getCertificate()
SmimeKey.X509Certificate.public X509Certificate[] getCertificateChain()
SmimeKey starting with
the certificate that holds the public key that corresponds to the private
key of this SmimeKey and ending with the trust anchor.X509Certificates.public List<String> getAssociatedAddresses()
certificate of this SmimeKey by
inspecting the subjects distinguished name.unmodifiable list of
email addresses.Copyright © 2015–2017 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.