|
|||||||||
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.HoldInstructionCode
This class holds, encodes, and decodes the
HoldInstructionCode
extension. This CRL
entry extension field lets you include a registered
instruction identifier that indicates what action
should be taken for held certificates that have a
certificateHold
reason code.
holdInstructionCode EXTENSION ::= { SYNTAX HoldInstruction IDENTIFIED BY id-ce-instructionCode } HoldInstruction ::= OBJECT IDENTIFIER |
holdInstruction OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) x9-57(10040) 2 } id-holdinstruction-none OBJECT IDENTIFIER ::= {holdInstruction 1} id-holdinstruction-callissuer OBJECT IDENTIFIER ::= {holdInstruction 2} id-holdinstruction-reject OBJECT IDENTIFIER ::= {holdInstruction 3} |
id-holdinstruction-callissuer
must call
the certificate issuer or reject the certificate.
Conforming applications that encounter an id-
holdinstruction-reject
must reject the
certificate. The hold instruction, id-
holdinstruction-none
, is semantically
equivalent to the absence of a
holdInstructionCode
, and its use is
deprecated for the Internet PKI.
This extension should always be non-critical.
Copyright © RSA Security Inc., 1999-2001. All rights reserved.
See Also
Constructor Summary |
|
HoldInstructionCode()
Constructs an empty |
|
HoldInstructionCode(byte[] holdInstruction,
int offset,
int len,
boolean criticality)
Constructs a |
Method Summary |
|
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[] |
getCode()
Gets the value of this object,
|
void |
setCode(byte[] holdInstruction,
int offset,
int len)
Sets the value of this object to holdInstruction. |
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 HoldInstructionCode()
HoldInstructionCode
object.public HoldInstructionCode(byte[] holdInstruction, int offset, int len, boolean criticality)
HoldInstructionCode
object and
initializes it with the given values. The
holdInstruction parameter indicates
what action should be taken for a held certificate.Parameters
holdInstruction | An identifier to indicate the action to take when a held certificate is encountered. | ||
offset | An offset into holdInstruction array. | ||
len | The length of the instruction code. | ||
criticality | The user-specified criticality. |
Method Detail |
public void setCode(byte[] holdInstruction, int offset, int len)
Parameters
holdInstruction | The value of the instruction code. | ||
offset | The offset into the holdInstruction array where the value begins. | ||
len | The length of the instruction code. |
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 byte[] getCode()
holdInstruction
. If this
object does not have a value, then this method returns
null
.
Returns
byte
array containing
the holdInstructionCode
value.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
HoldInstructionCode
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 |