|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.rsa.certj.cert.extensions.X509V3Extension | +--com.rsa.certj.cert.extensions.CRLReference
This class implements a standard extension, CRL References, used in an OCSP response message as defined in rfc 2560.
Quoted from rfc 2560: It may be desirable for the OCSP responder to indicate the CRL on which a revoked or onHold certificate is found. This can be useful where OCSP is used between repositories, and also as an auditing mechanism. The CRL may be specified by a URL (the URL at which the CRL is available), a number (CRL number) or a time (the time at which the relevant CRL was created). These extensions will be specified as singleExtensions. The identifier for this extension will be id-pkix-ocsp-crl, while the value will be CrlID.id-pkix-ocsp-crl OBJECT IDENTIFIER ::= { id-pkix-ocsp 3 } CrlID ::= SEQUENCE { crlUrl [0] EXPLICIT IA5String OPTIONAL, crlNum [1] EXPLICIT INTEGER OPTIONAL, crlTime [2] EXPLICIT GeneralizedTime OPTIONAL } |
See Also
Constructor Summary |
|
CRLReference()
Constructs an empty |
|
CRLReference(String crlUrl,
byte[] crlNum,
int crlNumOffset,
int crlNumLen,
Date crlTime)
Constructs a |
Method Summary |
|
clone()
Overrrides the default |
|
void |
decodeValue(byte[] valueBER,
int offset)
Decode the value. |
int |
derEncodeValue(byte[] encoding,
int offset)
Place the encoding of the value into encoding, beginning at offset. |
int |
derEncodeValueInit()
Initialize for encoding the value. |
byte[] |
getCRLNumber()
Returns the |
getCRLTime()
/**
Returns the |
|
getURL()
Returns the |
|
void |
setCRLNumber(byte[] crlNum,
int crlNumOffset,
int crlNumLen)
Set the |
void |
setCRLTime(Date crlTime)
Set the |
void |
setURL(String crlUrl)
Returns the |
Methods inherited from class com.rsa.certj.cert.extensions.X509V3Extension |
extend, getCriticality, getDEREncoding, getDERLen, getExtensionType, getExtensionTypeString, getInstance, getNextBEROffset, isExtensionType, setCriticality, setEncoding, setSpecialOID, setStandardOID |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CRLReference()
CRLReference
object.public CRLReference(String crlUrl, byte[] crlNum, int crlNumOffset, int crlNumLen, Date crlTime)
CRLReference
object for
specified contents.Parameters
crlUrl | A | ||
crlNum | A | ||
crlTime | A |
Method Detail |
public int derEncodeValueInit()
Overrides
derEncodeValueInit
in class X509V3Extension
Returns
public int derEncodeValue(byte[] encoding, int offset)
Overrides
derEncodeValue
in class X509V3Extension
Parameters
encoding | The byte array into which the result will be placed. | ||
offset | The offest into encoding where the writing is to begin. |
Returns
public void decodeValue(byte[] valueBER, int offset) throws CertificateException
X509V3Extension
Overrides
decodeValue
in class X509V3Extension
com.rsa.certj.cert.extensions.X509V3Extension
Parameters
valueBER | The BER encoding of the extension's value. | ||
offset | The offset into valueBER where the encoding begins. |
Throws
CertificateException
- If the encoding is invalid
for this extension.public String getURL()
crlUrl
component of this object.
Returns
String
object holding
the crlUrl
component of this object.
If this component is missing, it returns null
.public void setURL(String crlUrl)
crlUrl
component of this object.
Returns
String
object holding
the crlUrl
component of this object.
If this component is missing, it returns null
.public byte[] getCRLNumber()
crlNum
component of this object.
Returns
byte
array holding
the crlNum
component of this object.
If this component is missing, returns null
.public void setCRLNumber(byte[] crlNum, int crlNumOffset, int crlNumLen)
crlNum
component of this object.Parameters
A |
|
public Date getCRLTime()
crlTime
component of this object.
Returns
Date
object holding
the crlTime
component of this object.
If this component is missing, it returns null
.public void setCRLTime(Date crlTime)
crlTime
component of this object.Parameters
A |
|
public Object clone() throws CloneNotSupportedException
clone
method
to get a deeper clone.
Overrides
clone
in class X509V3Extension
Returns
CRLReference
object,
a copy of this object.
Throws
CloneNotSupportedException
- If there is some difficulty in creating the copy.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |