|
|||||||||
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.NonStandardExtension
This class holds any extension that is not explicitly supported by Cert-J. It cannot encode or decode data, but can only take in the encoded value and return it.
Copyright © RSA Security Inc., 1998-2001. All rights reserved.
See Also
Constructor Summary |
|
NonStandardExtension()
Constructs an empty |
|
NonStandardExtension(byte[] oid,
boolean criticality,
byte[] valueBER)
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[] |
getOID()
Gets the OID of this non-standard extension. |
byte[] |
getValueBER()
Gets the BER-encoded value of this non-standard extension. |
void |
setOID(byte[] oid,
int offset,
int len)
Sets the non-standard extension OID. |
void |
setValueBER(byte[] value,
int offset,
int len)
Sets the BER-encoded value of this non-standard 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 |
Constructor Detail |
public NonStandardExtension()
NonStandardExtension
object.public NonStandardExtension(byte[] oid, boolean criticality, byte[] valueBER)
NetscapeSSLServerName
object
and initializes it with the given values.Parameters
oid | The | ||
criticality | The user-specified criticality. | ||
valueBER | The BER encoding of the value (not wrapped in the
|
Method Detail |
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 void setOID(byte[] oid, int offset, int len)
Parameters
oid | A | ||
offset | The offset into oid where the OID begins. | ||
len | The length of the OID in the oid array. |
public byte[] getOID()
Returns
byte
array containing the OID.public void setValueBER(byte[] value, int offset, int len)
Parameters
value | The | ||
offset | The offset into value where the value begins. | ||
len | The length of the value in the value array. |
public byte[] getValueBER()
Returns
byte
array that contains the
BER-encoded 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
NonStandardExtension
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 |