All Packages Class Hierarchy This Package Previous Next Index
Class iaik.asn1.ObjectID
java.lang.Object
|
+----iaik.asn1.ASN1Object
|
+----iaik.asn1.ObjectID
- public class ObjectID
- extends ASN1Object
This class implements the ASN.1 native type "OBJECT IDENTIFIER".
The OBJECT IDENTIFIER type denotes an object identifier, a sequence of
integer components that identifies an object, such as an algorithm, an
attribute type, or perhaps a registration authority that defines other
object identifiers.
This class uses Strings as representation of object identifiers. For
example: "1.2.3.4".
-
certTypes
-
-
commonName
-
-
country
-
-
crlTypes
-
-
EmailAddress
-
-
friendlyName
-
-
givenName
-
-
id_pkix_cps
-
-
id_pkix_unotice
-
-
locality
-
-
localKeyID
-
-
organization
-
-
organizationalUnit
-
-
pkcs12
-
-
pkcs12_BagIds
-
-
pkcs12_certAndCRLBagId
-
-
pkcs12_certBag
-
-
pkcs12_CertBagIds
-
-
pkcs12_crlBag
-
-
pkcs12_keyBag
-
-
pkcs12_keyBagId
-
-
pkcs12_pkcs8ShroudedKeyBag
-
-
pkcs12_pkcs8ShroudedKeyBagId
-
-
pkcs12_safeContentsBag
-
-
pkcs12_safeContentsId
-
-
pkcs12_SDSICertBagId
-
-
pkcs12_secretBag
-
-
pkcs12_secretBagId
-
-
pkcs12_Version1
-
-
pkcs12_Version1_BagIds
-
-
pkcs12_x509CertCRLBagId
-
-
pkcs7
-
-
pkcs7_data
-
-
pkcs7_digestedData
-
-
pkcs7_encryptedData
-
-
pkcs7_envelopedData
-
-
pkcs7_signedAndEnvelopedData
-
-
pkcs7_signedData
-
-
sdsiCertificate
-
-
stateOrProvince
-
-
surName
-
-
title
-
-
uniqueIdentifier
-
-
x509Certificate
-
-
x509Crl
-
-
ObjectID()
- The default constructor.
-
ObjectID(String)
- Constructs an ObjectID from a String.
-
ObjectID(String, String)
- Constructs an ObjectID from a String.
-
ObjectID(String, String, String)
- Constructs an ObjectID from a String.
-
decode(int, int, DerDecodeInputStream)
- Decodes the next available data from the DerDecodeInputStream.
-
encode(DerEncodeOutputStream)
- DER encodes this ASN1Object and write the result to the DerEncodeOutputStream.
-
equals(Object)
- Compares this ObjectID to the specified object.
-
getID()
- Returns the objectID.
-
getName()
- Returns the name registered for this ObjectID or the
object identifier if there is no name registered.
-
getShortName()
- Returns the short name registered for this ObjectID or the
object identifier if there is no name registered.
-
getValue()
- Returns the value of this ObjectID as a String.
-
hashCode()
- Returns a hash code for this object.
-
init()
- Initialize the object factory method.
-
register(ObjectID, String)
- Registers a name for a specific object ID.
-
setValue(Object)
- Sets the value of this object to value.
-
toString()
- Returns a string that represents the contents of the ObjectID.
commonName
public static ObjectID commonName
country
public static ObjectID country
locality
public static ObjectID locality
stateOrProvince
public static ObjectID stateOrProvince
organization
public static ObjectID organization
organizationalUnit
public static ObjectID organizationalUnit
title
public static ObjectID title
surName
public static ObjectID surName
givenName
public static ObjectID givenName
uniqueIdentifier
public static ObjectID uniqueIdentifier
pkcs7
public static ObjectID pkcs7
pkcs7_data
public static ObjectID pkcs7_data
pkcs7_signedData
public static ObjectID pkcs7_signedData
pkcs7_envelopedData
public static ObjectID pkcs7_envelopedData
pkcs7_signedAndEnvelopedData
public static ObjectID pkcs7_signedAndEnvelopedData
pkcs7_digestedData
public static ObjectID pkcs7_digestedData
pkcs7_encryptedData
public static ObjectID pkcs7_encryptedData
EmailAddress
public static ObjectID EmailAddress
friendlyName
public static ObjectID friendlyName
localKeyID
public static ObjectID localKeyID
certTypes
public static ObjectID certTypes
x509Certificate
public static ObjectID x509Certificate
sdsiCertificate
public static ObjectID sdsiCertificate
crlTypes
public static ObjectID crlTypes
x509Crl
public static ObjectID x509Crl
pkcs12
public static ObjectID pkcs12
pkcs12_BagIds
public static ObjectID pkcs12_BagIds
pkcs12_keyBagId
public static ObjectID pkcs12_keyBagId
pkcs12_certAndCRLBagId
public static ObjectID pkcs12_certAndCRLBagId
pkcs12_secretBagId
public static ObjectID pkcs12_secretBagId
pkcs12_safeContentsId
public static ObjectID pkcs12_safeContentsId
pkcs12_pkcs8ShroudedKeyBagId
public static ObjectID pkcs12_pkcs8ShroudedKeyBagId
pkcs12_CertBagIds
public static ObjectID pkcs12_CertBagIds
pkcs12_x509CertCRLBagId
public static ObjectID pkcs12_x509CertCRLBagId
pkcs12_SDSICertBagId
public static ObjectID pkcs12_SDSICertBagId
pkcs12_Version1
public static ObjectID pkcs12_Version1
pkcs12_Version1_BagIds
public static ObjectID pkcs12_Version1_BagIds
pkcs12_keyBag
public static ObjectID pkcs12_keyBag
pkcs12_pkcs8ShroudedKeyBag
public static ObjectID pkcs12_pkcs8ShroudedKeyBag
pkcs12_certBag
public static ObjectID pkcs12_certBag
pkcs12_crlBag
public static ObjectID pkcs12_crlBag
pkcs12_secretBag
public static ObjectID pkcs12_secretBag
pkcs12_safeContentsBag
public static ObjectID pkcs12_safeContentsBag
id_pkix_cps
public static ObjectID id_pkix_cps
id_pkix_unotice
public static ObjectID id_pkix_unotice
ObjectID
protected ObjectID()
- The default constructor.
ObjectID
public ObjectID(String oid)
- Constructs an ObjectID from a String.
The objectID must be in the format: "1.2.3.4".
- Parameters:
- oid - the objectID as String
ObjectID
public ObjectID(String oid,
String name)
- Constructs an ObjectID from a String.
The objectID must be in the format: "1.2.3.4".
- Parameters:
- oid - the objectID as String
- name - a name for the objectID
ObjectID
public ObjectID(String oid,
String name,
String shortName)
- Constructs an ObjectID from a String.
The objectID must be in the format: "1.2.3.4".
- Parameters:
- oid - the objectID as String
- name - a name for the objectID e.g. "commonName"
- shortName - a short name for the objectID e.g. "CN"
init
protected static void init()
- Initialize the object factory method.
register
public static void register(ObjectID oid,
String name)
- Registers a name for a specific object ID.
- Parameters:
- oid - the object ID
- name - the name for this object ID
getValue
public Object getValue()
- Returns the value of this ObjectID as a String.
- Overrides:
- getValue in class ASN1Object
setValue
public void setValue(Object object)
- Sets the value of this object to value.
- Overrides:
- setValue in class ASN1Object
getID
public String getID()
- Returns the objectID.
- Returns:
- the objectID as String ("1.2.3.4")
getName
public String getName()
- Returns the name registered for this ObjectID or the
object identifier if there is no name registered.
- Returns:
- the name of the ObjectID
getShortName
public String getShortName()
- Returns the short name registered for this ObjectID or the
object identifier if there is no name registered.
- Returns:
- the short name of the ObjectID
hashCode
public int hashCode()
- Returns a hash code for this object.
- Returns:
- the hash code
- Overrides:
- hashCode in class Object
equals
public boolean equals(Object obj)
- Compares this ObjectID to the specified object.
- Parameters:
- obj - - the object to compare this ObjectID against.
- Returns:
- true, if the object is equal to this ObjectID
false otherwise
- Overrides:
- equals in class Object
encode
protected void encode(DerEncodeOutputStream os)
- DER encodes this ASN1Object and write the result to the DerEncodeOutputStream.
- Parameters:
- os - the output stream to which to write the data
- Overrides:
- encode in class ASN1Object
decode
protected void decode(int tag,
int length,
DerDecodeInputStream is) throws IOException
- Decodes the next available data from the DerDecodeInputStream.
- Parameters:
- tag - the full tag of the current ASN1Object
- length - the length of the ASN1Object which shall be decoded
- Throws: IOException
- if there is a problem with the DerDecodeInputStream
- Overrides:
- decode in class ASN1Object
toString
public String toString()
- Returns a string that represents the contents of the ObjectID.
- Returns:
- the string representation
- Overrides:
- toString in class ASN1Object
All Packages Class Hierarchy This Package Previous Next Index