public class NetscapeCaRevocationUrl extends V3Extension
NetscapeCaRevocationUrl
Extension.
Each Netscape certificate extension is associated with a specific
certificateExtension
object identifier, derived from:
netscape OBJECT IDENTIFIER ::= { 2 16 840 1 113730 } netscape-cert-extension OBJECT IDENTIFIER :: = { netscape 1 }
The object identifier for the NetscapeCaRevocationUrl
extension
is defined as:
netscape-ca-revocation-url OBJECT IDENTIFIER ::= { netscape-cert-extension 4 }
which corresponds to the OID string "2.16.840.1.113730.1.4".
The
Netscape Certificate Specification specifies the NetscapeCaRevocationUrl
extension as IA5String that represents a relative or absolute URL that can be
used to check the revocation status of any certificates that are signed by the CA that
this certificate belongs to. This extension is only valid in CA certificates. The
use of this extension is the same as the netscape-revocation-url extension.
You may specify a particular (relative or absolute) URL directly when creating a
NetscapeCaRevocationUrl
extension, or you may use the default constructor
and supply the URL by using the setCaRevocationUrl
method,
e.g.:
NetscapeCaRevocationUrl netscapeCaRevocationUrl = new NetscapeCaRevocationUrl(); netscapeCaRevocationUrl.setCaRevocationUrl("cgi-bin/check-rev.cgi?");
V3Extension
,
X509Extensions
,
NetscapeRevocationUrl
,
NetscapeBaseUrl
Modifier and Type | Field and Description |
---|---|
static ObjectID |
oid
The object ID of the X.509 extension NetscapeCaRevocationUrl.
|
critical
Constructor and Description |
---|
NetscapeCaRevocationUrl()
Default constructor.
|
NetscapeCaRevocationUrl(java.lang.String url)
Constructs a
NetscapeCaRevocationUrl extension with a specified URL. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCaRevocationUrl()
Returns the caRevocation url.
|
ObjectID |
getObjectID()
Returns the object ID of this
NetscapeCaRevocationUrl extension |
int |
hashCode()
Returns a hashcode for this identity.
|
void |
init(ASN1Object obj)
Inits this
NetscapeCaRevocationUrl implementation with an ASN1object
representing the value of this extension. |
void |
setCaRevocationUrl(java.lang.String url)
Sets the caRevocation url.
|
ASN1Object |
toASN1Object()
Returns an ASN1Object representing the value of this
NetscapeCaRevocationUrl
extension object. |
java.lang.String |
toString()
Returns a string that represents the contents of this
NetscapeCaRevocationUrl extension. |
getName, isCritical, setCritical
public static final ObjectID oid
public NetscapeCaRevocationUrl()
NetscapeCaRevocationUrl
object.
Use the setCaRevocationUrl
method for
specifying a particular (absolute or relative) URL value, e.g.:
NetscapeCaRevocationUrl netscapeCaRevocationUrl = new NetscapeCaRevocationUrl(); netscapeCaRevocationUrl.setCaRevocationUrl("cgi-bin/check-rev.cgi?");
public NetscapeCaRevocationUrl(java.lang.String url)
NetscapeCaRevocationUrl
extension with a specified URL.
The (absolute or relative) URL is given as a String value, for instance:
NetscapeCaRevocationUrl netscapeCaRevocationUrl = new NetscapeCaRevocationUrl("cgi-bin/check-rev.cgi?");
url
- the caRevocation URL, as Stringpublic ObjectID getObjectID()
NetscapeCaRevocationUrl
extensiongetObjectID
in class V3Extension
public void init(ASN1Object obj)
NetscapeCaRevocationUrl
implementation with an ASN1object
representing the value of this extension.
The given ASN1Object represents the IA5STRING (absolute or relative) URL value.
The given ASN1Object is the one created by toASN1Object()
.
This method is used by the X509Extensions
class when parsing the ASN.1 representation
of a certificate for properly initializing an included
NetscapeCaRevocationUrl 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 NetscapeCaRevocationUrl as ASN1Objectpublic ASN1Object toASN1Object()
NetscapeCaRevocationUrl
extension object.
The returned ASN1Object represents the IA5STRING (absolute or relative) URL value.
toASN1Object
in class V3Extension
NetscapeCaRevocationUrl
as ASN1Objectpublic void setCaRevocationUrl(java.lang.String url)
The (absolute or relative) URL value is given as String, e.g.:
NetscapeCaRevocationUrl netscapeCaRevocationUrl = new NetscapeCaRevocationUrl(); netscapeCaRevocationUrl.setCaRevocationUrl("cgi-bin/check-rev.cgi?");
url
- the caRevocation url, as Stringpublic java.lang.String getCaRevocationUrl()
setCaRevocationUrl(java.lang.String)
public int hashCode()
hashCode
in class V3Extension
public java.lang.String toString()
NetscapeCaRevocationUrl
extension.toString
in class java.lang.Object