|
|||||||||
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.VeriSignTokenType
This class builds and holds the
VeriSignTokenType
extension. It defines
hardware token characteristics.
id-pki OBJECT IDENTIFIER ::= {2 16 80 1 113733 1} id-extensions OBJECT IDENTIFIER ::= {id-pki extensions (6)} -- Description: Defines hardware token characteristics -- OID in decimal notation: (2.16.840.1.113733.1.6.8) -- Definition: id-tokentype OBJECT IDENTIFIER ::= {id-extensions tokentype(8)} TokenType ::= BIT STRING { private-key-storage(0), generated-and-stored(1), safe-export(2), non-exportable(3)} |
See Also
Field Summary |
|
static int |
GENERATED_AND_STORED
This flag specifies generated and stored characteristics of the hardware token. |
static int |
NON_EXPORTABLE
This flag specifies non-exportable characteristics of the hardware token. |
static int |
PRIVATE_KEY_STORAGE
This flag specifies private key storage characteristics of the hardware token. |
static int |
SAFE_EXPORT
This flag specifies safe export characteristics of the hardware token. |
static int |
TOKEN_TYPE_BITS
This defines how many possible |
static int |
TOKEN_TYPE_MASK
This defines at which bits we look; in this implementation, it is the four left-most bits. |
Constructor Summary |
|
VeriSignTokenType()
Constructs an empty |
|
VeriSignTokenType(int value,
boolean criticality)
The constructor initializes the extension with specified values. |
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. |
int |
getTokenType()
Gets the hardware token characteristics. |
void |
setTokenType(int value)
Sets the hardware token characteristics. |
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 final int TOKEN_TYPE_BITS
TokenType
bits
there are; in this implementation, it is defined as four bits.public static final int TOKEN_TYPE_MASK
public static final int PRIVATE_KEY_STORAGE
public static final int GENERATED_AND_STORED
public static final int SAFE_EXPORT
public static final int NON_EXPORTABLE
Constructor Detail |
public VeriSignTokenType()
VeriSignTokenType
object.public VeriSignTokenType(int value, boolean criticality)
Parameters
value | The hardware token characteristics using the values defined in this class. | ||
criticality | The user-specified criticality. |
Method Detail |
public void setTokenType(int value)
Parameters
value | The hardware token characteristics using the values defined in this class. |
public int getTokenType()
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
VeriSignTokenType
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 |