Class EncryptionUtils
- java.lang.Object
-
- com.itextpdf.kernel.crypto.securityhandler.EncryptionUtils
-
final class EncryptionUtils extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
EncryptionUtils.DERForRecipientParams
-
Field Summary
Fields Modifier and Type Field Description private static IBouncyCastleFactory
BOUNCY_CASTLE_FACTORY
private static java.lang.String
ENVELOPE_ENCRYPTION_ALGORITHM_JCA_NAME
private static java.lang.String
ENVELOPE_ENCRYPTION_ALGORITHM_OID
private static int
ENVELOPE_ENCRYPTION_KEY_LENGTH
private static java.util.Set<java.lang.String>
UNSUPPORTED_ALGORITHMS
-
Constructor Summary
Constructors Constructor Description EncryptionUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static EncryptionUtils.DERForRecipientParams
calculateDERForRecipientParams(byte[] in)
(package private) static byte[]
cipherBytes(java.security.cert.X509Certificate x509certificate, byte[] abyte0, IAlgorithmIdentifier algorithmIdentifier)
(package private) static byte[]
fetchEnvelopedData(java.security.Key certificateKey, java.security.cert.Certificate certificate, java.lang.String certificateKeyProvider, IExternalDecryptionProcess externalDecryptionProcess, PdfArray recipients)
(package private) static byte[]
generateSeed(int seedLength)
-
-
-
Field Detail
-
ENVELOPE_ENCRYPTION_ALGORITHM_OID
private static final java.lang.String ENVELOPE_ENCRYPTION_ALGORITHM_OID
- See Also:
- Constant Field Values
-
ENVELOPE_ENCRYPTION_ALGORITHM_JCA_NAME
private static final java.lang.String ENVELOPE_ENCRYPTION_ALGORITHM_JCA_NAME
- See Also:
- Constant Field Values
-
ENVELOPE_ENCRYPTION_KEY_LENGTH
private static final int ENVELOPE_ENCRYPTION_KEY_LENGTH
- See Also:
- Constant Field Values
-
BOUNCY_CASTLE_FACTORY
private static final IBouncyCastleFactory BOUNCY_CASTLE_FACTORY
-
UNSUPPORTED_ALGORITHMS
private static final java.util.Set<java.lang.String> UNSUPPORTED_ALGORITHMS
-
-
Method Detail
-
generateSeed
static byte[] generateSeed(int seedLength)
-
fetchEnvelopedData
static byte[] fetchEnvelopedData(java.security.Key certificateKey, java.security.cert.Certificate certificate, java.lang.String certificateKeyProvider, IExternalDecryptionProcess externalDecryptionProcess, PdfArray recipients)
-
cipherBytes
static byte[] cipherBytes(java.security.cert.X509Certificate x509certificate, byte[] abyte0, IAlgorithmIdentifier algorithmIdentifier) throws java.security.GeneralSecurityException
- Throws:
java.security.GeneralSecurityException
-
calculateDERForRecipientParams
static EncryptionUtils.DERForRecipientParams calculateDERForRecipientParams(byte[] in) throws java.io.IOException, java.security.GeneralSecurityException
- Throws:
java.io.IOException
java.security.GeneralSecurityException
-
-