|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.rsa.certj.crmf.Control | +--com.rsa.certj.crmf.OldCertID
This class holds, encodes, and decodes the Old Cert ID control. If presented, the OldCertID control specifies the certificate to be updated by the current certification request.
The syntax of its value is :CertId ::= SEQUENCE { issuer GeneralName, serialNumber INTEGER } |
See Also
Fields inherited from class com.rsa.certj.crmf.Control |
AUTHENTICATOR, NON_STANDARD, OLD_CERT_ID, PKI_ARCHIVE_OPTIONS, PKI_PUBLICATION_INFO, PROTOCOL_ENCR_KEY, REG_TOKEN |
Constructor Summary |
|
OldCertID()
Constructs an empty |
Method Summary |
|
clone()
Gets a deeper clone than the default. |
|
void |
decodeValue(byte[] valueBER,
int offset)
Decodes the BER encoding and sets issuer and serial number values in this object. |
boolean |
equals(Object obj)
Returns |
getCertIssuerName()
Gets the old certificate issuer name. |
|
byte[] |
getSerialNumber()
Gets the serial number of the old certificate. |
void |
setCertIssuerName(GeneralName name)
Sets the old certificate Issuer Name |
void |
setSerialNumber(byte[] serialNumber,
int offset,
int len)
Sets the serial number of the old certificate to be serialNumber, a value of length len beginning at offset. |
Methods inherited from class com.rsa.certj.crmf.Control |
compareOID, derEncodeControlLen, getControlType, getControlTypeString, getDEREncoding, getDERLen, getInstance, getInstance, getNextBEROffset, getOID, isControlType, setEnvironment |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OldCertID()
OldCertID
object.Method Detail |
public void decodeValue(byte[] valueBER, int offset) throws CRMFException
Parameters
valueBER | The BER encoding of the control's value. | ||
offset | The offset into valueBER where the encoding begins. |
Throws
CRMFException
- If the encoding is invalid for this control.public void setCertIssuerName(GeneralName name) throws CRMFException
Parameters
name | The issuer name |
Throws
CRMFException
- If the passed in value is invalidpublic void setSerialNumber(byte[] serialNumber, int offset, int len) throws CRMFException
Parameters
serialNumber | A | ||
offset | The offset into serialNumber where the value begins | ||
len | The number of bytes of serialNumber that make up the serial number |
Throws
CRMFException
- If passed in value is nullpublic byte[] getSerialNumber()
Returns
public GeneralName getCertIssuerName()
null
.
Returns
public Object clone() throws CloneNotSupportedException
Overrides
clone
in class Control
Returns
Throws
CloneNotSupportedException
- If the cloning operation
is not successful.public boolean equals(Object obj)
true
if this object and obj
contain the same OldCertID
object;
returns false
otherwise.Overrides
equals
in class Control
Parameters
obj | The instance of |
Returns
boolean
that indicates whether
these objects are equal.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |