| Package | Description |
|---|---|
| iaik.cms | |
| iaik.smime |
| Modifier and Type | Interface and Description |
|---|---|
interface |
CertificateIdentifier
Interface to be implemented by any CMS type that is used for
identifying an entity by its certificate.
|
| Modifier and Type | Class and Description |
|---|---|
class |
IssuerAndSerialNumber
This class implements the CMS
IssuerAndSerialNumber type. |
class |
KEKIdentifier
The CMS type KEKIdentifier.
|
class |
OriginatorPublicKey
The CMS type OriginatorPublicKey.
|
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 |
|---|---|
KeyIdentifier |
KeyAgreeRecipientInfo.getOriginator()
Returns the originator information identifying the public key of the originator.
|
KeyIdentifier |
KEKRecipientInfo.getRecipientIdentifier()
Gets the key identifier belonging to the recipient of this KEKRecipientInfo.
|
KeyIdentifier[] |
KEKRecipientInfo.getRecipientIdentifiers()
Gets the key identifier belonging to the recipient of this KEKRecipientInfo.
|
KeyIdentifier[] |
KeyAgreeRecipientInfo.getRecipientIdentifiers()
Gets the key identifier belonging to the recipient of this KeyAgreeRecipientInfo.
|
KeyIdentifier[] |
KeyTransRecipientInfo.getRecipientIdentifiers()
Gets the key identifier belonging to the recipient of this KeyTransRecipientInfo.
|
KeyIdentifier[] |
PasswordRecipientInfo.getRecipientIdentifiers()
Gets the key identifier belonging to the recipient of this
PasswordRecipientInfo.
|
abstract KeyIdentifier[] |
RecipientInfo.getRecipientIdentifiers()
Returns the key identifier(s) belonging to the recipient(s) of this
RecipientInfo.
|
| Modifier and Type | Method and Description |
|---|---|
javax.crypto.SecretKey |
RecipientInfo.decryptKey(java.security.Key key,
KeyIdentifier recipientIdentifier)
Decrypts the encrypted content-encryption key this RecipientInfo holds
for the given recipient.
|
javax.crypto.SecretKey |
KEKRecipientInfo.decryptKey(java.security.Key kek,
KeyIdentifier recipientIdentifier,
java.lang.String cekAlgName)
Uses the given secret key encryption key to decrypt (unwrap) the encrypted (wrapped)
content-encryption key.
|
javax.crypto.SecretKey |
KeyAgreeRecipientInfo.decryptKey(java.security.Key privateKey,
KeyIdentifier recipientIdentifier,
java.lang.String keyEncryptionAlgorithm)
Uses the given private key to decrypt the encrypted content-encryption key for
the recipient with the given recipient identifier.
|
javax.crypto.SecretKey |
KeyTransRecipientInfo.decryptKey(java.security.Key privateKey,
KeyIdentifier recipientIdentifier,
java.lang.String kea)
Uses the given private key to decrypt the encrypted content-encryption key.
|
javax.crypto.SecretKey |
PasswordRecipientInfo.decryptKey(java.security.Key kek,
KeyIdentifier keyidentifier,
java.lang.String algorithmName)
Uses the given secret key encryption key to decrypt (unwrap) the
encrypted (wrapped) content-encryption key.
|
abstract javax.crypto.SecretKey |
RecipientInfo.decryptKey(java.security.Key key,
KeyIdentifier keyidentifier,
java.lang.String algorithmName)
Decrypts the encrypted content-encryption key this RecipientInfo holds for the given recipient.
|
javax.crypto.SecretKey |
KeyAgreeRecipientInfo.decryptKey(java.security.PrivateKey privateKey,
KeyIdentifier recipientIdentifier,
java.security.PublicKey originatorPublicKey)
Uses the given private key and originator public key to decrypt the encrypted
content-encryption key for the recipient with the given recipient identifier.
|
byte[] |
KEKRecipientInfo.getEncryptedKey(KeyIdentifier recipientIdentifier)
Returns the encrypted content-encryption key for the recipient with
the given keyIdentfier.
|
byte[] |
KeyAgreeRecipientInfo.getEncryptedKey(KeyIdentifier recipientIdentifier)
Returns the encrypted content-encryption key for the recipient with
the given keyIdentfier.
|
byte[] |
KeyTransRecipientInfo.getEncryptedKey(KeyIdentifier recipientIdentifier)
Returns the encrypted content-encryption key for the recipient with
the given keyIdentfier.
|
byte[] |
PasswordRecipientInfo.getEncryptedKey(KeyIdentifier recipientIdentifier)
Returns the encrypted content-encryption key.
|
abstract byte[] |
RecipientInfo.getEncryptedKey(KeyIdentifier recipientIdentifier)
Returns the encrypted content-encryption key for the recipient with
the given keyIdentfier.
|
RecipientInfo |
AuthenticatedDataStream.getRecipientInfo(KeyIdentifier recipientIdentifier) |
RecipientInfo |
EnvelopedDataStream.getRecipientInfo(KeyIdentifier recipientIdentifier)
Returns the RecipientInfo belonging to the recipient identified by the
given recipient identifier.
|
boolean |
KEKRecipientInfo.isRecipientInfoFor(KeyIdentifier recipientIdentifier)
Checks if this is a RecipientInfo for the recipient identified by the
given key identifier.
|
boolean |
KeyAgreeRecipientInfo.isRecipientInfoFor(KeyIdentifier recipientIdentifier)
Checks if this is a RecipientInfo for the recipient identified by the
given key identifier.
|
boolean |
KeyTransRecipientInfo.isRecipientInfoFor(KeyIdentifier recipientIdentifier)
Checks if this is a RecipientInfo for the recipient identified by the
given key identifier.
|
boolean |
PasswordRecipientInfo.isRecipientInfoFor(KeyIdentifier recipientIdentifier)
Since a PasswordRecipientInfo generally does not contain recipient
identification information this method always return false indicating
that this PasswordRecipientInfo may not belong to the recipient with the
given recipient identifier.
|
abstract boolean |
RecipientInfo.isRecipientInfoFor(KeyIdentifier recipientIdentifier)
Checks if this is a RecipientInfo for the recipient identified by the
given key identifier.
|
void |
EnvelopedDataStream.setupCipher(java.security.Key recipientKey,
KeyIdentifier recipientIdentifier)
Uses the specified key for decrypting the content-encryption key to setup the
cipher for decrypting the encrypted content of this
EnvelopedDataStream
object for the requesting recipient, specified by the given recipient identifier. |
javax.crypto.SecretKey |
AuthenticatedDataStream.setupMac(java.security.Key recipientKey,
KeyIdentifier recipientIdentifier)
Uses the specified key for decrypting the MAC key and setup the MAC calculation for the
requesting recipient, specified by the given recipient identifier.
|
| Constructor and Description |
|---|
KeyAgreeRecipientInfo(KeyIdentifier originator,
AlgorithmID keyEA,
byte[] ukm)
Creates a KeyAgreeRecipientInfo for the given Originator, key encryption
(key agreement) algorithm and user keying material.
|
| Modifier and Type | Method and Description |
|---|---|
void |
EncryptedContent.decryptSymmetricKey(java.security.Key recipientKey,
KeyIdentifier recipientIdentifier)
Uses the specified key for decrypting the content-encryption key to setup the
cipher for decrypting the encrypted content of this
EncryptedContent
object for the requesting recipient, specified by the given recipient identifier. |
void |
SMimeEncrypted.decryptSymmetricKey(java.security.Key recipientKey,
KeyIdentifier recipientIdentifier)
Uses the specified key for decrypting the content-encryption key to setup the
cipher for decrypting the encrypted content of this
SMimeEncrypted
object for the requesting recipient, specified by the given recipient identifier. |