iaik.x509
Class UnknownExtension

java.lang.Object
  |
  +--iaik.x509.V3Extension
        |
        +--iaik.x509.UnknownExtension

public class UnknownExtension
extends V3Extension

This class implements any unknown extension. It tries to show as much information as possible about the extension.

An Unknown Extension is an extension that cannot be handled properly by the actual certificate (CRL) management software. Within the iaik.X509 environment an extension is treated as unknown if there exists no registered implementation for the extension in mind.

If the certificate handling software detects an unknown extension, it has to check if this extension is labelled as being critical or not. A certificate containing an unknown critical extension shall be rejected. Any non-critical unknown extension can be ignored.

If the CRL handling software detects an unknown extension, it has to check if this extension is labelled as being critical or not. The validation of a CRL containing an unknown critical extension must fail. Any non-critical unknown extension can be ignored.

Version:
File Revision 12
See Also:
X509Extensions, V3Extension

Fields inherited from class iaik.x509.V3Extension
critical
 
Constructor Summary
UnknownExtension(ObjectID oid)
          Creates a new unknown extension from the given object identifier.
 
Method Summary
 String getName()
          Returns the object id of the unknown extension as String representation.
 ObjectID getObjectID()
          Returns the object id of the unknown extension.
 int hashCode()
          Returns a hashcode for this identity.
 void init(ASN1Object obj)
          Inits the implementation with an ASN1 object representing the value of the unknown extension.
 ASN1Object toASN1Object()
          Creates an ASN1Object, which represents the value of this unknown Extension.
 String toString()
          Returns a string that represents the contents of this unknown extension.
 
Methods inherited from class iaik.x509.V3Extension
isCritical, setCritical
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnknownExtension

public UnknownExtension(ObjectID oid)
Creates a new unknown extension from the given object identifier.
Parameters:
oid - the object id of the unknown extension
Method Detail

getObjectID

public ObjectID getObjectID()
Returns the object id of the unknown extension.
Overrides:
getObjectID in class V3Extension
Returns:
the object id of the unknown extension

getName

public String getName()
Returns the object id of the unknown extension as String representation.
Overrides:
getName in class V3Extension
Returns:
a String representation of the object id of the unknown extension

init

public void init(ASN1Object obj)
Inits the implementation with an ASN1 object representing the value of the unknown extension.

Overrides:
init in class V3Extension
Parameters:
obj - the ASN1Object representing the value of this unknown extension

toASN1Object

public ASN1Object toASN1Object()
Creates an ASN1Object, which represents the value of this unknown Extension.

Overrides:
toASN1Object in class V3Extension
Returns:
the value of this extension as ASN1Object

hashCode

public int hashCode()
Returns a hashcode for this identity.
Overrides:
hashCode in class V3Extension
Returns:
a hash code for this identity

toString

public String toString()
Returns a string that represents the contents of this unknown extension.
Overrides:
toString in class Object
Returns:
the string representation

This Javadoc may contain text parts from Internet Standard specifications (RFC 2459, 3280, 3039, 2560, 1521, 821, 822, 2253, 1319, 1321, ,2630, 2631, 2268, 3058, 2984, 2104, 2144, 2040, 2311, 2279, see copyright note) and RSA Data Security Public-Key Cryptography Standards (PKCS#1,3,5,7,8,9,10,12, see copyright note).

IAIK-JCE 3.1 with IAIK-JCE CC Core 3.1, (c) 1997-2004 IAIK