| Package | Description |
|---|---|
| iaik.cms | |
| iaik.smime |
| Modifier and Type | Class and Description |
|---|---|
class |
IssuerAndSerialNumber
This class implements the CMS
IssuerAndSerialNumber type. |
class |
RecipientKeyIdentifier
The CMS type RecipientKeyIdentifier.
|
class |
SignerRecipientIdentifier
The CMS type SignerIdentifier/RecipientIdentifier.
|
class |
SubjectKeyID
This class implements the
SubjectKeyIdentifier type. |
| Modifier and Type | Method and Description |
|---|---|
CertificateIdentifier |
SignerRecipientIdentifier.getCertificateIdentifier()
Gets the CertificateIdentifier this SignerRecipientIdentifier represents.
|
CertificateIdentifier |
SignerInfo.getSignerIdentifier()
Returns information about the signer's certificate.
|
CertificateIdentifier |
KEKRecipientInfo.isRecipientInfoFor(X509Certificate recipientCertificate)
Always returns
null indicating that a KEKRecipientInfo does not use
certificates. |
CertificateIdentifier |
KeyAgreeRecipientInfo.isRecipientInfoFor(X509Certificate recipientCertificate)
Checks if this is a RecipientInfo for the given recipient certificate.
|
CertificateIdentifier |
KeyTransRecipientInfo.isRecipientInfoFor(X509Certificate recipientCertificate)
Checks if this is a RecipientInfo for the given recipient certficate.
|
CertificateIdentifier |
PasswordRecipientInfo.isRecipientInfoFor(X509Certificate recipientCertificate)
Always returns
null indicating that a PasswordRecipientInfo
does not use certificates as it uses a secret key (KEK to decrypt the CEK. |
abstract CertificateIdentifier |
RecipientInfo.isRecipientInfoFor(X509Certificate recipientCertificate)
Checks if this is a RecipientInfo for the given recipient certificate.
|
| Modifier and Type | Method and Description |
|---|---|
void |
KeyAgreeRecipientInfo.addRecipient(CertificateIdentifier recipientIdentifier,
byte[] encryptedKey)
Adds a recipient with given recipient identifier and already encrypted key.
|
java.security.KeyPair |
KeyAgreeRecipientInfo.addRecipient(CertificateIdentifier recipientIdentifier,
java.security.PublicKey recipientKey)
Adds a recipient with given recipient identifier and public key agreement key.
|
X509Certificate |
OriginatorInfo.getCertificate(CertificateIdentifier certificateIdentifier)
Tries to find the originator certificate specified by the given CertificateIdentidier.
|
X509Certificate |
SignedDataStream.getCertificate(CertificateIdentifier signerIdentifier)
Tries to find the signer certificate specified by the given CertificateIdentidier.
|
X509Certificate |
CertificateSet.getX509Certificate(CertificateIdentifier certID)
Gets the X.509 certificate identified by the given CertIdentifier.
|
| Constructor and Description |
|---|
KeyTransRecipientInfo(CertificateIdentifier recipientIdentifier,
AlgorithmID keyEA,
byte[] encryptedKey)
Creates a
KeyTransRecipientInfo object for the given
recipient certficate identifier, key-encryption algorithm, and already
encrypted content encryption key. |
KeyTransRecipientInfo(CertificateIdentifier recipientIdentifier,
AlgorithmID keyEA,
java.security.PublicKey recipientKey)
Creates a
KeyTransRecipientInfo object for the given
recipient certficate identifier, key-encryption algorithm and public
key of the recipient. |
SignerInfo(CertificateIdentifier signerIdentifier,
AlgorithmID digestAlgorithm,
AlgorithmID signatureAlgorithm,
java.security.PrivateKey privateKey)
Creates a new SignerInfo from given signerIdentifier,
and digestAlgorithm ID, signature algorithmID, and the
signer´s private key.
|
SignerInfo(CertificateIdentifier signerIdentifier,
AlgorithmID digestAlgorithm,
java.security.PrivateKey privateKey)
Creates a new SignerInfo from given SignerIdentifier,
digestAlgorithm ID, and the signer´s private key.
|
SignerRecipientIdentifier(CertificateIdentifier certificateIdentifier)
Creates a SignerRecipientIdentifier from the given IssuerAndSerialNumber
or SubjectKeyID.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SMimeSigned.addSigner(java.security.PrivateKey privateKey,
IssuerAndSerialNumber signer,
AlgorithmID digestAlgorithm,
AlgorithmID signatureAlgorithm,
CertificateIdentifier encrypter,
boolean includeEncryptionCertIDForMSOE)
Signs this message using the supplied signer´s private key with the
given signature algorithm.
|
void |
SMimeSigned.addSigner(java.security.PrivateKey privateKey,
IssuerAndSerialNumber signer,
CertificateIdentifier encrypter,
boolean includeEncryptionCertIDForMSOE)
Signs this message using the supplied signer´s RSA private key.
|