public class PWRIKekWrapParameterSpec
extends java.lang.Object
implements java.security.spec.AlgorithmParameterSpec
This class represents parameters for the CMS PWRI-KEK Key Wrap algorithm as specified by RFC 3211:
encryptionAlgorithm ::= ObjectID -- Content Encryption Key algorithm
| Constructor and Description |
|---|
PWRIKekWrapParameterSpec(AlgorithmID encryptionAlgorithm)
Creates a PWRIKekParametersSpec from the given encryptionAlgorithm value.
|
PWRIKekWrapParameterSpec(ASN1Object obj)
Creates a new
PWRIKekWrapParameter from an
ASN1Object. |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(ASN1Object obj)
Decodes a
PWRIKekWrapParameterSpec from an
ASN1Object. |
AlgorithmID |
getEncryptionAlgorithm()
Return the encryption algorithm.
|
public PWRIKekWrapParameterSpec(AlgorithmID encryptionAlgorithm)
encryptionAlgorithm - the encryption algorithmpublic PWRIKekWrapParameterSpec(ASN1Object obj) throws CodingException
PWRIKekWrapParameter from an
ASN1Object. The ASN1Object must be a
PWRIKekWrapParameter structure.obj - the ASN.1 representation of a PWRIKekWrapParameter structureCodingException - thrown if an errors occurs while decoding the
ANS1Objectpublic AlgorithmID getEncryptionAlgorithm()
public void decode(ASN1Object obj) throws CodingException
PWRIKekWrapParameterSpec from an
ASN1Object. The ASN1Object must be a
PWRIKekWrapParameter structure.obj - an ASN.1 representation of a PWRIKekWrapParameter structureCodingException - thrown if an errors occurs while decoding the
ANS1Object