All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class iaik.asn1.structures.AlgorithmID

java.lang.Object
   |
   +----iaik.asn1.structures.AlgorithmID

public class AlgorithmID
extends Object
implements ASN1Type, Cloneable
This class implements the ASN.1 type "AlgorithmIdentifier".


Variable Index

 o des_EDE3_CBC
 o dhKeyAgreement
 o dsa
 o dsaWithSHA
 o md2
 o md2WithRSAEncryption
 o md4
 o md4WithRSAEncryption
 o md5
 o md5WithRSAEncryption
 o pbeWithMD5AndDES_CBC
 o pbeWithSHAAnd128BitRC2_CBC
 o pbeWithSHAAnd128BitRC4
 o pbeWithSHAAnd2_KeyTripleDES_CBC
 o pbeWithSHAAnd3_KeyTripleDES_CBC
 o pbeWithSHAAnd40BitRC2_CBC
 o pbeWithSHAAnd40BitRC4
 o rc2_CBC
 o rc4
 o rsa
 o rsaEncryption
 o sha
 o sha1
 o sha1WithRSAEncryption

Constructor Index

 o AlgorithmID()
 o AlgorithmID(ASN1Object)
Creates a new AlgorithmID from an ASN1Object.
 o AlgorithmID(ObjectID)
Creates a new AlgorithmID from an ObjectID.
 o AlgorithmID(ObjectID, ASN1Object)
Creates a new AlgorithmID from an ObjectID and a parameter.
 o AlgorithmID(String, String)
Creates a new AlgorithmID from an object identifier and a name.

Method Index

 o clone()
Returns a clone of this AlgorithmID.
 o decode(ASN1Object)
Decodes an AlgorithmID as ASN1Object.
 o equals(Object)
Compares two AlgorithmIDs.
 o getAlgorithm()
Returns the ObjectID of the algorithm.
 o getInstance()
Tries to find an implementation for this AlgorithmIdentifier.
 o getName()
Returns the name registered for this AlgorithmID or the object identifier if there is no name registered.
 o getParameter()
Returns the parameter of the algorithm.
 o setParameter(ASN1Object)
Sets the parameter of the algorithm.
 o toASN1Object()
Returns the AlgorithmID as an ASN1Object.
 o toString()
Returns a string that represents this AlgorithmIdentifier.

Variables

 o dhKeyAgreement
 public static AlgorithmID dhKeyAgreement
 o rsaEncryption
 public static AlgorithmID rsaEncryption
 o md2WithRSAEncryption
 public static AlgorithmID md2WithRSAEncryption
 o md4WithRSAEncryption
 public static AlgorithmID md4WithRSAEncryption
 o md5WithRSAEncryption
 public static AlgorithmID md5WithRSAEncryption
 o sha1WithRSAEncryption
 public static AlgorithmID sha1WithRSAEncryption
 o dsa
 public static AlgorithmID dsa
 o dsaWithSHA
 public static AlgorithmID dsaWithSHA
 o pbeWithMD5AndDES_CBC
 public static AlgorithmID pbeWithMD5AndDES_CBC
 o pbeWithSHAAnd128BitRC4
 public static AlgorithmID pbeWithSHAAnd128BitRC4
 o pbeWithSHAAnd40BitRC4
 public static AlgorithmID pbeWithSHAAnd40BitRC4
 o pbeWithSHAAnd3_KeyTripleDES_CBC
 public static AlgorithmID pbeWithSHAAnd3_KeyTripleDES_CBC
 o pbeWithSHAAnd2_KeyTripleDES_CBC
 public static AlgorithmID pbeWithSHAAnd2_KeyTripleDES_CBC
 o pbeWithSHAAnd128BitRC2_CBC
 public static AlgorithmID pbeWithSHAAnd128BitRC2_CBC
 o pbeWithSHAAnd40BitRC2_CBC
 public static AlgorithmID pbeWithSHAAnd40BitRC2_CBC
 o rsa
 public static AlgorithmID rsa
 o rc2_CBC
 public static AlgorithmID rc2_CBC
 o rc4
 public static AlgorithmID rc4
 o des_EDE3_CBC
 public static AlgorithmID des_EDE3_CBC
 o md2
 public static AlgorithmID md2
 o md4
 public static AlgorithmID md4
 o md5
 public static AlgorithmID md5
 o sha
 public static AlgorithmID sha
 o sha1
 public static AlgorithmID sha1

Constructors

 o AlgorithmID
 public AlgorithmID()
 o AlgorithmID
 public AlgorithmID(String objectID,
                    String name)
Creates a new AlgorithmID from an object identifier and a name. The AlgorithmID parameter is set to NULL.

Parameters:
objectID - the object identifier of the algorithm as a string; e.g. "2.5.8.1.1"
name - the name for this object identifier; e.g "rsa"
 o AlgorithmID
 public AlgorithmID(ObjectID algorithm)
Creates a new AlgorithmID from an ObjectID. The parameter is set to NULL.

Parameters:
algorithm - the ObjectID of the algorithm
 o AlgorithmID
 public AlgorithmID(ObjectID algorithm,
                    ASN1Object parameter)
Creates a new AlgorithmID from an ObjectID and a parameter.

Parameters:
algorithm - the ObjectID of the algorithm
parameter - the parameter of the algorithm
 o AlgorithmID
 public AlgorithmID(ASN1Object algorithmID) throws CodingException
Creates a new AlgorithmID from an ASN1Object.

Parameters:
algorithmID - the AlgorithmID as ASN1Object
Throws: CodingException
if the ASN1Object is no AlgorithmID

Methods

 o decode
 public void decode(ASN1Object algorithmID) throws CodingException
Decodes an AlgorithmID as ASN1Object.

Parameters:
algorithmID - the AlgorithmID as ASN1Object
Throws: CodingException
if the ASN1Object is no AlgorithmID
 o toASN1Object
 public ASN1Object toASN1Object()
Returns the AlgorithmID as an ASN1Object.

Returns:
the AlgorithmID as ASN1Object
 o getInstance
 public Object getInstance() throws NoSuchAlgorithmException
Tries to find an implementation for this AlgorithmIdentifier. This method calls the getInstance() methods in the following order:

Returns:
an instance of the object which implements this algorithm
Throws: NoSuchAlgorithmException
if there is no implementation
 o clone
 public Object clone()
Returns a clone of this AlgorithmID. Shall be used when setting an algorithm parameter to an already defined AlgorithmID (e.g. AlgorithmID.rsa).

Returns:
a clone of this AlgorithmID
Overrides:
clone in class Object
 o getAlgorithm
 public ObjectID getAlgorithm()
Returns the ObjectID of the algorithm.

Returns:
the ObjectID of the algorithm
 o getParameter
 public ASN1Object getParameter()
Returns the parameter of the algorithm.

Returns:
the parameter of the algorithm
 o setParameter
 public void setParameter(ASN1Object parameter)
Sets the parameter of the algorithm.

Parameters:
parameter - the parameter of the algorithm
 o getName
 public String getName()
Returns the name registered for this AlgorithmID or the object identifier if there is no name registered.

Returns:
the name of this AlgorithmID
 o equals
 public boolean equals(Object obj)
Compares two AlgorithmIDs.

Parameters:
obj - the other AlgorithmID
Returns:
true, if the two AlgorithmIDs are equal
Overrides:
equals in class Object
 o toString
 public String toString()
Returns a string that represents this AlgorithmIdentifier.

Returns:
the string representation
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index