org.webdocwf.util.smime.cms
Class AlgorithmIdentifier
java.lang.Object
|
+--org.webdocwf.util.smime.der.DERObject
|
+--org.webdocwf.util.smime.der.DERSequencePr
|
+--org.webdocwf.util.smime.cms.AlgorithmIdentifier
- public class AlgorithmIdentifier
- extends DERSequencePr
AlgorithmIdentifier class is DER encoded Algorithm identifier represented in ASN.1
notation according to RFC2630.
AlgorithmIdentifier ::= SEQUENCE {
- algorithm AlgorithmIdentifier,
- parameters ANY DEFINED BY algorithm OPTIONAL }
AlgorithmIdentifier ::= OBJECT IDENTIFIER
Constructor Summary |
AlgorithmIdentifier(int[] arrayID0)
Array of numbers is used for construction of DERObjectIdentifier. |
AlgorithmIdentifier(java.lang.String id0,
java.lang.String typeConstruction0)
This constructor has two different forms, depend on parameter typeConstruction0,
which can be: DOT_SEPARATED_ARRAY or NAME_STRING. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AlgorithmIdentifier
public AlgorithmIdentifier(java.lang.String id0,
java.lang.String typeConstruction0)
throws SMIMEException
- This constructor 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.2.840.113549.1.1.1"). In case of NAME_STRING, id0
definition is name of object identifier (example: "RSA").
- 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 to the
constructor. Also, it can be thrown from super class constructor or its
addContent method.
AlgorithmIdentifier
public AlgorithmIdentifier(int[] arrayID0)
throws SMIMEException
- Array of numbers is used for construction of DERObjectIdentifier. Every number in
array represents one number between dots in object identifier string.
- Parameters:
arrayID0
- array of defined numbers (example: for RSA algoriths, numbers
are 1, 2, 840, 113549, 1, 1, and 1)- Throws:
SMIMEException
- if wrong type of parameters are passed to the
constructor. Also, it can be thrown from super class constructor or its
addContent method.
addNullToAlgorithmId
public void addNullToAlgorithmId()
throws SMIMEException
- Adds DERNull parameter to AlgorithmIdentifier
- Throws:
SMIMEException
- thrown from super class addContent method.
addParamToAlgorithmId
public void addParamToAlgorithmId(byte[] parameter0)
throws SMIMEException
- Adds parameter to AlgorithmIdentifier
- Parameters:
parameter0
- byte array representation of appropriate parameter- Throws:
SMIMEException
- thrown from super class addContent method.
Copyright © 2002-2002 Together Teamlösungen. All Rights Reserved.