|
|||||||||
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.OCSPAcceptableResponses
This class builds and holds the
OCSP-specific AcceptableResponses
extension.
OCSPAcceptableResponses EXTENSION ::= { SYNTAX AcceptableResponses IDENTIFIED BY id-pkix-ocsp-response } AcceptableResponses ::= SEQUENCE OF OBJECT IDENTIFIER id-pkix-ocsp-response::= {id-pkix-ocsp 4} |
id-pkix-ocsp-basic OBJECT IDENTIFIER ::= { id-pkix-ocsp 1 } |
See Also
Field Summary |
|
static byte[] |
ID_PKIX_OCSP_BASIC
Holds the OCSP Acceptable Basic Response Type OID |
Constructor Summary |
|
OCSPAcceptableResponses()
Constructs an empty |
Method Summary |
|
void |
addAcceptableResponse(byte[] acceptableResponseType,
int typeOffset,
int typeLen)
Add an acceptableResponseType to this extension. |
clone()
Overrides 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[] |
getAcceptableResponse(int index)
Get the acceptableResponseType by index. |
int |
getAcceptableResponseCount()
Get the count of acceptableResponseType in this extension. |
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 |
Field Detail |
public static byte[] ID_PKIX_OCSP_BASIC
id-pkix-ocsp OBJECT IDENTIFIER ::= { id-ad-ocsp } id-pkix-ocsp-basic OBJECT IDENTIFIER ::= { id-pkix-ocsp 1 }
Constructor Detail |
public OCSPAcceptableResponses()
OCSPAcceptableResponses
object.Method Detail |
public void addAcceptableResponse(byte[] acceptableResponseType, int typeOffset, int typeLen) throws CertificateException
Parameters
acceptableResponseType | The | ||
typeOffset | The offset to the byte array. | ||
typeLen | The length of the acceptableResponseType. |
Throws
CertificateException
- If any
value is null
.public int getAcceptableResponseCount()
Returns
public byte[] getAcceptableResponse(int index) throws InvalidParameterException
Parameters
index | index to the acceptableResponse array in the extension. |
Returns
public void decodeValue(byte[] valueBER, int offset) throws CertificateException
Overrides
decodeValue
in class 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 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 Object clone() throws CloneNotSupportedException
clone
method
to get a deeper clone.
Overrides
clone
in class X509V3Extension
Returns
OCSPNoCheck
object,
a copy of this object.
Throws
CloneNotSupportedException
- If the cloning operation
is not successful.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |