| Package | Description |
|---|---|
| iaik.pkcs | |
| iaik.pkcs.pkcs12 | |
| iaik.pkcs.pkcs7 | |
| iaik.security.smime |
| Modifier and Type | Class and Description |
|---|---|
class |
PKCSParsingException
PKCS Parsing Exception.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
NetscapeCertList.toByteArray()
Returns this
NetscapeCertList object as DER encoded byte array. |
byte[] |
PKCS7CertList.toByteArray()
Returns this
PKCS7CertList object as DER encoded byte array. |
| Modifier and Type | Method and Description |
|---|---|
static SafeBag |
SafeBag.create(ObjectID oid)
Creates a new SafeBag from a given ObjectID.
|
void |
AuthenticatedSafe.decrypt(char[] password)
Uses the given password for decrypting the password-based encryptet
contents of this
AuthenticatedSafe to recover the safe
bags constituting this AuthenticatedSafe object. |
void |
PKCS12.decrypt(char[] password)
Uses the provided password to decrypt this PKCS12 object for
recovering the inherent authenticatedSafes.
|
void |
PKCS12.encrypt(char[] password)
Uses the provided password to encrypt the content of this PKCS#12 object.
|
void |
AuthenticatedSafe.encrypt(char[] password,
AlgorithmID algorithm)
Password-based encrypts the Data containing the sequence of safe bags included
in this
AuthenticatedSafe, if the PASSWORD_ENCRYPTED mode
has been set when creating this AuthenticatedSafe object. |
void |
PKCS12.encrypt(char[] password,
AlgorithmID algorithm)
Uses the provided password and algorithm to encrypt the content of this
PKCS#12 object.
|
void |
PKCS12.encrypt(char[] password,
AlgorithmID algorithm,
java.security.spec.AlgorithmParameterSpec params)
Uses the provided password to encrypt the content of this PKCS#12 object.
|
void |
PKCS12.encrypt(char[] password,
java.lang.String algorithmStringName)
Uses the provided password to encrypt the content of this PKCS#12 object.
|
ASN1Object |
PKCS12.toASN1Object()
Returns this PKCS#12 object as ASN1Object.
|
boolean |
PKCS12.verify(char[] password)
Verifies the MAC of this PKCS12 object.
|
| Constructor and Description |
|---|
AuthenticatedSafe(int mode,
SafeBag[] safeBags)
Creates a new AuthenticatedSafe containing the given SafeBags with the
desired mode.
|
PKCS12(KeyBag[] keyBags,
CertificateBag[] certificateBags)
Creates a new PKCS#12 object from an array of KeyBags and an array of CertificateBags.
|
PKCS12(KeyBag[] keyBags,
CertificateBag[] certificateBags,
int hashCount)
Creates a new PKCS#12 object from an array of KeyBags and an array of CertificateBags.
|
PKCS12(KeyBag keyBag,
CertificateBag[] certificateBags)
Creates a new PKCS#12 object from a KeyBag and an array of CertificateBags.
|
PKCS12(KeyBag keyBag,
CertificateBag[] certificateBags,
int hashCount)
Creates a new PKCS#12 object from a KeyBag and an array of CertificateBags.
|
| Modifier and Type | Method and Description |
|---|---|
static ContentStream |
ContentInfoStream.create(ObjectID oid)
Returns a stream-supporting instance of the specified PKCS#7 content type implementation,
defined by its ASN.1 ObjectID.
|
javax.crypto.SecretKey |
RecipientInfo.decryptKey(java.security.PrivateKey privateKey)
Uses a RSAPrivateKey to decrypt the encrypted content-encryption key.
|
void |
RecipientInfo.encryptKey(javax.crypto.SecretKey key)
Finishes the creation of a
RecipientInfo object by encrypting
the given secret key.. |
X509Certificate |
SignedDataStream.getCertificate(IssuerAndSerialNumber issuer)
Tries to find the certificate specified by an IssuerAndSerialNumber.
|
byte[] |
SignedDataStream.getSignedDigest(int signerInfoIndex)
Returns the message digest included in the authenticated attributes.
|
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.PrivateKey recipientPrivateKey,
int recipientInfoIndex)
Uses the specified private key to setup the Cipher for decrypting the content-encryption key
and subsequently using it to decrypt the encrypted content of this
EnvelopedDataStream object for the requesting recipient, specified by its
recipientInfoIndex. |
void |
SignedAndEnvelopedDataStream.setupCipher(java.security.PrivateKey recipientPrivateKey,
int recipientInfoIndex)
Uses the specified private key to setup the Cipher for decrypting the content-encryption key
and subsequently using it to decrypt the encrypted content of this
SignedAndEnvelopedData object for the requesting recipient, specified by its
recipientInfoIndex. |
ASN1Object |
ContentInfoStream.toASN1Object()
Returns this PKCS#7 ContentInfoStream as ASN1Object.
|
ASN1Object |
ContentStream.toASN1Object()
Returns the content value of the implemented PKCS#7 content type as an ASN1Object.
|
ASN1Object |
DataStream.toASN1Object()
Returns this PKCS#7
Data as ASN1Object. |
ASN1Object |
DigestedDataStream.toASN1Object()
Returns this DigestedDataStream as ASN1Object.
|
ASN1Object |
EncryptedContentInfoStream.toASN1Object()
Returns this EncryptedContentInfoStream as ASN1Object.
|
ASN1Object |
EncryptedDataStream.toASN1Object()
Returns this PKCS#7 EnvelopedDataStream as ASN1Object.
|
ASN1Object |
EnvelopedDataStream.toASN1Object()
Returns this EnvelopedDataStream as ASN1Object.
|
ASN1Object |
SignedAndEnvelopedDataStream.toASN1Object()
Returns this PKCS#7 SignedAndEnvelopedDataStream as ASN1Object.
|
ASN1Object |
SignedDataStream.toASN1Object()
Returns this SignedDataStream 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 |
EncryptedDataStream.toASN1Object(int blockSize)
Returns this PKCS#7
EncryptedDataStream as ASN1Object where a constructed
OCTET STRING is used for encoding the encrypted content. |
protected ASN1Object |
EnvelopedDataStream.toASN1Object(int blockSize)
Returns this EnvelopedData as ASN1Object.
|
protected ASN1Object |
SignedAndEnvelopedDataStream.toASN1Object(int blockSize)
Returns this SignedAndEnvelopedDataStream as ASN1Object where a constructed
OCTET STRING is used for encoding the content.
|
protected ASN1Object |
SignedDataStream.toASN1Object(int blockSize)
Returns this SignedData as ASN1Object where a constructed
OCTET STRING is used for encoding the content.
|
boolean |
DigestedDataStream.verify()
Verifies the digest.
|
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 PKCS#7
DataStream object BER encoded to the given output stream. |
void |
EncryptedContentInfoStream.writeTo(java.io.OutputStream os)
Writes the BER encoding of this object to the given OutputStream.
|
| Constructor and Description |
|---|
DigestedDataStream(java.io.InputStream data_is,
AlgorithmID digestAlgorithm,
int mode)
Creates a new
DigestedDataStream object from given content and
and digest algorithm. |
| 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.
|
byte[] |
JMailSMimeSigned.toByteArray()
Returns this JMailSMimeSigned object as DER encoded byte array.
|
byte[] |
SMimeSigned.toByteArray()
Returns this SMimeSigned object as DER encoded byte array.
|