public class AlgorithmIdentifierFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static AlgorithmIdentifier |
generateEncryptionAlgID(ASN1ObjectIdentifier encryptionOID,
int keySize,
SecureRandom random)
Create an AlgorithmIdentifier for the passed in encryption algorithm.
|
public static AlgorithmIdentifier generateEncryptionAlgID(ASN1ObjectIdentifier encryptionOID, int keySize, SecureRandom random) throws IllegalArgumentException
encryptionOID - OID for the encryption algorithmkeySize - key size in bits (-1 if unknown)random - SecureRandom to use for parameter generation.IllegalArgumentException - if encryptionOID cannot be matchedCopyright © 2015–2020 The veraPDF Consortium. All rights reserved.