public class AlgorithmIdentifierFactory
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static AlgorithmIdentifier |
generateEncryptionAlgID(ASN1ObjectIdentifier encryptionOID,
int keySize,
java.security.SecureRandom random)
Create an AlgorithmIdentifier for the passed in encryption algorithm.
|
public static AlgorithmIdentifier generateEncryptionAlgID(ASN1ObjectIdentifier encryptionOID, int keySize, java.security.SecureRandom random) throws java.lang.IllegalArgumentException
encryptionOID
- OID for the encryption algorithmkeySize
- key size in bits (-1 if unknown)random
- SecureRandom to use for parameter generation.java.lang.IllegalArgumentException
- if encryptionOID cannot be matched