| Package | Description |
|---|---|
| com.entrust.toolkit |
Contains various high-level classes that provide Toolkit JCA cryptographic provider initialization,
an Entrust User representation, a key/certificate source, a certificate set representation,
JNI initialization capabilities, PKCS #7 encoding and decoding, CMS and PKCS#7 User related
utilities, transaction counting, and an XML trust manager.
|
| com.entrust.toolkit.asn1.structures |
Contains classes used to create, parse, and manipulate general ASN.1
structures.
|
| com.entrust.toolkit.asn1.tsp |
Contains classes used to create, parse, and manipulate ASN.1 structures
used with time-stamping.
|
| com.entrust.toolkit.roaming |
Contains Toolkit classes that support SSL and TLS communication with
Entrust Authority™ Roaming Server (formerly Entrust/Roaming Server).
|
| com.entrust.toolkit.security.spec |
Contains transparent cryptographic algorithm parameter implementations.
|
| com.entrust.toolkit.x509.policies |
Contains classes used to check security policies issued by an Entrust PKI — password rules and client
settings, for example.
|
| iaik.asn1.structures | |
| iaik.cms | |
| iaik.pkcs.pkcs10 | |
| iaik.pkcs.pkcs12 | |
| iaik.pkcs.pkcs7 | |
| iaik.pkcs.pkcs8 | |
| iaik.security.cipher | |
| iaik.security.pbe | |
| iaik.security.rsa | |
| iaik.security.smime | |
| iaik.security.spec | |
| iaik.smime | |
| iaik.smime.ess | |
| iaik.x509 | |
| iaik.x509.attr | |
| iaik.x509.extensions.qualified.structures | |
| iaik.x509.ocsp |
| Modifier and Type | Method and Description |
|---|---|
AlgorithmID |
PKCS7EncodeStream.getDigestAlgorithm()
Returns the message digest algorithm used to sign the data.
|
AlgorithmID |
PKCS7DecodeStream.getDigestAlgorithm(int index)
Returns the message digest algorithm used to sign the data.
|
AlgorithmID |
PKCS7DecodeStream.getEncryptionAlgorithm()
Returns the algorithm used to encrypt the data.
|
AlgorithmID |
PKCS7EncodeStream.getEncryptionAlgorithm()
Returns the algorithm used to encrypt the data during the PKCS7 encode
operation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
PKCS7EncodeStream.setDigestAlgorithm(AlgorithmID digest)
Specifies the message digest algorithm to use for signing the data.
|
void |
PKCS7EncodeStream.setEncryptionAlgorithm(AlgorithmID encryptionAlg)
Specifies the encryption algorithm to be used during an PKCS7 encode
operation that involves data being encrypted.
|
void |
PKCS7EncodeStream.setEncryptionAlgorithm(AlgorithmID encryptionAlg,
int keyLength)
Specifies the encryption algorithm and encryption key length to be used
during an PKCS7 encode operation that involves data being encrypted.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AlgorithmIdentifier
Deprecated.
Use AlgorithmID instead (since JTK 7.0)
|
| Modifier and Type | Method and Description |
|---|---|
AlgorithmID |
SubjectPublicKeyInfo.getAlgorithm()
Deprecated.
|
AlgorithmID |
PKIHeader.getProtectionAlg()
Deprecated.
This method returns the protection algorithm associated with the
PKIHeader.
|
AlgorithmID |
CertTemplateCMP.getSigningAlgorithm()
Deprecated.
|
AlgorithmID |
AlgorithmID.toIAIKAlgorithmID()
Converts an Entrust Algorithm Identifier to an IAIK Algorithm Identifier.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SubjectPublicKeyInfo.setAlgorithm(AlgorithmID algorithm)
Deprecated.
|
void |
PKIHeader.setProtectionAlg(AlgorithmID protectionAlg)
Deprecated.
This method sets the protection algorithm field in the header.
|
void |
CertTemplateCMP.setSigningAlgorithm(AlgorithmID signingAlg)
Deprecated.
|
| Constructor and Description |
|---|
AlgorithmIdentifier(AlgorithmID algorithmID)
Deprecated.
|
PKIHeader(int pvno,
GeneralName sender,
GeneralName recipient,
GeneralizedTime messageTime,
AlgorithmID protectionAlg,
ASN1Object senderKID,
ASN1Object recipKID,
OCTET_STRING transactionID,
OCTET_STRING senderNonce,
OCTET_STRING recipNonce)
Deprecated.
This constructor, given all of the information that can be included, creates
a PKIHeader object.
|
| Constructor and Description |
|---|
CMSTimeStampToken(TSTInfo tstInfo,
X509Certificate tsaCert,
java.security.PrivateKey tsaSigningKey,
AlgorithmID digestAlgorithm,
boolean includeIssuerSerial,
boolean includeTsaCert)
Creates a new
CMSTimeStampToken object that contains the
indicated time-stamp information and TimeStamp Authority certificate. |
| Modifier and Type | Method and Description |
|---|---|
AlgorithmID |
CombinedUpdateRegReq.getFileEncKeyType()
Returns the
fileEncKeyType component. |
| Modifier and Type | Method and Description |
|---|---|
void |
CombinedUpdateRegReq.setFileEncKeyType(AlgorithmID keyType)
Sets the
fileEncKeyType component. |
| Modifier and Type | Method and Description |
|---|---|
AlgorithmID |
RSAOAEPParameterSpec.getHashAlgorithm()
Returns the hash algorithm identifier.
|
AlgorithmID |
RSAOAEPParameterSpec.getMaskGenAlgorithm()
Returns the mask generation function algorithm identifier.
|
AlgorithmID |
RSAOAEPParameterSpec.getPSource()
Returns the pSourceAlgorithm identifier.
|
| Modifier and Type | Method and Description |
|---|---|
void |
RSAOAEPParameterSpec.setHashAlgorithm(AlgorithmID algId)
This is used to set the hashAlgorithm.
|
void |
RSAOAEPParameterSpec.setMaskGenAlgorithm(AlgorithmID alg)
This is used to set the maskGenAlgorithm and should already have an
encapsulated hashAlgorithm if other then SHA1
|
void |
RSAOAEPParameterSpec.setPSource(AlgorithmID pSource)
This is used to set pSourceAlgorithm and should already have the P
parameter encapsulated.
|
| Modifier and Type | Method and Description |
|---|---|
AlgorithmID |
AttributeCertificate.getSignatureAlgorithm()
Returns the signature algorithm of this attribute certificate.
|
AlgorithmID |
EntrustPolicyCertificate.getSignatureAlgorithm()
Returns the signature algorithm of this certificate.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ClientSettings.assertAllowedHashAlgorithm(AlgorithmID algorithm)
Ensures that the indicated hash algorithm is allowed under the client
policy settings.
|
boolean |
ClientSettings.isAllowedHashAlgorithm(AlgorithmID algorithm)
Determines whether or not the indicated hash algorithm is allowed under
the client policy settings.
|
| Modifier and Type | Field and Description |
|---|---|
static AlgorithmID |
AlgorithmID.aes_128_CBC
Creates an AlgorithmID for the
AES symmetric block cipher
used with a 128-bit key in CBC mode. |
static AlgorithmID |
AlgorithmID.aes_128_ECB
Creates an AlgorithmID for the
AES symmetric block cipher
used with a 128-bit key in ECB mode. |
static AlgorithmID |
AlgorithmID.aes_128_GCM
Creates an AlgorithmID for the
AES symmetric block cipher
used with a 128-bit key in GCM mode. |
static AlgorithmID |
AlgorithmID.aes_128_wrap
Creates an AlgorithmID for the
AesKeyWrap key wrap
algorithm for wrapping 128-bit AES content encryption keys with
128-bit AES key encryption keys (RFC 3394). |
static AlgorithmID |
AlgorithmID.aes_192_CBC
Creates an AlgorithmID for the
AES symmetric block cipher
used with a 192-bit key in CBC mode. |
static AlgorithmID |
AlgorithmID.aes_192_ECB
Creates an AlgorithmID for the
AES symmetric block cipher
used with a 192-bit key in ECB mode. |
static AlgorithmID |
AlgorithmID.aes_192_GCM
Creates an AlgorithmID for the
AES symmetric block cipher
used with a 192-bit key in GCM mode. |
static AlgorithmID |
AlgorithmID.aes_192_wrap
Creates an AlgorithmID for the
AesKeyWrap key wrap
algorithm for wrapping 192-bit AES content encryption keys with
192-bit AES key encryption keys (RFC 3394). |
static AlgorithmID |
AlgorithmID.aes_256_CBC
Creates an AlgorithmID for the
AES symmetric block cipher
used with a 256-bit key in CBC mode. |
static AlgorithmID |
AlgorithmID.aes_256_ECB
Creates an AlgorithmID for the
AES symmetric block cipher
used with a 256-bit key in ECB mode. |
static AlgorithmID |
AlgorithmID.aes_256_GCM
Creates an AlgorithmID for the
AES symmetric block cipher
used with a 256-bit key in GCM mode. |
static AlgorithmID |
AlgorithmID.aes_256_wrap
Creates an AlgorithmID for the
AesKeyWrap key wrap
algorithm for wrapping 256-bit AES content encryption keys with
256-bit AES key encryption keys (RFC 3394). |
static AlgorithmID |
AlgorithmID.cast3_CBC
Creates an AlgorithmID for the
CAST3 symmetric block
cipher used in CBC mode. |
static AlgorithmID |
AlgorithmID.cast5_CBC
Creates an AlgorithmID for the
CAST5 symmetric block
cipher used in CBC mode. |
static AlgorithmID |
AlgorithmID.cms_3DES_wrap
Creates an AlgorithmID for the
CMS3DESwrap key wrap
algorithm for wrapping DESede content encryption keys with DESede key
encryption keys (RFC 2630). |
static AlgorithmID |
AlgorithmID.cms_cast_wrap
Creates an AlgorithmID for the
CMSCAST128wrap key wrap
algorithm for wrapping CAST128 content encryption keys with CAST128 key
encryption keys (RFC 2984). |
static AlgorithmID |
AlgorithmID.cms_cast5_wrap
Creates an AlgorithmID for the
CMSCAST128wrap key wrap
algorithm for wrapping CAST128 content encryption keys with CAST128 key
encryption keys (RFC 2984). |
static AlgorithmID |
AlgorithmID.cms_idea_wrap
Creates an AlgorithmID for the
CMSIDEAwrap key wrap
algorithm for wrapping IDEA content encryption keys with IDEA key
encryption keys (RFC 3058). |
static AlgorithmID |
AlgorithmID.cms_pwri_kek
Creates an AlgorithmID for the
key wrap
algorithm for wrapping a Password Recipient Info content encryption key
a Key Encryption Key derived from a password (RFC 3231). |
static AlgorithmID |
AlgorithmID.cms_rc2_wrap
Creates an AlgorithmID for the
CMSRC2wrap key wrap
algorithm for wrapping RC2 content encryption keys with RC2 key
encryption keys (RFC 2630). |
static AlgorithmID |
AlgorithmID.compositeKey
Creates an AlgorithmID for the
Composite Key
signature algorithm. |
static AlgorithmID |
AlgorithmID.compositeSignature
Creates an AlgorithmID for the Generic
Composite Signature Algorithm
signature algorithm. |
static AlgorithmID |
AlgorithmID.des_CBC
Creates an AlgorithmID for the
DES symmetric block cipher
used in CBC mode. |
static AlgorithmID |
AlgorithmID.des_EDE3_CBC
Creates an AlgorithmID for the
Triple DES symmetric block
cipher used in CBC mode. |
static AlgorithmID |
AlgorithmID.dhKeyAgreement
Creates an AlgorithmID for the
Diffie-Hellman key exchange
algorithm. |
static AlgorithmID |
AlgorithmID.dhSinglePass_cofactorDH_sha1kdf_scheme
Creates an AlgorithmID for the
1-Pass Diffie Hellman scheme
that uses the modified (aka: cofactor) Diffie-Hellman primitive and the
key derivation function based on SHA-1 (ANSI X9.63). |
static AlgorithmID |
AlgorithmID.dhSinglePass_cofactorDH_sha224kdf_scheme
To support some new KARI Algorithms for ECC CMC RFC#5753
|
static AlgorithmID |
AlgorithmID.dhSinglePass_cofactorDH_sha256kdf_scheme |
static AlgorithmID |
AlgorithmID.dhSinglePass_cofactorDH_sha384kdf_scheme |
static AlgorithmID |
AlgorithmID.dhSinglePass_cofactorDH_sha512kdf_scheme |
static AlgorithmID |
AlgorithmID.dhSinglePass_stdDH_sha1kdf_scheme
Creates an AlgorithmID for the
1-Pass Diffie Hellman
scheme that uses the standard Diffie-Hellman primitive and the key
derivation function based on SHA-1 (ANSI X9.63). |
static AlgorithmID |
AlgorithmID.dhSinglePass_stdDH_sha224kdf_scheme |
static AlgorithmID |
AlgorithmID.dhSinglePass_stdDH_sha256kdf_scheme
To support some new KARI Algorithms for ECC CMC RFC#5753
|
static AlgorithmID |
AlgorithmID.dhSinglePass_stdDH_sha384kdf_scheme |
static AlgorithmID |
AlgorithmID.dhSinglePass_stdDH_sha512kdf_scheme |
static AlgorithmID |
AlgorithmID.dsa
Creates an AlgorithmID for the
DSA signature algorithm. |
static AlgorithmID |
AlgorithmID.dsa_With_SHA1
Creates an alternative AlgorithmID for the
dsaWithSHA1
signature algorithm. |
static AlgorithmID |
AlgorithmID.dsa_with_Sha224
Creates an AlgorithmID for the
dsaWithSha224 signature
algorithm. |
static AlgorithmID |
AlgorithmID.dsa_with_Sha256
Creates an AlgorithmID for the
dsaWithSha256 signature
algorithm. |
static AlgorithmID |
AlgorithmID.dsaWithSHA
Creates an AlgorithmID for the
dsaWithSHA signature
algorithm. |
static AlgorithmID |
AlgorithmID.dsaWithSHA1
Creates an AlgorithmID for the
dsaWithSHA1 signature
algorithm. |
static AlgorithmID |
AlgorithmID.dsaX957
Creates an AlgorithmID for the
DSA signature algorithm,
using the OID defined in the X.957 standard. |
static AlgorithmID |
AlgorithmID.ecdsa_with_Recommended
Creates an AlgorithmID for the
ecdsa-with-Recommended signature algorithm. |
static AlgorithmID |
AlgorithmID.ecdsa_with_Sha224
Creates an AlgorithmID for the
ecdsa-with-Sha224 signature algorithm. |
static AlgorithmID |
AlgorithmID.ecdsa_with_Sha256
Creates an AlgorithmID for the
ecdsa-with-Sha256 signature algorithm. |
static AlgorithmID |
AlgorithmID.ecdsa_with_Sha384
Creates an AlgorithmID for the
ecdsa-with-Sha384 signature algorithm. |
static AlgorithmID |
AlgorithmID.ecdsa_with_Sha512
Creates an AlgorithmID for the
ecdsa-with-Sha512 signature algorithm. |
static AlgorithmID |
AlgorithmID.ecdsa_with_Specified
Creates an AlgorithmID for the
ecdsa-with-Specified signature algorithm. |
static AlgorithmID |
AlgorithmID.ecdsaWithSHA1
Creates an AlgorithmID for the
ecdsaWithSHA1 signature algorithm. |
static AlgorithmID |
AlgorithmID.esdh
Creates an AlgorithmID for identifying public
Ephemeral-Static
Diffie-Hellman
keys. |
static AlgorithmID |
AlgorithmID.esdhKeyAgreement
Creates an AlgorithmID for the
Ephemeral-Static Diffie-Hellman key agreement algorithm
(RFC 2631). |
static AlgorithmID |
AlgorithmID.id_ecPublicKey
Creates an AlgorithmID that represents an
EC
public key (ANSI X9.62). |
static AlgorithmID |
AlgorithmID.id_RSASAA_PSS
An AlgorithmID for the RSA-PSS signature algorithm.
|
static AlgorithmID |
AlgorithmID.idea_CBC
Creates an AlgorithmID for the
IDEA symmetric block cipher
used in CBC mode. |
static AlgorithmID |
AlgorithmID.md2
Creates an AlgorithmID for the
MD2 message digest
algorithm. |
static AlgorithmID |
AlgorithmID.md2WithRSAEncryption
Creates an AlgorithmID for the
md2WithRSAEncryption
signature algorithm. |
static AlgorithmID |
AlgorithmID.md4
Creates an AlgorithmID for the
MD4 message digest
algorithm. |
static AlgorithmID |
AlgorithmID.md4WithRSAEncryption
Creates an AlgorithmID for the
md4WithRSAEncryption
signature algorithm. |
static AlgorithmID |
AlgorithmID.md5
Creates an AlgorithmID for the
MD5 message digest
algorithm. |
static AlgorithmID |
AlgorithmID.md5WithRSAEncryption
Creates an AlgorithmID for the
md5WithRSAEncryption
signature algorithm. |
static AlgorithmID |
AlgorithmID.mgf1
Creates an AlgorithmID for the
MGF1 mask generation
algorithm used in PKCS-1 v2.0. |
static AlgorithmID |
AlgorithmID.PBES2
Creates an AlgorithmID for the
PBES2
Password-Based Encryption algorithm as defined by RFC 8018. |
static AlgorithmID |
AlgorithmID.pbeWithMD5AndDES_CBC
Creates an AlgorithmID for the
pbeWithMD5AndDES_CBC
key-encryption algorithm as defined by PKCS#5. |
static AlgorithmID |
AlgorithmID.pbeWithSHAAnd128BitRC2_CBC
Creates an AlgorithmID for the
pbeWithSHAAnd128BitRC2_CBC
key-encryption algorithm as defined by PKCS#12. |
static AlgorithmID |
AlgorithmID.pbeWithSHAAnd128BitRC4
Creates an AlgorithmID for the
pbeWithSHAAnd128BitRC4
key-encryption algorithm as defined by PKCS#12. |
static AlgorithmID |
AlgorithmID.pbeWithSHAAnd2_KeyTripleDES_CBC
Creates an AlgorithmID for the
pbeWithSHAAnd2_KeyTripleDES_CBC key-encryption algorithm
as defined by PKCS#12. |
static AlgorithmID |
AlgorithmID.pbeWithSHAAnd3_KeyTripleDES_CBC
Creates an AlgorithmID for the
pbeWithSHAAnd3_KeyTripleDES_CBC key-encryption algorithm
as defined by PKCS#12. |
static AlgorithmID |
AlgorithmID.pbeWithSHAAnd40BitRC2_CBC
Creates an AlgorithmID for the
pbeWithSHAAnd40BitRC2_CBC
key-encryption algorithm as defined by PKCS#12. |
static AlgorithmID |
AlgorithmID.pbeWithSHAAnd40BitRC4
Creates an AlgorithmID for the
pbeWithSHAAnd40BitRC4
key-encryption algorithm as defined by PKCS#12. |
static AlgorithmID |
AlgorithmID.pbkdf2
Creates an AlgorithmID for the
PBKDF2
key-generator algorithm as defined by RFC 2298. |
static AlgorithmID |
AlgorithmID.PBMAC1
Creates an AlgorithmID for the
PBMAC1
Password-Based Encryption algorithm as defined by RFC 8018. |
static AlgorithmID |
AlgorithmID.rc2_CBC
Creates an AlgorithmID for the
RC2 symmetric block cipher
used in CBC mode. |
static AlgorithmID |
AlgorithmID.rc4
Creates an AlgorithmID for the
RC4 stream cipher. |
static AlgorithmID |
AlgorithmID.rc5_CBC
Creates an AlgorithmID for the
RC5 symmetric block cipher
used in CBC mode. |
static AlgorithmID |
AlgorithmID.rsa
Creates an AlgorithmID for the
RSA public key algorithm. |
static AlgorithmID |
AlgorithmID.rsaEncryption
Creates an AlgorithmID for the
RSA encryption signature
algorithm. |
static AlgorithmID |
AlgorithmID.rsaESOAEP
Creates an AlgorithmID for the
RSA encryption signature
algorithm, using the OAEP encoding scheme defined in PKCS-1 v2.0
ObjectID = "1.2.840.113549.1.1.7"
name = "rsaESOAEP"
implementationName = "RSA-OAEP"
For addressing it, use AlgorithmID.rsaESOAEP. |
static AlgorithmID |
AlgorithmID.sha
Creates an AlgorithmID for the
SHA message digest
algorithm. |
static AlgorithmID |
AlgorithmID.sha1
Creates an AlgorithmID for the
SHA1 message digest
algorithm which is the same as SHA. |
static AlgorithmID |
AlgorithmID.sha1WithRSAEncryption
Creates an AlgorithmID for the
sha1WithRSAEncryption
signature algorithm. |
static AlgorithmID |
AlgorithmID.sha224
Creates an AlgorithmID for the
SHA224 message digest
algorithm. |
static AlgorithmID |
AlgorithmID.sha224WithRSAEncryption
Creates an AlgorithmID for the
sha224WithRSAEncryption
signature algorithm. |
static AlgorithmID |
AlgorithmID.sha256
Creates an AlgorithmID for the
SHA256 message digest
algorithm. |
static AlgorithmID |
AlgorithmID.sha256WithRSAEncryption
Creates an AlgorithmID for the
sha256WithRSAEncryption
signature algorithm. |
static AlgorithmID |
AlgorithmID.sha384
Creates an AlgorithmID for the
SHA384 message digest
algorithm. |
static AlgorithmID |
AlgorithmID.sha384WithRSAEncryption
Creates an AlgorithmID for the
sha384WithRSAEncryption
signature algorithm. |
static AlgorithmID |
AlgorithmID.sha512
Creates an AlgorithmID for the
SHA512 message digest
algorithm. |
static AlgorithmID |
AlgorithmID.sha512WithRSAEncryption
Creates an AlgorithmID for the
sha512WithRSAEncryption
signature algorithm. |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
AlgorithmID.changeObjectID(AlgorithmID algID,
ObjectID oid)
Changes the object identifier of the given AlgorithmID object.
|
static boolean |
AlgorithmID.changeOIDString(AlgorithmID algID,
java.lang.String oidString)
Changes the object identifier string of the given AlgorithmID object.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CompressionProvider
This class provides the compression which is provided to the CMS CompressedContent
type object.
|
| Modifier and Type | Field and Description |
|---|---|
protected AlgorithmID |
EncryptedContentInfoStream.contentEncryptionAlgorithm_
The content-encryption algorithm
|
protected AlgorithmID |
DigestedDataStream.digestAlgorithm_
The digest algorithm to use.
|
protected AlgorithmID |
PasswordRecipientInfo.keyDerivationAlgorithm_
The algorithm used for deriving the content encryption key.
|
protected AlgorithmID |
RecipientInfo.keyEncryptionAlgorithm_
The algorithm used for encrypting the content encryption key.
|
protected AlgorithmID |
CompressedDataStream.m_compressionAlgorithm
The compression algorithm ID
|
protected AlgorithmID |
AuthenticatedDataStream.m_digestAlgorithm
The digest algorithm to use.
|
protected AlgorithmID |
AuthenticatedDataStream.m_macAlgorithm
The MAC algorithm to use.
|
static AlgorithmID |
CompressionProvider.zlib_compress
Creates an AlgorithmID for the
ZLIB compression algorithm. |
| Modifier and Type | Method and Description |
|---|---|
AlgorithmID |
CompressedDataStream.getCompressionAlgorithm()
Returns the compression algorithm
|
AlgorithmID |
EncryptedContentInfoStream.getContentEncryptionAlgorithm()
Returns the content-encryption algorithm (including any associated
parameters) of this EncryptedContentInfoStream.
|
AlgorithmID |
AuthenticatedDataStream.getDigestAlgorithm()
Returns the message-digest algorithm used for computing the digest.
|
AlgorithmID |
DigestInfo.getDigestAlgorithm()
Returns the AlgorithmID of the message-digest algorithm (including
any associated parameters) that has been used for calculating the
digest on the content and any authenticated information.
|
AlgorithmID |
DigestedDataStream.getDigestAlgorithm()
Returns the message-digest algorithm used for computing the digest.
|
AlgorithmID |
SignerInfo.getDigestAlgorithm()
Returns the AlgorithmID of the message-digest algorithm that has
been used for digesting the content and any signed attributes.
|
AlgorithmID[] |
SignedDataStream.getDigestAlgorithms()
Returns a collection of message-digest algorithm identifiers.
|
AlgorithmID |
PasswordRecipientInfo.getKeyDerivationAlgorithm()
Returns the key-derivation algorithm used for encrypting the
content-encryption key with the recipient's public key.
|
AlgorithmID |
RecipientInfo.getKeyEncryptionAlgorithm()
Returns the key-encryption algorithm used for encrypting
the content-encryption key with the recipient's public key.
|
AlgorithmID |
KeyAgreeRecipientInfo.getKeyWrapAlgorithm()
Returns the key wrap algorithm used for encrypting the content-encryption
key with the shared key encryption key.
|
AlgorithmID |
AuthenticatedDataStream.getMacAlgorithm()
Returns the message-digest algorithm used for computing the digest.
|
AlgorithmID[] |
SecurityProvider.getMicAlgs(java.lang.String micalg)
Returns an array of AlgorithmIDs specified by the given micalg String.
|
AlgorithmID |
SignerInfo.getSignatureAlgorithm()
Returns the signature algorithm used for calculating the signature
and associated information with the signer's private key.
|
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
SecurityProvider.calculateSignatureFromHash(AlgorithmID signatureAlgorithm,
AlgorithmID digestAlgorithm,
java.security.PrivateKey privateKey,
byte[] digest)
Calculates the signature value for a CMS SignerInfo over the given digest
value with the given algorithm using the supplied private key.
|
protected byte[] |
IaikProvider.calculateSignatureFromSignedAttributes(AlgorithmID signatureAlgorithm,
AlgorithmID digestAlgorithm,
java.security.PrivateKey privateKey,
byte[] signedAttributes)
Calculates the signature value for a CMS SignerInfo over the given signed
attributes with the given algorithm using the supplied private key.
|
protected byte[] |
SecurityProvider.calculateSignatureFromSignedAttributes(AlgorithmID signatureAlgorithm,
AlgorithmID digestAlgorithm,
java.security.PrivateKey privateKey,
byte[] signedAttributes)
Calculates the signature value for a CMS SignerInfo over the given signed
attributes with the given algorithm using the supplied private key.
|
byte[] |
CompressionProvider.compress(AlgorithmID algorithmid,
byte[] data,
int compressionMode)
Uses the given compression algorithm to compress/decompress the supplied input data.
|
protected javax.crypto.SecretKey |
SecurityProvider.createSharedKeyEncryptionKey(AlgorithmID keyAgreeAlg,
java.security.PrivateKey myKey,
java.security.PublicKey otherKey,
AlgorithmID kea,
int kekLength,
byte[] ukm,
java.lang.String kekName)
Create a shared secret key encryption key for the given key agree
algorithm.
|
javax.crypto.SecretKey |
IaikProvider.decryptKey(byte[] encryptedKey,
AlgorithmID kea,
java.security.PrivateKey recipientKey)
Decrypts the given encrypted content encryption key for a
KeyTransRecipientInfo. |
javax.crypto.SecretKey |
SecurityProvider.decryptKey(byte[] encryptedKey,
AlgorithmID kea,
java.security.PrivateKey recipientKey)
Decrypts the given encrypted content encryption key for a
KeyTransRecipientInfo. |
javax.crypto.SecretKey |
PasswordRecipientInfo.decryptKey(SecureStringBuffer password,
java.lang.String cekAlgorithmName,
AlgorithmID keyDerivationAlgorithm)
Uses the given password to derive the KEK to be used to unwrap the CEK.
|
byte[] |
SecurityProvider.encryptKey(javax.crypto.SecretKey cek,
AlgorithmID kea,
java.security.PublicKey recipientKey)
Encrypts the given secret content encryption key for a
KeyTransRecipientInfo. |
protected java.security.KeyPair |
IaikProvider.generateKeyAgreementKeyPair(AlgorithmID keyAgreeAlgorithm,
java.security.PublicKey otherKey)
Generates a key pair with same domain parameters of the given public key
for the given key agreement method.
|
protected java.security.KeyPair |
SecurityProvider.generateKeyAgreementKeyPair(AlgorithmID keyAgreeAlgorithm,
java.security.PublicKey otherKey)
Generates a key pair with same domain parameters of the given public key
for the given key agreement method.
|
java.security.AlgorithmParameters |
SecurityProvider.getAlgorithmParameters(AlgorithmID algorithm)
Gets the algorithm parameters from the given AlgorithmID.
|
protected javax.crypto.Cipher |
SecurityProvider.getCipher(AlgorithmID algorithm,
int mode,
java.security.Key key,
java.security.AlgorithmParameters params)
Returns the desired Cipher object for the requested algorithm.
|
protected javax.crypto.Cipher |
SecurityProvider.getCipher(AlgorithmID algorithm,
int mode,
java.security.Key key,
java.security.spec.AlgorithmParameterSpec params)
Returns the desired Cipher object for the requested algorithm.
|
InputStreamCompressEngine |
CompressionProvider.getInputStreamCompressEngine(AlgorithmID algorithmid,
java.io.InputStream inputstream,
int CompressMode,
int blocksize)
This method returns an InputStreamCompressEngine for compressing or decompressing
data read from some input stream.
|
protected javax.crypto.KeyAgreement |
SecurityProvider.getKeyAgreement(AlgorithmID keyAgreementAlgorithm,
java.security.Key key,
java.security.spec.AlgorithmParameterSpec paramSpec)
This method returns the desired KeyAgreement object.
|
java.security.KeyFactory |
SecurityProvider.getKeyFactory(AlgorithmID algorithm)
This method returns the desired KeyFactory object.
|
javax.crypto.KeyGenerator |
SecurityProvider.getKeyGenerator(AlgorithmID algorithm,
int keyLength)
Return a KeyGenerator for the requested algorithm.
|
protected java.security.KeyPairGenerator |
SecurityProvider.getKeyPairGenerator(AlgorithmID algorithm)
Return a KeyPairGenerator for the requested algorithm.
|
javax.crypto.Mac |
AuthenticatedDataStream.getMac(AlgorithmID algorithmid,
java.security.Key key,
java.security.spec.AlgorithmParameterSpec algorithmparameterspec) |
java.security.MessageDigest |
SecurityProvider.getMessageDigest(AlgorithmID algorithm)
This method returns the desired MessageDigest object.
|
byte[] |
SignedDataStream.getMessageDigest(AlgorithmID digestAlgorithm)
Returns the message digest calculated for a specific algorithm.
|
java.security.Key |
IaikProvider.getPBEKey(char[] password,
AlgorithmID pbeAlg)
Creates secret key from the supplied password using the specified
PBE algorithm.
|
java.security.Key |
SecurityProvider.getPBEKey(char[] password,
AlgorithmID pbeAlg)
Creates secret key from the supplied password using the specified PBE
algorithm.
|
javax.crypto.SecretKeyFactory |
SecurityProvider.getSecretKeyFactory(AlgorithmID algorithm)
Return a SecretKeyFactory for the requested algorithm.
|
protected java.security.Signature |
SecurityProvider.getSignature(AlgorithmID signatureAlgorithm,
int mode,
java.security.Key key)
This method returns the desired Signature object.
|
void |
SignedDataStream.setMessageDigest(AlgorithmID digestAlgorithm,
byte[] digest)
This method can be used to set an externally calculated MessageDigest.
|
javax.crypto.SecretKey |
EncryptedContentInfoStream.setupCipher(AlgorithmID contentEA)
Setups the cipher and generates a secret key for encrypting the content.
|
void |
EncryptedDataStream.setupCipher(AlgorithmID contentEA,
char[] password)
Setups the cipher for PBE-encrypting the content.
|
void |
EncryptedDataStream.setupCipher(AlgorithmID contentEA,
char[] password,
int iterationCount)
Setups the cipher for PBE-encrypting the content.
|
javax.crypto.SecretKey |
EncryptedContentInfoStream.setupCipher(AlgorithmID contentEA,
int keyLength)
Setups the cipher and generates a secret key for encrypting the content.
|
void |
EncryptedContentInfo.setupCipher(AlgorithmID contentEA,
java.security.Key key,
java.security.AlgorithmParameters params)
Setups the cipher and encrypts the content.
|
void |
EncryptedContentInfoStream.setupCipher(AlgorithmID contentEA,
java.security.Key key,
java.security.AlgorithmParameters params)
Setups the cipher for encrypting the content.
|
void |
EncryptedContentInfo.setupCipher(AlgorithmID contentEA,
java.security.Key key,
java.security.spec.AlgorithmParameterSpec params)
Setups the cipher and encrypts the content.
|
void |
EncryptedContentInfoStream.setupCipher(AlgorithmID contentEA,
java.security.Key key,
java.security.spec.AlgorithmParameterSpec params)
Setups the cipher for encrypting the content.
|
protected void |
DigestedData.setupMessageDigest(AlgorithmID digestAlgorithm,
boolean parse)
Calculates the digest.
|
protected javax.crypto.SecretKey |
SecurityProvider.unwrapKey(byte[] wrappedCek,
AlgorithmID kea,
javax.crypto.SecretKey kek,
java.security.AlgorithmParameters params,
java.lang.String cekAlgName)
Unwraps the given wrapped (encrypted) secret content encryption key for a
KEKRecipientInfoor KeyAgreeRecipientInfo. |
protected boolean |
SecurityProvider.verifySignatureFromHash(AlgorithmID signatureAlgorithm,
AlgorithmID digestAlgorithm,
java.security.PublicKey publicKey,
byte[] digest,
byte[] signatureValue)
Verifies the signature value of a CMS SignerInfo object with the given
algorithm using the supplied public key.
|
protected boolean |
IaikProvider.verifySignatureFromSignedAttributes(AlgorithmID signatureAlgorithm,
AlgorithmID digestAlgorithm,
java.security.PublicKey publicKey,
byte[] signedAttributes,
byte[] signatureValue)
Verifies the signature value of a CMS SignerInfo caclculated over the given signed
attributes with the given algorithm using the supplied public key.
|
protected boolean |
SecurityProvider.verifySignatureFromSignedAttributes(AlgorithmID signatureAlgorithm,
AlgorithmID digestAlgorithm,
java.security.PublicKey publicKey,
byte[] signedAttributes,
byte[] signatureValue)
Verifies the signature value of a CMS SignerInfo calculated over the
given signed attributes with the given algorithm using the supplied
public key.
|
protected byte[] |
SecurityProvider.wrapKey(javax.crypto.SecretKey cek,
AlgorithmID kea,
javax.crypto.SecretKey kek,
java.security.AlgorithmParameters params)
Wraps the given secret content encryption key for a
KEKRecipientInfoor KeyAgreeRecipientInfo. |
| 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.
|
CompressedData(byte[] content,
AlgorithmID algorithmid,
int mode)
Creates a new CompressedData object where the content to be compressed is
read from the supplied byte array using the Algorithm specified by the
AlgorithmID.
|
CompressedData(ObjectID objectid,
byte[] data,
AlgorithmID algorithmid,
int mode)
Creates a new CompressedData object where the content to be compressed is
read from the supplied byte array using the Algorithm specified by the
AlgorithmID.
|
CompressedDataStream(java.io.InputStream inputstream,
AlgorithmID algorithmid,
int mode)
Creates a new CMS CompressedDataStream object where the content to be
compressed is read from the supplied InputStream.
|
CompressedDataStream(ObjectID objectid,
java.io.InputStream inputstream,
AlgorithmID algorithmid,
int mode)
Creates a new CompressedDataStream object for the given content data.
|
DigestedData(byte[] content,
AlgorithmID digestAlgorithm)
Creates a new DigestedData from a byte array holding the content that
has been transmitted by other means, and the hash algorithm to be used
for digesting.
|
DigestedData(byte[] content,
AlgorithmID digestAlgorithm,
int mode)
Creates a new
DigestedData object from given content and
and digest algorithm. |
DigestedData(ObjectID contentType,
AlgorithmID digestAlgorithm,
byte[] digest)
Creates a new
DigestedData object without content. |
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)
Creates a new DigestedDataStream from an InputStream holding the content that
has been transmitted by other means, and the hash algorithm to be used for digesting.
|
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,
AlgorithmID digestAlgorithm,
byte[] digest)
Creates a new
DigestedDataStream object without content. |
DigestedDataStream(ObjectID contentType,
java.io.InputStream data_is,
AlgorithmID digestAlgorithm,
int mode)
Creates a new
DigestedDataStream object from given content and
and digest algorithm. |
DigestInfo(AlgorithmID digestAlgorithm,
byte[] digest)
Creates a new
DigestInfo from a digest algorithm and a digest. |
EncryptedContentInfo(ObjectID contentType,
AlgorithmID contentEncAlg)
Creates an EncryptedContentInfo with given content type and
content-encryption algorithm ID.
|
EncryptedContentInfoStream(ObjectID contentType,
AlgorithmID contentEncAlg)
Creates an EncryptedContentInfoStream with given content type and
content-encryption algorithm ID.
|
EnvelopedData(byte[] content,
AlgorithmID contentEA)
Creates a new CMS EnvelopedData object where the raw data is supplied
as byte array.
|
EnvelopedData(byte[] content,
AlgorithmID contentEA,
int keyLength)
Creates a new CMS EnvelopedData object where the raw data is supplied
as byte array.
|
EnvelopedData(ObjectID contentType,
byte[] content,
AlgorithmID contentEA)
Creates a new CMS EnvelopedData object where the raw data is supplied
as byte array.
|
EnvelopedData(ObjectID contentType,
byte[] content,
AlgorithmID contentEA,
int keyLength)
Creates a new CMS EnvelopedData object where the raw data is supplied
as byte array.
|
EnvelopedDataStream(java.io.InputStream is,
AlgorithmID contentEA)
Creates a new EnvelopedDataStream object where the content to be enveloped
is read from the supplied InputStream.
|
EnvelopedDataStream(java.io.InputStream is,
AlgorithmID contentEA,
int keyLength)
Creates a new EnvelopedDataStream object where the content to be enveloped
is read from the supplied InputStream.
|
EnvelopedDataStream(ObjectID contentType,
java.io.InputStream is,
AlgorithmID contentEA)
Creates a new EnvelopedDataStream object where the content to be enveloped
is read from the supplied InputStream.
|
EnvelopedDataStream(ObjectID contentType,
java.io.InputStream is,
AlgorithmID contentEA,
int keyLength)
Creates a new EnvelopedDataStream object where the content to be enveloped
is read from the supplied InputStream.
|
KEKRecipientInfo(KEKIdentifier kekid,
AlgorithmID keyEA,
byte[] encryptedKey)
Creates a
KEKRecipientInfo object for the given
kek identifier, key-encryption algorithm, and already
encrypted content encryption key. |
KEKRecipientInfo(KEKIdentifier kekid,
AlgorithmID keyEA,
javax.crypto.SecretKey kek)
Creates a
KEKRecipientInfo object for the given
kek identifier, key-encryption algorithm and secret key encryption
key. |
KEKRecipientInfo(KEKIdentifier kekid,
AlgorithmID keyEA,
javax.crypto.SecretKey kek,
java.security.AlgorithmParameters params)
Creates a
KEKRecipientInfo object for the given
kek identifier, key-encryption algorithm and secret key encryption key. |
KeyAgreeRecipientInfo(AlgorithmID keyEA,
AlgorithmID keyWrapAlg,
int kekLength)
Creates a KeyAgreeRecipientInfo for the given key encryption (key agreement)
algorithm, key wrap algorithm and user keying material.
|
KeyAgreeRecipientInfo(KeyIdentifier originator,
AlgorithmID keyEA,
byte[] ukm)
Creates a KeyAgreeRecipientInfo for the given Originator, key encryption
(key agreement) algorithm and user keying material.
|
KeyAgreeRecipientInfo(X509Certificate originatorCertificate,
java.security.PrivateKey originatorPrivateKey,
int originatorIdentifierType,
AlgorithmID keyEA,
AlgorithmID keyWrapAlg,
int kekLength,
byte[] ukm)
Creates a KeyAgreeRecipientInfo object from the given originator certificate.
|
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. |
KeyTransRecipientInfo(X509Certificate recipientCertificate,
AlgorithmID keyEA)
Creates a version 0 KeyTransRecipientInfo object from the given
recipient certificate.
|
KeyTransRecipientInfo(X509Certificate recipientCertificate,
int ridType,
AlgorithmID keyEA)
Creates a KeyTransRecipientInfo object from the given recipient certificate.
|
PasswordRecipientInfo(AlgorithmID keyDerivationAlgorithm,
AlgorithmID keyEncryptionAlgorithm,
byte[] encryptedKey)
Creates a
PasswordRecipientInfo object for the given
key-encryption algorithm, and already encrypted content
encryption key. |
PasswordRecipientInfo(AlgorithmID keyEncryptionAlgorithm,
byte[] encryptedKey)
Creates a
PasswordRecipientInfo object for the given
key-encryption algorithm, and already encrypted content
encryption key. |
PasswordRecipientInfo(AlgorithmID keyEncryptionAlgorithm,
javax.crypto.SecretKey kek)
Creates a
PasswordRecipientInfo object for the given kek
identifier, key-encryption algorithm and secret key encryption key. |
PasswordRecipientInfo(AlgorithmID keyEncryptionAlgorithm,
javax.crypto.SecretKey kek,
java.security.AlgorithmParameters keyEncryptionAlgorithmParams)
Creates a
PasswordRecipientInfo object for the given KEK
identifier, key-encryption algorithm and secret key encryption key. |
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.
|
SignedData(byte[] content,
AlgorithmID[] hashAlgorithms)
Creates a new SignedData from a byte array holding the content that
has been transmitted by other means, and an array specifying the hash
algorithms to be used for digesting.
|
SignedDataStream(java.io.InputStream data_is,
AlgorithmID[] hashAlgorithms)
Creates a new SignedDataStream from an InputStream holding the content that
has been transmitted by other means, and an array specifying the hash
algorithms to be used for digesting.
|
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,
AlgorithmID signatureAlgorithm,
java.security.PrivateKey privateKey,
java.security.Provider overrideProvider)
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.
|
| Modifier and Type | Method and Description |
|---|---|
AlgorithmID |
CertificateRequest.getSignatureAlgorithmID()
Returns the signature algorithm of this certificate request.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CertificateRequest.sign(AlgorithmID signatureAlgorithm,
java.security.PrivateKey issuerPrivateKey)
Signs the certificate request with the private key of the subject.
|
void |
CertificateRequest.sign(java.security.Provider providerObj,
AlgorithmID signatureAlgorithm,
java.security.PrivateKey issuerPrivateKey)
Signs the certificate request with the private key of the subject.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected void |
PKCS8ShroudedKeyBag.encrypt(char[] password,
AlgorithmID algorithm,
int iterationCount)
Encrypts this KeyBag using the given password.
|
| Modifier and Type | Method and Description |
|---|---|
AlgorithmID |
EncryptedContentInfoStream.getContentEncryptionAlgorithm()
Returns the content-encryption algorithm (including any associated
parameters) of this EncryptedContentInfoStream.
|
AlgorithmID |
DigestInfo.getDigestAlgorithm()
Returns the AlgorithmID of the message-digest algorithm (including
any associated parameters) that has been used for calculating the
digest on the content and any authenticated information.
|
AlgorithmID |
DigestedDataStream.getDigestAlgorithm()
Returns the message-digest algorithm used for computing the digest.
|
AlgorithmID |
SignerInfo.getDigestAlgorithm()
Returns the AlgorithmID of the message-digest algorithm that has
been used for digesting the content and any authenticated attributes.
|
AlgorithmID[] |
SignedDataStream.getDigestAlgorithms()
Returns a collection of message-digest algorithm identifiers.
|
AlgorithmID |
SignerInfo.getDigestEncryptionAlgorithm()
Returns the digest-encryption algorithm used for encrypting the message digest
and associated information with the signer's private key.
|
AlgorithmID |
RecipientInfo.getKeyEncryptionAlgorithm()
Returns the key-encryption algorithm used for encrypting
the content-encryption key with the recipient's public key.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
SignedDataStream.getMessageDigest(AlgorithmID digestAlgorithm)
Returns the message digest calculated for a specific algorithm.
|
void |
SignedDataStream.setMessageDigest(AlgorithmID digestAlgorithm,
byte[] digest)
This method can be used to set an externally calculated MessageDigest.
|
javax.crypto.SecretKey |
EncryptedContentInfoStream.setupCipher(AlgorithmID contentEA)
Setups the cipher and generates a secret key for encrypting the content.
|
void |
EncryptedDataStream.setupCipher(AlgorithmID contentEA,
char[] password)
Setups the cipher for PBE-encrypting the content.
|
void |
EncryptedDataStream.setupCipher(AlgorithmID contentEA,
char[] password,
int iterationCount)
Setups the cipher for PBE-encrypting the content.
|
javax.crypto.SecretKey |
EncryptedContentInfoStream.setupCipher(AlgorithmID contentEA,
int keyLength)
Setups the cipher and generates a secret key for encrypting the content.
|
void |
EncryptedContentInfoStream.setupCipher(AlgorithmID contentEA,
java.security.Key key,
java.security.spec.AlgorithmParameterSpec params)
Setups the cipher for encrypting the content.
|
| Constructor and Description |
|---|
DigestedDataStream(java.io.InputStream data_is,
AlgorithmID digestAlgorithm)
Creates a new DigestedDataStream from an InputStream holding the content that
has been transmitted by other means, and the hash algorithm to be used for digesting.
|
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,
AlgorithmID digestAlgorithm,
byte[] digest)
Creates a new
DigestedDataStream object without content. |
DigestInfo(AlgorithmID digestAlgorithm,
byte[] digest)
Creates a new
DigestInfo from a digest algorithm and a digest. |
EncryptedContentInfoStream(ObjectID contentType,
AlgorithmID contentEncAlg)
Creates an EncryptedContentInfoStream with given content type and
content-encryption algorithm ID.
|
EnvelopedDataStream(java.io.InputStream is,
AlgorithmID contentEA)
Creates a new PKCS#7 EnvelopedDataStream object where the content to be enveloped
is read from the supplied InputStream.
|
EnvelopedDataStream(java.io.InputStream is,
AlgorithmID contentEA,
int keyLength)
Creates a new PKCS#7 EnvelopedDataStream object where the content to be enveloped
is read from the supplied InputStream.
|
RecipientInfo(IssuerAndSerialNumber issuer,
AlgorithmID keyEA,
byte[] encryptedKey)
Creates a
RecipientInfo object with given
IssuerAndSerialNumber, key-encryption algorithm, and already
encrypted content encryption key. |
RecipientInfo(java.security.cert.X509Certificate recipientCertificate,
AlgorithmID keyEA)
Creates a RecipientInfo object from a given certificate.
|
SignedAndEnvelopedDataStream(java.io.InputStream is,
AlgorithmID contentEA)
Creates a new PKCS#7 SignedAndEnvelopedData object where the content is read
from the supplied InputStream.
|
SignedAndEnvelopedDataStream(java.io.InputStream is,
AlgorithmID contentEA,
int keyLen)
Creates a new PKCS#7 SignedAndEnvelopedData object where the content is read
from the supplied InputStream.
|
SignedDataStream(java.io.InputStream data_is,
AlgorithmID[] hashAlgorithms)
Creates a new SignedDataStream from an InputStream holding the content that
has been transmitted by other means, and an array specifying the hash
algorithms to be used for digesting.
|
SignerInfo(IssuerAndSerialNumber issuerAndSerialNumber,
AlgorithmID digestAlgorithm,
AlgorithmID digestEncryptionAlgorithm,
java.security.PrivateKey privateKey)
Creates a new SignerInfo from given issuerAndSerialNumber,
and digestAlgorithm ID, digest-encryption algorithmID, and the
signer´s private key.
|
SignerInfo(IssuerAndSerialNumber issuerAndSerialNumber,
AlgorithmID digestAlgorithm,
java.security.PrivateKey privateKey)
Creates a new SignerInfo from given IssuerAndSerialNumber,
digestAlgorithm ID, and the signer´s private key.
|
| Modifier and Type | Field and Description |
|---|---|
protected AlgorithmID |
PrivateKeyInfo.private_key_algorithm
Identifies the appertaining private-key algorithm.
|
| Modifier and Type | Method and Description |
|---|---|
AlgorithmID |
WrappedPrivateKey.getAlgorithmID() |
| Modifier and Type | Method and Description |
|---|---|
void |
EncryptedPrivateKeyInfo.encrypt(char[] password,
AlgorithmID encryptionAlgorithm,
java.security.SecureRandom random)
Encrypts the PrivateKeyInfo data structure (PKCS#5 and PKCS#8) password based using
the specified PBE algorithm.
|
void |
EncryptedPrivateKeyInfo.encrypt(char[] password,
AlgorithmID encryptionAlgorithm,
java.security.SecureRandom random,
int iterationCount)
Encrypts the PrivateKeyInfo data structure (PKCS#5 and PKCS#8) password based using
the specified PBE algorithm.
|
void |
EncryptedPrivateKeyInfo.encrypt(java.lang.String password,
AlgorithmID encryptionAlgorithm,
java.security.SecureRandom random)
Encrypts the PrivateKeyInfo data structure (PKCS#5 and PKCS#8) password based using
the specified PBE algorithm.
|
| Modifier and Type | Field and Description |
|---|---|
protected AlgorithmID |
PBES2.m_enc |
protected AlgorithmID |
PBES2.m_kdf |
protected AlgorithmID |
PBES2.m_prf |
| Modifier and Type | Method and Description |
|---|---|
AlgorithmID |
PWRIKekWrapParameterSpec.getEncryptionAlgorithm()
Return the encryption algorithm.
|
AlgorithmID |
PWRIKekWrapParameters.getEncryptionAlgorithm() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
PBES2.getEncName(AlgorithmID id) |
static java.lang.String |
PBES2.getPRFName(AlgorithmID id)
Return the pseudo-random function algorithm name for the PBKDF2.
|
| Constructor and Description |
|---|
PWRIKekWrapParameterSpec(AlgorithmID encryptionAlgorithm)
Creates a PWRIKekParametersSpec from the given encryptionAlgorithm value.
|
| Modifier and Type | Method and Description |
|---|---|
protected AlgorithmID |
PBES2Parameters.getEncryptionScheme() |
protected AlgorithmID |
PBES2Parameters.getKD() |
protected AlgorithmID |
PBES2Parameters.getPRF() |
| Constructor and Description |
|---|
RSASignature(AlgorithmID algorithm,
java.security.MessageDigest hash)
Deprecated.
Creates a RSA Signature object with a specified hash algorithm.
|
| Modifier and Type | Method and Description |
|---|---|
AlgorithmID |
EncryptedContent.getEncryptionAlgorithm()
Returns the content-encryption algorithm (including any associated parameters) of this
EncryptedContent.
|
AlgorithmID |
SMimeEncrypted.getEncryptionAlgorithm()
Returns the content-encryption algorithm (including any associated
parameters) of this SMimeEncrypted object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SMimeMailer.addBcc(java.lang.String realName,
java.lang.String emailAddress,
X509Certificate recipientCert,
AlgorithmID keyEncAlg)
Adds one receiver (Bcc: field) of the S/MIME email message.
|
void |
SMimeMailer.addCc(java.lang.String realName,
java.lang.String emailAddress,
X509Certificate recipientCert,
AlgorithmID keyEncAlg)
Adds one receiver (Cc: field) of the S/MIME email message.
|
void |
EncryptedContent.addRecipient(X509Certificate certificate,
AlgorithmID keyEncAlg)
Adds one recipient.
|
void |
SMimeEncrypted.addRecipient(java.security.cert.X509Certificate certificate,
AlgorithmID keyEA)
Adds one recipient to this S/MIME enveloped object.
|
void |
SMimeMailer.addTo(java.lang.String realName,
java.lang.String emailAddress,
X509Certificate recipientCert,
AlgorithmID keyEncAlg)
Adds one receiver (To: field) of the S/MIME email message.
|
void |
SMimeMailer.setEncryption(AlgorithmID contentEncAlg,
int keyLength)
Sets the symmetric algorithm for encrypting the message.
|
void |
EncryptedContent.setEncryptionAlgorithm(AlgorithmID contentEncAlg,
int keyLength)
Sets the symmetric algorithm for encrypting the message.
|
void |
SMimeMailer.setFrom(java.lang.String realName,
java.lang.String emailAddress,
X509Certificate senderCert,
AlgorithmID keyEncAlg)
Sets the from field of the S/MIME email message.
|
| Constructor and Description |
|---|
JMailSMimeSigned(java.io.InputStream is,
AlgorithmID[] hashAlgorithm)
Creates a new JMailSMimeSigned from an InputStream holding the signed data and
an algorithm specifying the hash algorithm to use for digesting.
|
SMimeEncrypted(byte[] content,
AlgorithmID contentEA,
int keyLength)
Creates a new SMimeEncrypted object for the specified content
to be enveloped.
|
SMimeEncrypted(java.io.InputStream is,
AlgorithmID contentEA,
int keyLength)
Creates a new SMimeEncrypted object where the data to be enveloped is read
from the given InputStream.
|
SMimeSigned(java.io.InputStream is,
AlgorithmID[] hashAlgorithm)
Creates a new SMimeSigned from an InputStream holding the signed data and
an algorithm specifying the hash algorithm to use for digesting.
|
| Modifier and Type | Method and Description |
|---|---|
AlgorithmID |
PBES2ParameterSpec.getEnc()
Return the encryption scheme for the PBES2 parameter specifications.
|
AlgorithmID |
PBES2ParameterSpec.getKDF()
Return the password-based key derivation function.
|
AlgorithmID |
PBES2ParameterSpec.getPRF()
Return the pseudo-random-function for the password-based key derivation.
|
| Constructor and Description |
|---|
PBES2ParameterSpec(AlgorithmID kdf,
AlgorithmID prf,
AlgorithmID enc)
The parameter specifications for PBES2 contains the password-based key
derivation function indicated with the PBKDF2 PRF and the specified
encryption scheme will be used.
|
PBES2ParameterSpec(byte[] salt,
int iterationCount,
AlgorithmID kdf,
AlgorithmID prf,
AlgorithmID enc,
byte[] iv)
Specify the parameter specifications for the PBES2 scheme.
|
| Modifier and Type | Method and Description |
|---|---|
AlgorithmID |
CompressedContent.getCompressionAlgorithm()
Return the Compression Algorithm
|
AlgorithmID |
EncryptedContent.getEncryptionAlgorithm()
Returns the content-encryption algorithm (including any associated parameters) of this
EncryptedContent.
|
AlgorithmID |
SMimeEncrypted.getEncryptionAlgorithm()
Returns the content-encryption algorithm (including any associated
parameters) of this SMimeEncrypted object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SMimeMailer.addBcc(java.lang.String realName,
java.lang.String emailAddress,
X509Certificate recipientCert,
AlgorithmID keyEncAlg)
Adds one receiver (Bcc: field) of the S/MIME email message.
|
void |
SMimeMailer.addCc(java.lang.String realName,
java.lang.String emailAddress,
X509Certificate recipientCert,
AlgorithmID keyEncAlg)
Adds one receiver (Cc: field) of the S/MIME email message.
|
void |
EncryptedContent.addRecipient(X509Certificate recipientCertificate,
AlgorithmID keyEncAlg)
Adds one recipient.
|
void |
SMimeEncrypted.addRecipient(X509Certificate recipientCertificate,
AlgorithmID keyEA)
Adds one recipient to this S/MIME EnvelopedData object.
|
void |
SMimeSigned.addSigner(java.security.PrivateKey privateKey,
IssuerAndSerialNumber signer,
AlgorithmID digestAlgorithm,
AlgorithmID signatureAlgorithm)
Signs this message using the supplied signer´s private key with the
given signature algorithm.
|
void |
SMimeSigned.addSigner(java.security.PrivateKey privateKey,
IssuerAndSerialNumber signer,
AlgorithmID digestAlgorithm,
AlgorithmID signatureAlgorithm,
Attribute[] signedAttributes)
Signs this message using the supplied signer´s private key with the
given signature algorithm.
|
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 |
SignedContent.addSigner(java.security.PrivateKey privateKey,
X509Certificate signerCertificate,
AlgorithmID digestAlgorithm,
AlgorithmID signatureAlgorithm)
Uses the given private key to sign the content with the given
signature algorithm.
|
void |
SignedContent.addSigner(java.security.PrivateKey privateKey,
X509Certificate signerCertificate,
AlgorithmID digestAlgorithm,
AlgorithmID signatureAlgorithm,
Attribute[] signedAttributes)
Signs this content using the supplied signer´s private key with the
given signature algorithm.
|
void |
SignedContent.addSigner(java.security.PrivateKey privateKey,
X509Certificate signerCertificate,
AlgorithmID digestAlgorithm,
AlgorithmID signatureAlgorithm,
X509Certificate encryptionCertificate,
boolean includeEncryptionCertIDForMSOE)
Uses the given private key to sign the content with the given
signature algorithm.
|
void |
SMimeMailer.addTo(java.lang.String realName,
java.lang.String emailAddress,
X509Certificate recipientCert,
AlgorithmID keyEncAlg)
Adds one receiver (To: field) of the S/MIME email message.
|
void |
CompressedContent.setCompressionAlgorithm(AlgorithmID algorithmid)
Sets the Compression Algorithm which is used to Compress the Data.
|
void |
SMimeCompressed.setCompressionAlgorithm(AlgorithmID algorithmid)
This method is used to set the Compression algorithm
|
void |
SMimeMailer.setEncryption(AlgorithmID contentEncAlg,
int keyLength)
Sets the symmetric algorithm for encrypting the message.
|
void |
EncryptedContent.setEncryptionAlgorithm(AlgorithmID contentEncAlg,
int keyLength)
Sets the symmetric algorithm for encrypting the message.
|
void |
SMimeMailer.setFrom(java.lang.String realName,
java.lang.String emailAddress,
X509Certificate senderCert,
AlgorithmID keyEncAlg)
Sets the from field of the S/MIME email message.
|
| Constructor and Description |
|---|
JMailSMimeSigned(java.io.InputStream is,
AlgorithmID[] hashAlgorithm)
Creates a new JMailSMimeSigned from an InputStream holding the signed data and
an algorithm specifying the hash algorithm to use for digesting.
|
SMimeEncrypted(java.io.InputStream is,
AlgorithmID contentEA,
int keyLength)
Creates a new SMimeEncrypted object where the data to be enveloped is read
from the given InputStream.
|
SMimeSigned(java.io.InputStream is,
AlgorithmID[] hashAlgorithm)
Creates a new SMimeSigned from an InputStream holding the signed data and
an algorithm specifying the hash algorithm to use for digesting.
|
| Modifier and Type | Method and Description |
|---|---|
AlgorithmID |
ESSCertIDv2.getHashAlgorithm()
Returns the identifier of the algorithm used in computing
certHash.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ESSCertIDv2.setHashAlgorithm(AlgorithmID hashAlgorithm)
Sets the hashAlgorithm value, identifying the algorithm used in computing
the certHash
|
| Constructor and Description |
|---|
ESSCertIDv2(AlgorithmID hashAlgorithm,
java.security.cert.Certificate cert,
boolean includeIssuerSerial) |
| Modifier and Type | Field and Description |
|---|---|
protected AlgorithmID |
PublicKeyInfo.public_key_algorithm
The algorithm identifier of the public key algorithm belonging to the particular
public key implemeting this PublicKeyInfo.
|
| Modifier and Type | Method and Description |
|---|---|
AlgorithmID |
WrappedPublicKey.getAlgorithmID() |
AlgorithmID |
X509CRL.getSignatureAlgorithm()
Returns the signature algorithm of this CRL.
|
AlgorithmID |
X509Certificate.getSignatureAlgorithm()
Returns the signature algorithm of this certificate.
|
| Modifier and Type | Method and Description |
|---|---|
void |
X509CRL.setSignatureAlgorithm(AlgorithmID signatureAlg)
Sets the signature algorithm for signing this CRL.
|
void |
X509Certificate.setSignatureAlgorithm(AlgorithmID signatureAlg)
Sets the signature algorithm to be used for signing.
|
void |
X509Certificate.sign(AlgorithmID signatureAlg,
java.security.PrivateKey issuerPK)
Signs the certificate with the private key of the issuer.
|
void |
X509Certificate.sign(java.security.Provider providerObj,
AlgorithmID signatureAlg,
java.security.PrivateKey issuerPK)
Signs the certificate with the private key of the issuer.
|
void |
X509Certificate.signExternal(AlgorithmID signatureAlg,
byte[] signatureValue)
Creates a certificate signature given as external signature over the certificate data.
|
| Modifier and Type | Method and Description |
|---|---|
AlgorithmID |
ObjectDigestInfo.getDigestAlgorithm()
Returns the digest algorithm.
|
AlgorithmID |
AttributeCertificate.getSignatureAlgorithm()
Returns the signature algorithm of this certificate.
|
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
ObjectDigestInfo.calculateDigest(byte[] value,
AlgorithmID digestAlgorithm)
Calcualtes a digest of the given value using the given digest algorithm.
|
void |
AttributeCertificate.setSignatureAlgorithm(AlgorithmID signatureAlg)
Sets the signature algorithm to be used for signing.
|
void |
AttributeCertificate.sign(AlgorithmID signatureAlg,
java.security.PrivateKey issuerPK)
Signs the attribute certificate with the private key of the issuer.
|
| Constructor and Description |
|---|
ObjectDigestInfo(int objectType,
AlgorithmID digestAlgorithm,
byte[] digestValue,
ObjectID otherObjectTypeID)
Creates an ObjectDigestInfo for the given digest value.
|
ObjectDigestInfo(java.security.PublicKey publicKey,
AlgorithmID digestAlgorithm)
Creates an
publicKey ObjectDigestInfo for the given public key. |
ObjectDigestInfo(java.security.cert.X509Certificate cert,
AlgorithmID digestAlgorithm)
Creates an
publicKeyCert ObjectDigestInfo for the given certificate. |
| Modifier and Type | Method and Description |
|---|---|
AlgorithmID |
BiometricData.getHashAlgorithm()
Gets the hash algorithm.
|
| Modifier and Type | Method and Description |
|---|---|
void |
BiometricData.setBiometricDataHash(AlgorithmID hashAlgorithm,
byte[] biometricDataHash)
Sets hash algorithm and hash value of this BiometricData object.
|
void |
BiometricData.setBiometricDataHash(AlgorithmID hashAlgorithm,
java.io.InputStream is)
Calculates and sets the biometric data hash over the data supplied from an
input stream.
|
void |
BiometricData.setBiometricDataHash(AlgorithmID hashAlgorithm,
java.lang.String sourceDataUri)
Sets hash algorithm and biometric data hash value calculated from the given source data uri.
|
| Modifier and Type | Method and Description |
|---|---|
AlgorithmID |
BasicOCSPResponse.getSignatureAlgorithm()
Returns the signature algorithm of this BasicOCSPResponse.
|
| Modifier and Type | Method and Description |
|---|---|
void |
BasicOCSPResponse.setSignature(AlgorithmID signatureAlg,
byte[] signature)
Sets the signature value of this BasicOCSPResponse.
|
void |
BasicOCSPResponse.sign(AlgorithmID signatureAlg,
java.security.PrivateKey issuerPK)
Signs the BasicOCSPResponse with the private key of the issuer.
|
void |
BasicOCSPResponse.sign(AlgorithmID signatureAlg,
java.security.PrivateKey issuerPK,
java.lang.String provider)
Signs the BasicOCSPResponse with the private key of the issuer.
|