public class PemParsedHeader
extends java.lang.Object
PemInputStream.getHeader().| Modifier and Type | Method and Description |
|---|---|
PemOptions |
getOptions()
Returns the options used to protect the message.
|
X509Certificate |
getOriginatorCertificate()
Returns an object containing the encryption certificate of the
message encryptor.
|
java.security.spec.AlgorithmParameterSpec |
getParams()
Returns the algorithm parameters.
|
java.util.Map |
getRecipientKeyInfo()
Returns a
Map which contains (KeyIdentifier, EncryptedKey)
pairs for all message recipients. |
byte[] |
getSignature()
Returns the message digest of the original data.
|
X509Certificate |
getVerificationCertificate()
Returns an object containing the verification certificate of the
message signer.
|
public X509Certificate getOriginatorCertificate()
null if the message
was not encryptedpublic X509Certificate getVerificationCertificate()
public PemOptions getOptions()
public java.security.spec.AlgorithmParameterSpec getParams()
null
if the message was not encrypted.public java.util.Map getRecipientKeyInfo()
Map which contains (KeyIdentifier, EncryptedKey)
pairs for all message recipients.Map which contains (KeyIdentifier, EncryptedKey) pairs
for all message recipients. KeyIdentifier is a String containing
the key identifier for the public key used to protect the symmetric
key - the value of the "Recipient-ID-Asymmetric" field. EncryptedKey
is a byte[] array containing symmetric key encrypted
by the identified public key. It is the Base64 decoding of the value
of the "Key-Info" field associated with the "Recipient-ID-Asymmetric
field. Note that this map also includes a pair for the originator
of the message, even though there is no explicit "Key-Info" and
"Recipient-ID-Asymmetric" field associated with the originator.public byte[] getSignature()
byte[] array containing the message digest of the
original data.