com.ibm.crypto.pkcs11impl.provider

Class GeneralPKCS11KeyParameterSpec

  1. java.lang.Object
  2. extended bycom.ibm.crypto.pkcs11impl.provider.GeneralPKCS11KeyParameterSpec
All implemented interfaces:
PKCS11SecretKeyParameterSpec, java.security.spec.AlgorithmParameterSpec

  1. public class GeneralPKCS11KeyParameterSpec
  2. extends java.lang.Object
  3. implements PKCS11SecretKeyParameterSpec
This class specifies a PKCS11 key generation specification
Version:
1.0, 14/5/2005

Constructor Summary

Constructor and Description
GeneralPKCS11KeyParameterSpec(java.lang.String keyIdentifier,java.lang.String label,java.lang.Boolean isToken,java.lang.Boolean isSensitive,java.lang.Boolean encryption,java.lang.Boolean wrapping,java.lang.Boolean extractable,int keySizeInBytes,java.lang.String algorithm)
GeneralPKCS11KeyParameterSpec which defines what this key can do.
GeneralPKCS11KeyParameterSpec(java.lang.String keyIdentifier,java.lang.String label,int keySizeInBytes,java.lang.String algorithm)
GeneralPKCS11KeyParameterSpec

Method Summary

Modifier and Type Method and Description
  1. java.lang.Boolean
getEncrypt()
Returns the if the key can be used for encryption/decryption operations.
  1. java.lang.Boolean
getExtractable()
Returns the if the key can be wrapped by another key.
  1. java.lang.String
getKeyID()
Returns the associated key identifier.
  1. int
getKeySizeInBytes()
Returns the size of the key in bytes.
  1. java.lang.Integer
getKeyType()
Returns the key type
  1. java.lang.String
getLabel()
Returns the label for the key.
  1. java.lang.Boolean
getSensitive()
Returns if the key is sensitive.
  1. java.lang.Boolean
getToken()
Returns if the the key is a session or token key.
  1. java.lang.Boolean
getWrap()
Returns if the key can be used for wrapping operations.
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

GeneralPKCS11KeyParameterSpec

  1. public GeneralPKCS11KeyParameterSpec( java.lang.String keyIdentifier,
  2. java.lang.String label,
  3. java.lang.Boolean isToken,
  4. java.lang.Boolean isSensitive,
  5. java.lang.Boolean encryption,
  6. java.lang.Boolean wrapping,
  7. java.lang.Boolean extractable,
  8. int keySizeInBytes,
  9. java.lang.String algorithm)
GeneralPKCS11KeyParameterSpec which defines what this key can do.
Parameters:
keyIdentifier - the data that identifies this key from another key.
label - to describe the keys.
isToken - is set to True if the key is to be a token object.
isSensitive - is set to True if the key is sensitive.
encryption - is set to True if the key can be used for encrypting and decrypting data.
wrapping - is set to True if the key can be used to wrapping/unwrapping other keys.
extractable - is set to True to allow the key to be wrapped with another key.
keySizeInBytes - the size in bytes of the key.
algorithm - the algorithm of the key.

GeneralPKCS11KeyParameterSpec

  1. public GeneralPKCS11KeyParameterSpec( java.lang.String keyIdentifier,
  2. java.lang.String label,
  3. int keySizeInBytes,
  4. java.lang.String algorithm)
GeneralPKCS11KeyParameterSpec
Parameters:
keyIdentifier - the data that identifies this key from another key.
label - that describes the key.
keySizeInBytes - is the size of the key in bytes
algorithm - the algorithm of the key.

Method Detail

getKeyType

  1. public java.lang.Integer getKeyType( )
Returns the key type
Specified by:
Returns:
the key type

getKeyID

  1. public java.lang.String getKeyID( )
Returns the associated key identifier.
Specified by:
Returns:
the key identifier

getLabel

  1. public java.lang.String getLabel( )
Returns the label for the key.
Specified by:
Returns:
the label

getToken

  1. public java.lang.Boolean getToken( )
Returns if the the key is a session or token key.
Specified by:
Returns:
true if key is a token key, false the key is only related to the session.

getSensitive

  1. public java.lang.Boolean getSensitive( )
Returns if the key is sensitive.
Specified by:
Returns:
true if the key is sensitive, false otherwise.

getEncrypt

  1. public java.lang.Boolean getEncrypt( )
Returns the if the key can be used for encryption/decryption operations.
Specified by:
Returns:
true if the key can do encryption/decryption operations, false otherwise.

getWrap

  1. public java.lang.Boolean getWrap( )
Returns if the key can be used for wrapping operations.
Specified by:
Returns:
true if the key can do wrapping operations, false otherwise.

getExtractable

  1. public java.lang.Boolean getExtractable( )
Returns the if the key can be wrapped by another key.
Specified by:
Returns:
true if the key can be wrapped by another key, false otherwise.

getKeySizeInBytes

  1. public int getKeySizeInBytes()
Returns the size of the key in bytes.
Returns:
the size of the key in bytes