RSA BSAFE CRYPTO-J

Cryptographic Components for Java

JSAFE Javadoc JCE Javadoc Search

JSAFE_KeyAttributes Class Reference

A JSAFE_KeyAttributes object encapsulates hardware token-related key attributes.

It is ignored by the pure Java key classes. Hardware-specific native subclasses make use of this information.

Since:
Crypto-J 3.2

List of all members.

Public Methods

 JSAFE_KeyAttributes (int tokenFlag, int keyUsage, long start, long end)
 Builds a JSAFEKeyAttributes object according to the specified token and key usage flags, and start and end times. More...


Static Public Attributes

final int JSAFE_KeyAttributes:: TF_RESIDE_ON_TOKEN
 Indicates, if set, the key should not leave the token; if not set, Crypto-J requests the generator to build the key, return all information, and not keep a copy.

final int JSAFE_KeyAttributes:: TF_PRIVATE
 Indicates, if set, that Crypto-J requests the generator to prevent the key data from leaving the device. More...

final int JSAFE_KeyAttributes:: CF_DIGITAL_SIGNATURE
 Indicates the key is used to verify digital signatures other than NON_REPUDIATION, KEY_CERT_SIGN, or CRL_SIGN.

final int JSAFE_KeyAttributes:: CF_NON_REPUDIATION
 Indicates the key is used to verify digital signatures, as protection against falsely denying some action.

final int JSAFE_KeyAttributes:: CF_KEY_ENCIPHERMENT
 Indicates the key is used to encrypt keys; for example, for key transport.

final int JSAFE_KeyAttributes:: CF_DATA_ENCIPHERMENT
 Indicates the key is used to encrypt data other than CF_KEY_ENCIPHERMENT.

final int JSAFE_KeyAttributes:: CF_KEY_AGREEMENT
 Indicates the key is used in key agreement.

final int JSAFE_KeyAttributes:: CF_KEY_CERT_SIGN
 Indicates the key is used to verify the CA's signature on a certificate.

final int JSAFE_KeyAttributes:: CF_CRL_SIGN
 Indicates the key is used to verify the CA's signature on a CRL.

final int JSAFE_KeyAttributes:: CF_ENCIPHER_ONLY
 Indicates the key is used to encipher data, and that no other bit (except CF_KEY_AGREEMENT) is set.

final int JSAFE_KeyAttributes:: CF_DECIPHER_ONLY
 Indicates the key is used to decipher data, and that no other bit (except CF_KEY_AGREEMENT) is set.


Constructor & Destructor Documentation

JSAFE_KeyAttributes::JSAFE_KeyAttributes int    tokenFlag,
int    keyUsage,
long    start,
long    end
[inline];
 

Builds a JSAFEKeyAttributes object according to the specified token and key usage flags, and start and end times. The start and end times are in milliseconds since 1970. The JSAFE_KeyAttributes class encapsulates hardware token-related key attributes. It is ignored by the pure Java key classes. Hardware-specific native subclasses make use of this information.


Member Data Documentation

final int JSAFE_KeyAttributes::TF_PRIVATE [static]
 

Indicates, if set, that Crypto-J requests the generator to prevent the key data from leaving the device. Public keys cannot be private.


Copyright (c) 1999-2005 RSA Security Inc. All rights reserved. 038-001001-3500-001-000 - 3.5