public class EnvelopedDataHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static Map |
BASE_CIPHER_NAMES |
protected static Map |
CIPHER_ALG_NAMES |
protected static SecretKeySizeProvider |
KEY_SIZE_PROVIDER |
protected static Map |
MAC_ALG_NAMES |
| Modifier and Type | Method and Description |
|---|---|
JceAsymmetricKeyUnwrapper |
createAsymmetricUnwrapper(AlgorithmIdentifier keyEncryptionAlgorithm,
PrivateKey keyEncryptionKey) |
JceKTSKeyUnwrapper |
createAsymmetricUnwrapper(AlgorithmIdentifier keyEncryptionAlgorithm,
PrivateKey keyEncryptionKey,
byte[] partyUInfo,
byte[] partyVInfo) |
Cipher |
createContentCipher(Key sKey,
AlgorithmIdentifier encryptionAlgID) |
KeyFactory |
createKeyFactory(ASN1ObjectIdentifier algorithm) |
KeyGenerator |
createKeyGenerator(ASN1ObjectIdentifier algorithm) |
SymmetricKeyUnwrapper |
createSymmetricUnwrapper(AlgorithmIdentifier keyEncryptionAlgorithm,
SecretKey keyEncryptionKey) |
AlgorithmIdentifier |
getAlgorithmIdentifier(ASN1ObjectIdentifier macOID,
AlgorithmParameterSpec paramSpec) |
Key |
getJceKey(ASN1ObjectIdentifier algorithm,
GenericKey key) |
void |
keySizeCheck(AlgorithmIdentifier keyAlgorithm,
Key key) |
protected static final SecretKeySizeProvider KEY_SIZE_PROVIDER
protected static final Map BASE_CIPHER_NAMES
protected static final Map CIPHER_ALG_NAMES
protected static final Map MAC_ALG_NAMES
public Key getJceKey(ASN1ObjectIdentifier algorithm, GenericKey key)
public void keySizeCheck(AlgorithmIdentifier keyAlgorithm, Key key) throws CMSException
CMSExceptionpublic Cipher createContentCipher(Key sKey, AlgorithmIdentifier encryptionAlgID) throws CMSException
CMSExceptionpublic KeyGenerator createKeyGenerator(ASN1ObjectIdentifier algorithm) throws CMSException
CMSExceptionpublic KeyFactory createKeyFactory(ASN1ObjectIdentifier algorithm) throws CMSException
CMSExceptionpublic JceAsymmetricKeyUnwrapper createAsymmetricUnwrapper(AlgorithmIdentifier keyEncryptionAlgorithm, PrivateKey keyEncryptionKey)
public JceKTSKeyUnwrapper createAsymmetricUnwrapper(AlgorithmIdentifier keyEncryptionAlgorithm, PrivateKey keyEncryptionKey, byte[] partyUInfo, byte[] partyVInfo)
public SymmetricKeyUnwrapper createSymmetricUnwrapper(AlgorithmIdentifier keyEncryptionAlgorithm, SecretKey keyEncryptionKey)
public AlgorithmIdentifier getAlgorithmIdentifier(ASN1ObjectIdentifier macOID, AlgorithmParameterSpec paramSpec)
Copyright © 2015–2020 The veraPDF Consortium. All rights reserved.