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".
-
des_EDE3_CBC
-
-
dhKeyAgreement
-
-
dsa
-
-
dsaWithSHA
-
-
md2
-
-
md2WithRSAEncryption
-
-
md4
-
-
md4WithRSAEncryption
-
-
md5
-
-
md5WithRSAEncryption
-
-
pbeWithMD5AndDES_CBC
-
-
pbeWithSHAAnd128BitRC2_CBC
-
-
pbeWithSHAAnd128BitRC4
-
-
pbeWithSHAAnd2_KeyTripleDES_CBC
-
-
pbeWithSHAAnd3_KeyTripleDES_CBC
-
-
pbeWithSHAAnd40BitRC2_CBC
-
-
pbeWithSHAAnd40BitRC4
-
-
rc2_CBC
-
-
rc4
-
-
rsa
-
-
rsaEncryption
-
-
sha
-
-
sha1
-
-
sha1WithRSAEncryption
-
-
AlgorithmID()
-
-
AlgorithmID(ASN1Object)
- Creates a new AlgorithmID from an ASN1Object.
-
AlgorithmID(ObjectID)
- Creates a new AlgorithmID from an ObjectID.
-
AlgorithmID(ObjectID, ASN1Object)
- Creates a new AlgorithmID from an ObjectID and a parameter.
-
AlgorithmID(String, String)
- Creates a new AlgorithmID from an object identifier and a name.
-
clone()
-
Returns a clone of this AlgorithmID.
-
decode(ASN1Object)
- Decodes an AlgorithmID as ASN1Object.
-
equals(Object)
- Compares two AlgorithmIDs.
-
getAlgorithm()
- Returns the ObjectID of the algorithm.
-
getInstance()
- Tries to find an implementation for this AlgorithmIdentifier.
-
getName()
- Returns the name registered for this AlgorithmID or the
object identifier if there is no name registered.
-
getParameter()
- Returns the parameter of the algorithm.
-
setParameter(ASN1Object)
- Sets the parameter of the algorithm.
-
toASN1Object()
- Returns the AlgorithmID as an ASN1Object.
-
toString()
- Returns a string that represents this AlgorithmIdentifier.
dhKeyAgreement
public static AlgorithmID dhKeyAgreement
rsaEncryption
public static AlgorithmID rsaEncryption
md2WithRSAEncryption
public static AlgorithmID md2WithRSAEncryption
md4WithRSAEncryption
public static AlgorithmID md4WithRSAEncryption
md5WithRSAEncryption
public static AlgorithmID md5WithRSAEncryption
sha1WithRSAEncryption
public static AlgorithmID sha1WithRSAEncryption
dsa
public static AlgorithmID dsa
dsaWithSHA
public static AlgorithmID dsaWithSHA
pbeWithMD5AndDES_CBC
public static AlgorithmID pbeWithMD5AndDES_CBC
pbeWithSHAAnd128BitRC4
public static AlgorithmID pbeWithSHAAnd128BitRC4
pbeWithSHAAnd40BitRC4
public static AlgorithmID pbeWithSHAAnd40BitRC4
pbeWithSHAAnd3_KeyTripleDES_CBC
public static AlgorithmID pbeWithSHAAnd3_KeyTripleDES_CBC
pbeWithSHAAnd2_KeyTripleDES_CBC
public static AlgorithmID pbeWithSHAAnd2_KeyTripleDES_CBC
pbeWithSHAAnd128BitRC2_CBC
public static AlgorithmID pbeWithSHAAnd128BitRC2_CBC
pbeWithSHAAnd40BitRC2_CBC
public static AlgorithmID pbeWithSHAAnd40BitRC2_CBC
rsa
public static AlgorithmID rsa
rc2_CBC
public static AlgorithmID rc2_CBC
rc4
public static AlgorithmID rc4
des_EDE3_CBC
public static AlgorithmID des_EDE3_CBC
md2
public static AlgorithmID md2
md4
public static AlgorithmID md4
md5
public static AlgorithmID md5
sha
public static AlgorithmID sha
sha1
public static AlgorithmID sha1
AlgorithmID
public AlgorithmID()
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"
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
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
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
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
toASN1Object
public ASN1Object toASN1Object()
- Returns the AlgorithmID as an ASN1Object.
- Returns:
- the AlgorithmID as ASN1Object
getInstance
public Object getInstance() throws NoSuchAlgorithmException
- Tries to find an implementation for this AlgorithmIdentifier.
This method calls the getInstance() methods in the following order:
- MessageDigest
- Signature
- Cipher
- Returns:
- an instance of the object which implements this algorithm
- Throws: NoSuchAlgorithmException
- if there is no implementation
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
getAlgorithm
public ObjectID getAlgorithm()
- Returns the ObjectID of the algorithm.
- Returns:
- the ObjectID of the algorithm
getParameter
public ASN1Object getParameter()
- Returns the parameter of the algorithm.
- Returns:
- the parameter of the algorithm
setParameter
public void setParameter(ASN1Object parameter)
- Sets the parameter of the algorithm.
- Parameters:
- parameter - the parameter of the algorithm
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
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
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