XCMS Toolkit

com.cms.crypto
Interface ParameterGenerator

All Known Implementing Classes:
DERParameterGenerator, XERParameterGenerator

public interface ParameterGenerator

A public interface that defines methods for creating encoded values ("open types") of algorithm parameter ASN.1 types.

Version:
1.00 - 2006/01/25
Author:
support@phillipgriffin.com

Method Summary
 java.security.spec.AlgorithmParameterSpec get3DesCbcParameters(ASN1OpenType parameters)
          Prepares an encoded value of ASN.1 type IV for use in the parameters component of a value of ASN.1 type ContentEncryptionAlgorithmIdentifier.
 java.security.spec.AlgorithmParameterSpec getAes128CbcParameters(ASN1OpenType parameters)
          Prepares an encoded value of ASN.1 type AES-IV for use in the parameters component of a value of ASN.1 type ContentEncryptionAlgorithmIdentifier.
 

Method Detail

getAes128CbcParameters

java.security.spec.AlgorithmParameterSpec getAes128CbcParameters(ASN1OpenType parameters)
                                                                 throws CryptoException
Prepares an encoded value of ASN.1 type AES-IV for use in the parameters component of a value of ASN.1 type ContentEncryptionAlgorithmIdentifier.

Parameters:
parameters - a sixteen octet value of ASN.1 type AES-IV, a value of ASN.1 type OCTET STRING, in its encoded form
Throws:
CryptoException

get3DesCbcParameters

java.security.spec.AlgorithmParameterSpec get3DesCbcParameters(ASN1OpenType parameters)
                                                               throws CryptoException
Prepares an encoded value of ASN.1 type IV for use in the parameters component of a value of ASN.1 type ContentEncryptionAlgorithmIdentifier.

Parameters:
parameters - a value of ASN.1 type IV, which is a value of ASN.1 type OCTET STRING, in its encoded form
Throws:
CryptoException

XCMS Toolkit


Copyright © 2005-2006 GRIFFIN Consulting. All Rights Reserved.