public class UnknownExtension extends V3Extension
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.
X509Extensions
,
V3Extension
critical
Constructor and Description |
---|
UnknownExtension(ObjectID oid)
Creates a new unknown extension from the given object identifier.
|
Modifier and Type | Method and Description |
---|---|
java.lang.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.
|
java.lang.String |
toString()
Returns a string that represents the contents of this unknown extension.
|
isCritical, setCritical
public UnknownExtension(ObjectID oid)
oid
- the object id of the unknown extensionpublic ObjectID getObjectID()
getObjectID
in class V3Extension
public java.lang.String getName()
getName
in class V3Extension
public void init(ASN1Object obj)
init
in class V3Extension
obj
- the ASN1Object representing the value of this unknown extensionpublic ASN1Object toASN1Object()
toASN1Object
in class V3Extension
public int hashCode()
hashCode
in class V3Extension
public java.lang.String toString()
toString
in class java.lang.Object