com.ibm.crypto.pkcs11impl.provider

Interface PKCS11SecretKeyParameterSpec

All Superinterfaces:
java.security.spec.AlgorithmParameterSpec
All known implementing classes:
DESedePKCS11KeyParameterSpec, DESPKCS11KeyParameterSpec, GeneralPKCS11KeyParameterSpec

  1. public interface PKCS11SecretKeyParameterSpec
  2. extends java.security.spec.AlgorithmParameterSpec
This class specifies a PKCS11 Secret key generation spec

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. 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 the if the key is to be sensitive.
  1. java.lang.Boolean
getToken()
Returns the if the the keys are session or token key.
  1. java.lang.Boolean
getWrap()
Returns the if the key can be used for wrapping operations.

Method Detail

getKeyType

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

getKeyID

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

getLabel

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

getToken

  1. java.lang.Boolean getToken()
Returns the if the the keys are session or token key.
Returns:
true if keys are token key, false they are only related to the session.

getSensitive

  1. java.lang.Boolean getSensitive( )
Returns the if the key is to be sensitive.
Returns:
true if the key is to sensitive, false otherwise.

getEncrypt

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

getWrap

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

getExtractable

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