public class NoRevAvail extends V3Extension
NoRevAvail
(No Revocation Info available)
attribute certificate extension.
When included in an attribute certificate, the NoRevAvail
extension MUST
be marked as being not critical.
Each extension is associated with a specific certificateExtension
object identifier. The OID for the NoRevAvail
certificateExtension OBJECT IDENTIFIER ::= {joint-iso-ccitt(2) ds(5) 29} id-ce OBJECT IDENTIFIER ::= certificateExtension id-ce-noRevAvail OBJECT IDENTIFIER ::= { id-ce 56 }
which corresponds to the OID string "2.5.29.56".
The X.509 Attribute Certificate profile presented in
RFC 5755 specifies the NoRevAvail
("No Revocation Available") extension to maybe included into an attribute certificate
to indicate that no revocation info will be made available for this AC.
Since only the precense of a NoRevAvail extension in an AC is already meaningful
value of the NoRevAvail extension is specified as ASN.1 NULL
(see RFC 5755 for more
information):
NoRevAvail ::= NULLFor adding an
NoRevAvail
extension object to an AttributeCertificate,
use the addExtension
method of class iaik.x509.attr.AttributeCertificate
, e.g.:
NoRevAvail noRevAvail = new NoRevAvail(); AttributeCertificate ac = new AttributeCertificate(); ... ac.addExtension(noRevAvail);
On the receiving end use method getExtension
method of the iaik.x509.attr.AttributeCertificate
to get an NoRevAvail extension -- if included -- from an Attribute Certificate, e.g.:
// the AttributeCertificate: AttributeCertificate ac = ...; ... // query for NoRevAvail extension: NoRevAvail noRevAvail = (NoRevAvail)ac.getExtension(NoRevAvail.oid); if (noRevAvail != null) { // no revocation check has to be done }
NULL
,
V3Extension
,
AttributeCertificate
Modifier and Type | Field and Description |
---|---|
static ObjectID |
oid
The object identifier of this NoRevAvail extension.
|
critical
Constructor and Description |
---|
NoRevAvail()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object otherObject)
Compares this object with the given one.
|
ObjectID |
getObjectID()
Returns the object ID of this
NoRevAvail extension |
int |
hashCode()
Returns a hashcode for this identity.
|
void |
init(ASN1Object obj)
Inits this
NoRevAvail implementation with an ASN1object
representing the value of this extension. |
ASN1Object |
toASN1Object()
Returns an ASN1Object representing the value of this
NoRevAvail
extension object. |
java.lang.String |
toString()
Returns a string that represents the contents of this
NoRevAvail extension. |
getName, isCritical, setCritical
public static final ObjectID oid
public NoRevAvail()
NoRevAvail
object.public ObjectID getObjectID()
NoRevAvail
extensiongetObjectID
in class V3Extension
public void init(ASN1Object obj) throws X509ExtensionException
NoRevAvail
implementation with an ASN1object
representing the value of this extension.
When parsing the ASN.1 representation of an attribute certificate this method is used for properly initializing an included NoRevAvail extension. This method initializes the extension only with its value, but not with its critical specification. For that reason, this method shall not be explicitly called by an application.
init
in class V3Extension
obj
- the NoRevAvail extension value as ASN1Object (NULL)X509ExtensionException
- If the extension value is not an ASN.1 NULL objectpublic ASN1Object toASN1Object()
NoRevAvail
extension object.
The returned ASN1Object is an ASN.1 NULL object:
NoRevAvail ::= NULL
toASN1Object
in class V3Extension
NoRevAvail
as ASN1Object (NULL)public int hashCode()
hashCode
in class V3Extension
public boolean equals(java.lang.Object otherObject)
equals
in class java.lang.Object
otherObject
- the other object to compare with.public java.lang.String toString()
NoRevAvail
extension.toString
in class java.lang.Object