|
|||||||||
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.OCSPServiceLocator
This class implements a standard extension, Service Locator, used in an OCSP request message as defined in rfc 2560.
Quated from rfc 2560: An OCSP server may be operated in a mode whereby the server receives a request and routes it to the OCSP server which is known to be authoritative for the identified certificate. The serviceLocator request extension is defined for this purpose. This extension is included as one of the singleRequestExtensions in requests.id-pkix-ocsp-service-locator OBJECT IDENTIFIER ::= { id-pkix-ocsp 7 } ServiceLocator ::= SEQUENCE { issuer Name, locator AuthorityInfoAccessSyntax OPTIONAL } |
See Also
Constructor Summary |
|
OCSPServiceLocator()
Constructs an empty |
|
OCSPServiceLocator(X500Name name,
AuthorityInfoAccess locator)
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. |
getIssuer()
Returns the issuer name of this object. |
|
getLocator()
Returns the locator extension of this object. |
|
void |
setIssuer(X500Name issuer)
Sets the |
void |
setLocator(AuthorityInfoAccess locator)
Sets 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 OCSPServiceLocator()
ServiceLocator
object.public OCSPServiceLocator(X500Name name, AuthorityInfoAccess locator) throws CertificateException
OCSPServiceLocator
object for
specified contents.Parameters
name | A | ||
locator | A |
Throws
CertificateException
- If any
value is invalid
.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
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 X500Name getIssuer()
Returns
X500Name
object holding
the issuer of this object.
If this component is missing, it returns null
.
This is a read only value. Caller should not change the value
of the return object.public AuthorityInfoAccess getLocator()
Returns
AuthorityInfoAccess
object holding
the locator of this object.
If this component is missing, it returns null
.
This is a read only value. Caller should not change the value
of the return object.public void setIssuer(X500Name issuer) throws CloneNotSupportedException
issuer
value of this object.
If this object already has an issuer
value, this method will replace it with the given value.Parameters
issuer | The issuer name. |
Throws
CloneNotSupportedException
- If there is some difficulty in creating the copy or
the input value is invalid.public void setLocator(AuthorityInfoAccess locator) throws CloneNotSupportedException
locator
value of this object.
If this object already has an locator
value, this method will replace it with the given value.Parameters
AuthorityInfoAccess | The locator. |
Throws
CloneNotSupportedException
- If there is some difficulty in creating the copy or
the input value is invalid.public Object clone() throws CloneNotSupportedException
clone
method
to get a deeper clone.
Overrides
clone
in class X509V3Extension
Returns
OCSPServiceLocator
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 |