com.rsa.jsafe
Class JSAFE_KeyAttributes

java.lang.Object
  extended bycom.rsa.jsafe.JSAFE_KeyAttributes

public class JSAFE_KeyAttributes
extends Object

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

Field Summary

static int

CF_CRL_SIGN

Indicates the key is used to verify the CA's signature on a CRL.

static int

CF_DATA_ENCIPHERMENT

Indicates the key is used to encrypt data other than CF_KEY_ENCIPHERMENT.

static int

CF_DECIPHER_ONLY

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

static int

CF_DIGITAL_SIGNATURE

Indicates the key is used to verify digital signatures other than NON_REPUDIATION, KEY_CERT_SIGN, or CRL_SIGN.

static int

CF_ENCIPHER_ONLY

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

static int

CF_KEY_AGREEMENT

Indicates the key is used in key agreement.

static int

CF_KEY_CERT_SIGN

Indicates the key is used to verify the CA's signature on a certificate.

static int

CF_KEY_ENCIPHERMENT

Indicates the key is used to encrypt keys; for example, for key transport.

static int

CF_NON_REPUDIATION

Indicates the key is used to verify digital signatures, as protection against falsely denying some action.

 long

end

 

 int

keyUsage

 

 long

start

 

static int

TF_PRIVATE

Indicates, if set, that Crypto-J requests the generator to prevent the key data from leaving the device.

static int

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.

 int

tokenFlag

 

 
Constructor Summary
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.

 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TF_RESIDE_ON_TOKEN

public static final int 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.

See Also:
Constant Field Values

TF_PRIVATE

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

See Also:
Constant Field Values

CF_DIGITAL_SIGNATURE

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

See Also:
Constant Field Values

CF_NON_REPUDIATION

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

See Also:
Constant Field Values

CF_KEY_ENCIPHERMENT

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

See Also:
Constant Field Values

CF_DATA_ENCIPHERMENT

public static final int CF_DATA_ENCIPHERMENT
Indicates the key is used to encrypt data other than CF_KEY_ENCIPHERMENT.

See Also:
Constant Field Values

CF_KEY_AGREEMENT

public static final int CF_KEY_AGREEMENT
Indicates the key is used in key agreement.

See Also:
Constant Field Values

CF_KEY_CERT_SIGN

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

See Also:
Constant Field Values

CF_CRL_SIGN

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

See Also:
Constant Field Values

CF_ENCIPHER_ONLY

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

See Also:
Constant Field Values

CF_DECIPHER_ONLY

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

See Also:
Constant Field Values

tokenFlag

public int tokenFlag

keyUsage

public int keyUsage

start

public long start

end

public long end
Constructor Detail

JSAFE_KeyAttributes

public 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. 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.



RSA BSAFE Crypto-J 3.5.2