org.webdocwf.util.smime.cms
Class DigestAlgorithmIdentifiers

java.lang.Object
  |
  +--org.webdocwf.util.smime.der.DERObject
        |
        +--org.webdocwf.util.smime.der.DERSetPr
              |
              +--org.webdocwf.util.smime.cms.DigestAlgorithmIdentifiers

public class DigestAlgorithmIdentifiers
extends DERSetPr

DigestAlgorithmIdentifiers class is DER encoded set of Digest Algorithm Identifiers represented in ASN.1 notation according to RFC2630. This class is used in CMS objects for signed messages and represents container for all Digest Algorithm Identifiers (one or more) used in the process of signing.

DigestAlgorithmIdentifiers ::= SET OF DigestAlgorithmIdentifier

DigestAlgorithmIdentifier ::= SEQUENCE {
algorithm AlgorithmIdentifier,
parameters ANY DEFINED BY algorithm OPTIONAL }

AlgorithmIdentifier ::= OBJECT IDENTIFIER


Constructor Summary
DigestAlgorithmIdentifiers()
          Construction of empty container for Digest Algorithm Identifiers
 
Method Summary
 void addDigestAlgId(int[] arrayID0)
          Adds Digest Object Identifier to the instance of class DigestAlgorithmIdentifiers with no additional parameters.
 void addDigestAlgId(int[] arrayID0, byte[] algParam0)
          Adds Digest Object Identifier to the instance of class DigestAlgorithmIdentifiers with parameters represented as byte array.
 void addDigestAlgId(java.lang.String id0, java.lang.String typeConstruction0)
          Adds Digest Object Identifier to the instance of class DigestAlgorithmIdentifiers with no additional parameters.
 void addDigestAlgId(java.lang.String id0, java.lang.String typeConstruction0, byte[] algParam0)
          Adds Digest Object Identifier to the instance of class DigestAlgorithmIdentifiers with parameters represented as byte array.
 void addDigestAlgIdNullPar(int[] arrayID0)
          Adds Digest Object Identifier to the instance of class DigestAlgorithmIdentifiers with DER encoded null value for parameter.
 void addDigestAlgIdNullPar(java.lang.String id0, java.lang.String typeConstruction0)
          Adds Digest Object Identifier to the instance of class DigestAlgorithmIdentifiers with DER encoded null value for parameter.
 
Methods inherited from class org.webdocwf.util.smime.der.DERSetPr
addContent
 
Methods inherited from class org.webdocwf.util.smime.der.DERObject
getContentOctets, getContentPartSize, getDEREncoded, getIdentifierOctet, getLengthOctets, getLengthPartSize, getTagClassType, getTagComplexity, getTagTypeNumber, getTotalSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DigestAlgorithmIdentifiers

public DigestAlgorithmIdentifiers()
                           throws SMIMEException
Construction of empty container for Digest Algorithm Identifiers
Throws:
SMIMEException - thrown from super class constructor.
Method Detail

addDigestAlgId

public void addDigestAlgId(java.lang.String id0,
                           java.lang.String typeConstruction0)
                    throws SMIMEException
Adds Digest Object Identifier to the instance of class DigestAlgorithmIdentifiers with no additional parameters. This method has two different forms, depend on parameter typeConstruction0, which can be: DOT_SEPARATED_ARRAY or NAME_STRING. If typeConstruction0 parameter is DOT_SEPARATED_ARRAY then id0 definition is represented by numbers separated with dots (example: "1.3.14.3.2.26"). In case of NAME_STRING id0 definition is name of object identifier (example: "SHA1").
Parameters:
id0 - defines Object Identifier in representation determined by second parameter - typeConstruction0.
typeConstruction0 - can take values DOT_SEPARATED_ARRAY and NAME_STRING
Throws:
SMIMEException - if wrong type of parameters are passed. Also, it can be thrown from super class addContent method.

addDigestAlgIdNullPar

public void addDigestAlgIdNullPar(java.lang.String id0,
                                  java.lang.String typeConstruction0)
                           throws SMIMEException
Adds Digest Object Identifier to the instance of class DigestAlgorithmIdentifiers with DER encoded null value for parameter. This method has two different forms, depend on parameter typeConstruction0, which can be: DOT_SEPARATED_ARRAY or NAME_STRING. If typeConstruction0 parameter is DOT_SEPARATED_ARRAY then id0 definition is represented by numbers separated with dots (example: "1.3.14.3.2.26"). In case of NAME_STRING id0 definition is name of object identifier (example: "SHA1").
Parameters:
id0 - defines Object Identifier in representation determined by second parameter - typeConstruction0.
typeConstruction0 - can take values DOT_SEPARATED_ARRAY and NAME_STRING
Throws:
SMIMEException - if wrong type of parameters are passed. Also, it can be thrown from super class addContent method.

addDigestAlgId

public void addDigestAlgId(java.lang.String id0,
                           java.lang.String typeConstruction0,
                           byte[] algParam0)
                    throws SMIMEException
Adds Digest Object Identifier to the instance of class DigestAlgorithmIdentifiers with parameters represented as byte array. This method has two different forms, depend on parameter typeConstruction0, which can be: DOT_SEPARATED_ARRAY or NAME_STRING. If typeConstruction0 parameter is DOT_SEPARATED_ARRAY then id0 definition is represented by numbers separated with dots (example: "1.3.14.3.2.26"). In case of NAME_STRING id0 definition is name of object identifier (example: "SHA1").
Parameters:
id0 - defines Object Identifier in representation determined by second parameter - typeConstruction0.
typeConstruction0 - can take values DOT_SEPARATED_ARRAY and NAME_STRING
algParam0 - byte array representation of Digest Algorithm Identifier parameter
Throws:
SMIMEException - if wrong type of parameters are passed. Also, it can be thrown from super class addContent method.

addDigestAlgId

public void addDigestAlgId(int[] arrayID0)
                    throws SMIMEException
Adds Digest Object Identifier to the instance of class DigestAlgorithmIdentifiers with no additional parameters. Array of numbers is Digest Algorithm Identifier which will be added. All numbers in the array represent one number between dots in object identifier string.
Parameters:
arrayID0 - array of given numbers (example: for SHA1 algorithm, numbers are 1, 3, 14, 3, 2 and 26).
Throws:
SMIMEException - if wrong type of parameters are passed. Also, it can be thrown from super class addContent method.

addDigestAlgIdNullPar

public void addDigestAlgIdNullPar(int[] arrayID0)
                           throws SMIMEException
Adds Digest Object Identifier to the instance of class DigestAlgorithmIdentifiers with DER encoded null value for parameter. Array of numbers is Digest Algorithm Identifier which will be added. All numbers in the array represent one number between dots in object identifier string.
Parameters:
arrayID0 - array of given numbers (example: for SHA1 algorithm, numbers are 1, 3, 14, 3, 2 and 26).
Throws:
SMIMEException - if wrong type of parameters are passed. Also, it can be thrown from super class addContent method.

addDigestAlgId

public void addDigestAlgId(int[] arrayID0,
                           byte[] algParam0)
                    throws SMIMEException
Adds Digest Object Identifier to the instance of class DigestAlgorithmIdentifiers with parameters represented as byte array. Array of numbers is used for construction of Digest Algorithm Identifier which will be added. All numbers in the array represent one number between dots in object identifier string.
Parameters:
arrayID0 - array of given numbers (example: for SHA1 algorithm, numbers are 1, 3, 14, 3, 2 and 26).
algParam0 - byte array representation of Digest Algorithm Identifier parameter
Throws:
SMIMEException - if wrong type of parameters are passed. Also, it can be thrown from super class addContent method.


Copyright © 2002-2002 Together Teamlösungen. All Rights Reserved.