| Package | Description |
|---|---|
| com.entrust.toolkit.cms |
Contains the
EntrustProvider class, which implements the IAIK's SecurityProvider interface for the JCA Entrust provider. |
| iaik.cms | |
| iaik.smime |
| Modifier and Type | Class and Description |
|---|---|
class |
NotARecipientException
This exceptions indicates that a CMS encrypted message was not encrypted for
the recipient (user) attempting to decrypt it.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CMSParsingException
CMS Parsing Exception.
|
| Modifier and Type | Method and Description |
|---|---|
void |
KeyAgreeRecipientInfo.addRecipient(CertificateIdentifier recipientIdentifier,
byte[] encryptedKey)
Adds a recipient with given recipient identifier and already encrypted key.
|
static Content |
ContentInfo.create(ObjectID oid)
Returns an instance of the specified CMS content type implementation,
defined by its ASN.1 ObjectID.
|
static ContentStream |
ContentInfoStream.create(ObjectID oid)
Returns a stream-supporting instance of the specified CMS content type implementation,
defined by its ASN.1 ObjectID.
|
javax.crypto.SecretKey |
KeyAgreeRecipientInfo.decryptKey(java.security.Key privateKey)
Uses the given private key for trying to decrypt the encrypted content-encryption
key.
|
javax.crypto.SecretKey |
RecipientInfo.decryptKey(java.security.Key key)
Decrypts the encrypted content-encryption key this RecipientInfo holds
for the given recipient.
|
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 |
PasswordRecipientInfo.decryptKey(java.security.Key kek,
java.lang.String cekAlgorithmName)
Uses the given secret key encryption key to decrypt (unwrap) the
encrypted (wrapped) content-encryption key.
|
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.
|
javax.crypto.SecretKey |
KeyAgreeRecipientInfo.decryptKey(java.security.PrivateKey privateKey,
X509Certificate recipientCertificate)
Uses the given private key to decrypt the encrypted content-encryption key for
the recipient with the given recipient certificate.
|
javax.crypto.SecretKey |
KeyAgreeRecipientInfo.decryptKey(java.security.PrivateKey privateKey,
X509Certificate recipientCertificate,
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 certificate.
|
javax.crypto.SecretKey |
PasswordRecipientInfo.decryptKey(SecureStringBuffer password,
java.lang.String cekAlgorithmName)
Uses the given password to derive the key to decrypt the encrypted
content-encryption key.
|
void |
KEKRecipientInfo.encryptKey(javax.crypto.SecretKey cek)
Encrypts (wraps) the given secret content-encryption key.
|
void |
KeyAgreeRecipientInfo.encryptKey(javax.crypto.SecretKey cek)
Encrypts the given secret content-encryption key.
|
void |
KeyTransRecipientInfo.encryptKey(javax.crypto.SecretKey cek)
Encrypts the given secret content-encryption key.
|
void |
PasswordRecipientInfo.encryptKey(javax.crypto.SecretKey cek)
Encrypts (wraps) the given secret content-encryption key.
|
abstract void |
RecipientInfo.encryptKey(javax.crypto.SecretKey cek)
Encrypts the given secret content encryption key for the recipient(s) this
RecipientInfo represents.
|
byte[] |
AuthenticatedDataStream.getAuthenticatedDigest()
Return the authenticated Digested which is alreay included in the authenticated
Attributes.
|
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.
|
byte[] |
AuthenticatedData.getEncoded()
Returns the DER encoding of this AuthenticatedData object as a byte
array.
|
byte[] |
CompressedData.getEncoded()
Returns the DER encoding of this CompressedData in a byte array.
|
byte[] |
Data.getEncoded()
Returns the DER encoding of this
Data object as byte array. |
byte[] |
DigestedData.getEncoded()
Returns the encoding of this DigestedData in a byte array.
|
byte[] |
EncryptedContentInfo.getEncoded()
Returns the DER encoding of this EncryptedContentInfo in a byte array.
|
byte[] |
EncryptedData.getEncoded()
Returns the DER encoding of this EncryptedData in a byte array.
|
byte[] |
EnvelopedData.getEncoded()
Returns the DER encoding of this EnvelopedData in a byte array.
|
byte[] |
SignedData.getEncoded()
Returns the DER encoding of this SignedData object as byte array.
|
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.
|
byte[] |
SignerInfo.getSignedDigest()
Returns the message digest included in the signed attributes.
|
byte[] |
SignedDataStream.getSignedDigest(int signerInfoIndex)
Returns the message digest included in the authenticated attributes.
|
SigningCertificate |
SignerInfo.getSigningCertificateAttribute()
Gets the SigningCertificate attribute, if included.
|
boolean |
SignerInfo.isSignerCertificate(X509Certificate cert)
Checks whether the supplied certificate actually is the certificate
of the signer.
|
static SigningCertificate |
Utils.makeSigningCertificate(java.security.cert.Certificate[] certs,
PolicyInformation[] policies,
boolean includeIssuerSerial)
Creates an ESS SigningCertificate for the given X.509 certificates
and policy informations.
|
static SigningCertificateV2 |
Utils.makeSigningCertificateV2(java.security.cert.Certificate[] certs,
PolicyInformation[] policies,
boolean includeIssuerSerial)
Creates an ESS SigningCertificate V2 for the given X.509 certificates
and policy informations.
|
void |
EncryptedContentInfoStream.setupCipher(java.security.Key key)
Uses the specified content-encryption key to setup the cipher for
decrypting the content.
|
void |
EnvelopedDataStream.setupCipher(java.security.Key key)
Uses the given symmetric key to setup the cipher for decrypting the content.
|
void |
EnvelopedDataStream.setupCipher(java.security.Key recipientKey,
int recipientInfoIndex)
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 its recipientInfoIndex. |
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. |
void |
EnvelopedDataStream.setupCipher(java.security.Key recipientKey,
X509Certificate recipientCertificate)
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 certificate. |
javax.crypto.SecretKey |
AuthenticatedDataStream.setupMac(java.security.Key recipientKey,
int recipientInfoIndex)
Uses the specified key for decrypting the MAC key and setting the MAC calculation
for the requesting recipient, specified by its recipientInfoIndex.
|
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.
|
javax.crypto.SecretKey |
AuthenticatedDataStream.setupMac(java.security.Key recipientKey,
X509Certificate recipientCertificate)
Uses the specified key for decrypting the MAC key and setup the MAC calculation for the
requesting recipient, specified by the given recipient identifier.
|
void |
AuthenticatedDataStream.setupMac(javax.crypto.SecretKey macKey)
Uses the given symmetric key to setup the MAC calculation to verify the message
authentication code when parsing an AuthenticatedData object.
|
ASN1Object |
AuthenticatedDataStream.toASN1Object()
Returns this DigestedDataStream as ASN1Object.
|
ASN1Object |
CompressedDataStream.toASN1Object()
Returns this CMS CompressedDataStream as an ASN1Object.
|
ASN1Object |
ContentInfo.toASN1Object()
Returns this CMS ContentInfo as ASN1Object.
|
ASN1Object |
ContentInfoStream.toASN1Object()
Returns this CMS ContentInfoStream as ASN1Object.
|
ASN1Object |
ContentStream.toASN1Object()
Returns the content value of the implemented CMS content type as an ASN1Object.
|
ASN1Object |
Data.toASN1Object()
Returns this CMS
Data as ASN1Object. |
ASN1Object |
DataStream.toASN1Object()
Returns this CMS
Data as ASN1Object. |
ASN1Object |
DigestedDataStream.toASN1Object()
Returns this DigestedDataStream as ASN1Object.
|
ASN1Object |
EncapsulatedContentInfo.toASN1Object()
Returns this CMS EncapsulatedContentInfo as ASN1Object.
|
ASN1Object |
EncapsulatedContentInfoStream.toASN1Object()
Returns this CMS EncapsulatedContentInfoStream as ASN1Object.
|
ASN1Object |
EncryptedContentInfo.toASN1Object()
Returns this EncryptedContentInfo as ASN1Object.
|
ASN1Object |
EncryptedContentInfoStream.toASN1Object()
Returns this EncryptedContentInfoStream as ASN1Object.
|
ASN1Object |
EncryptedDataStream.toASN1Object()
Returns this CMS EnvelopedDataStream as ASN1Object.
|
ASN1Object |
EnvelopedDataStream.toASN1Object()
Returns this EnvelopedDataStream as ASN1Object.
|
ASN1Object |
OriginatorInfo.toASN1Object()
Returns this OriginatorInfo as ASN1Object.
|
ASN1Object |
SignedDataStream.toASN1Object()
Returns this SignedData as ASN1Object.
|
protected ASN1Object |
AuthenticatedData.toASN1Object(int blockSize)
Returns this
DigestedData as ASN1Object. |
protected ASN1Object |
AuthenticatedDataStream.toASN1Object(int blockSize)
Returns this DigestedData as ASN1Object where a constructed OCTET STRING
is used for encoding the content.
|
protected ASN1Object |
CompressedData.toASN1Object(int blocksize)
Returns this
CompressedData as ASN1Object where a
constructed OCTET STRING is used for encoding the encrypted content. |
protected ASN1Object |
CompressedDataStream.toASN1Object(int blocksize)
Returns this CMS
CompressedData as ASN1Object. |
protected ASN1Object |
DigestedData.toASN1Object(int blockSize)
Returns this
DigestedData as ASN1Object. |
protected ASN1Object |
DigestedDataStream.toASN1Object(int blockSize)
Returns this DigestedData as ASN1Object where a constructed
OCTET STRING is used for encoding the content.
|
protected ASN1Object |
EncryptedData.toASN1Object(int blockSize)
Returns this
EncryptedData as ASN1Object where a constructed
OCTET STRING is used for encoding the encrypted content. |
protected ASN1Object |
EncryptedDataStream.toASN1Object(int blockSize)
Returns this CMS
EncryptedData as ASN1Object. |
protected ASN1Object |
EnvelopedData.toASN1Object(int blockSize)
Returns this EnvelopedData as ASN1Object.
|
protected ASN1Object |
EnvelopedDataStream.toASN1Object(int blockSize)
Returns this EnvelopedData as ASN1Object.
|
protected ASN1Object |
SignedData.toASN1Object(int blockSize)
Returns this SignedData as ASN1Object.
|
protected ASN1Object |
SignedDataStream.toASN1Object(int blockSize)
Returns this SignedData as ASN1Object where a constructed
OCTET STRING is used for encoding the content.
|
byte[] |
CMSCertList.toByteArray()
Returns this
CMSCertList object as DER encoded byte array. |
byte[] |
ContentInfo.toByteArray()
Returns this CMS ContentInfo as BER encoded byte array.
|
byte[] |
EncapsulatedContentInfo.toByteArray()
Returns this CMS EncapsulatedContentInfo as DER encoded byte array.
|
boolean |
DigestedDataStream.verify()
Verifies the digest.
|
boolean |
AuthenticatedDataStream.verifyMac()
Verifies the message authentication code.
|
void |
ContentInfo.writeTo(java.io.OutputStream os)
Writes the BER encoding of this object to the given OutputStream.
|
void |
ContentInfoStream.writeTo(java.io.OutputStream os)
Writes the BER encoding of this object to the given OutputStream.
|
void |
DataStream.writeTo(java.io.OutputStream os)
Writes this CMS
DataStream object BER encoded to the given output stream. |
void |
EncapsulatedContentInfo.writeTo(java.io.OutputStream os)
Writes the DER encoding of this object to the given OutputStream.
|
void |
EncapsulatedContentInfoStream.writeTo(java.io.OutputStream os)
Writes the DER encoding of this object to the given OutputStream.
|
void |
EncryptedContentInfoStream.writeTo(java.io.OutputStream os)
Writes the BER encoding of this object to the given OutputStream.
|
| Constructor and Description |
|---|
AuthenticatedData(ObjectID contentType,
byte[] content,
AlgorithmID macAlgorithm,
byte[] mac,
AlgorithmID digestAlgorithm,
int mode)
Creates an AuthenticatedDataStream from an already calculated MAC value.
|
AuthenticatedData(ObjectID contentType,
byte[] content,
AlgorithmID macAlgorithm,
int macKeyLength,
java.security.spec.AlgorithmParameterSpec macAlgParameters,
AlgorithmID digestAlgorithm,
int mode)
Creates a new AuthenticatedData where the to-be-authenticated content data is supplied from an byte array.
|
AuthenticatedData(ObjectID contentType,
byte[] content,
AlgorithmID macAlgorithm,
int macKeyLength,
java.security.spec.AlgorithmParameterSpec macParams,
int mode)
Creates a new AuthenticatedData where the to-be-authenticated content data is supplied from an byte array.
|
AuthenticatedDataStream(ObjectID contentType,
java.io.InputStream data_is,
AlgorithmID macAlgorithm,
byte[] mac,
AlgorithmID digestAlgorithm,
int mode)
Creates an AuthenticatedDataStream from an already calculated MAC value.
|
AuthenticatedDataStream(ObjectID contentType,
java.io.InputStream data_is,
AlgorithmID macAlgorithm,
int macKeyLength,
java.security.spec.AlgorithmParameterSpec macAlgParameters,
AlgorithmID digestAlgorithm,
int mode)
Creates a new AuthenticatedDataStream where the to-be-authenticated
content data is supplied by an input stream.
|
AuthenticatedDataStream(ObjectID contentType,
java.io.InputStream data_is,
AlgorithmID macAlgorithm,
int macKeyLength,
java.security.spec.AlgorithmParameterSpec macAlgParameters,
int mode)
Creates a new AuthenticatedDataStream where the to-be-authenticated
content data is supplied by an input stream.
|
DigestedData(byte[] content,
AlgorithmID digestAlgorithm,
int mode)
Creates a new
DigestedData object from given content and
and digest algorithm. |
DigestedData(ObjectID contentType,
byte[] content,
AlgorithmID digestAlgorithm,
int mode)
Creates a new
DigestedData object from given content and
and digest algorithm. |
DigestedDataStream(java.io.InputStream data_is,
AlgorithmID digestAlgorithm,
int mode)
Creates a new
DigestedDataStream object from given content and
and digest algorithm. |
DigestedDataStream(ObjectID contentType,
java.io.InputStream data_is,
AlgorithmID digestAlgorithm,
int mode)
Creates a new
DigestedDataStream object from given content and
and digest algorithm. |
PasswordRecipientInfo(SecureStringBuffer password,
AlgorithmID keyDerivationAlgorithm,
java.security.spec.AlgorithmParameterSpec keyDerivationAlgorithmParams,
AlgorithmID kekEncryptionAlgorithm,
java.security.AlgorithmParameters kekEncryptionAlgorithmParams)
Creates a PasswordRecipientInfo object for deriving key encryption key (KEK)
from the supplied password.
|
| Modifier and Type | Class and Description |
|---|---|
class |
SMimeException
This exception is thrown when there occurs a problem with S/MIME.
|
| Modifier and Type | Method and Description |
|---|---|
ASN1Object |
SMimeEncrypted.toASN1Object()
Returns the S/MIME enveloped message as an ASN1Object.
|
ASN1Object |
SMimeSigned.toASN1Object()
Returns this SMimeSigned object as an ASN1Object.
|
ASN1Object |
SMimeCompressed.toASN1Object(int blocksize)
Returns the S/MIME compressed message as an ASN1Object.
|
byte[] |
JMailSMimeSigned.toByteArray()
Returns this JMailSMimeSigned object as DER encoded byte array.
|