com.ibm.crypto.pkcs11impl.provider

Class PKCS11RSAKeyPairParameterSpec

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

  1. public class PKCS11RSAKeyPairParameterSpec
  2. extends java.lang.Object
  3. implements java.security.spec.AlgorithmParameterSpec
This class specifies a PKCS #11 RSA key pair generation specification

Constructor Summary

Constructor and Description
PKCS11RSAKeyPairParameterSpec(int strength,java.lang.String keyIdentifier,java.lang.String subject,java.lang.String label)
PKCS11RSAKeyPairParameterSpec defines the attributes for a RSA key pair.
PKCS11RSAKeyPairParameterSpec(int strength,java.lang.String keyIdentifier,java.lang.String subject,java.lang.String label,java.lang.Boolean isToken,java.lang.Boolean isSensitive,java.lang.Boolean signing,java.lang.Boolean encryption,java.lang.Boolean wrapping,java.lang.Boolean extractable)
PKCS11RSAKeyPairParameterSpec defines the attributes for a RSA key pair.

Method Summary

Modifier and Type Method and Description
  1. java.lang.Boolean
getEncrypt()
Returns if the key pair can be used for encryption/decryption operations.
  1. java.lang.Boolean
getExtractable()
Returns if the private can be wrapped by another key.
  1. java.lang.String
getKeyID()
Returns the associated key identifier.
  1. java.lang.String
getLabel()
Returns the label for the key pair.
  1. java.lang.Boolean
getSensitive()
Returns if the private key is to be sensitive.
  1. java.lang.Boolean
getSign()
Returns if the key pair can be used for signature operations.
  1. int
getStrength()
Returns the strength
  1. java.lang.String
getSubject()
Returns the subject for the key pair.
  1. java.lang.Boolean
getToken()
Returns if the the keys are session or token keys.
  1. java.lang.Boolean
getWrap()
Returns if the key pair can be used for wrapping operations.
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

PKCS11RSAKeyPairParameterSpec

  1. public PKCS11RSAKeyPairParameterSpec( int strength,
  2. java.lang.String keyIdentifier,
  3. java.lang.String subject,
  4. java.lang.String label,
  5. java.lang.Boolean isToken,
  6. java.lang.Boolean isSensitive,
  7. java.lang.Boolean signing,
  8. java.lang.Boolean encryption,
  9. java.lang.Boolean wrapping,
  10. java.lang.Boolean extractable)
PKCS11RSAKeyPairParameterSpec defines the attributes for a RSA key pair.
Parameters:
strength - the key strength
keyIdentifier - the data that identifies this key pair for another key pair.
subject - the subject of the keys that will be associated with a corresponding certificate
label - to describe the keys.
isToken - is set to True if the key pair is to be
isSensitive - is set to True if the private key is sensitive
signing - is set to True if the key pair can be used for signing and verifying data
encryption - is set to True if the key pair can be used for encrypting and decrypting data
wrapping - is set to True if the keys can be used to wrap/unwrap other keys.
extractable - is set to True to allow the private key to be wrapped with another key.

PKCS11RSAKeyPairParameterSpec

  1. public PKCS11RSAKeyPairParameterSpec( int strength,
  2. java.lang.String keyIdentifier,
  3. java.lang.String subject,
  4. java.lang.String label)
PKCS11RSAKeyPairParameterSpec defines the attributes for a RSA key pair. This defaults the key pair to be able to do signature functions, encrypt/decrypt functions and allows the keys to be used for wrapping functions. Also, the private key will not be sensitive and it can be wrapped by another key and the keys are not to be saved on the token.
Parameters:
strength - the key strength
keyIdentifier - the data that identifies this key pair for another key pair.
subject - the subject of the keys that will be associated with a corresponding certificate
label - to describe the keys.

Method Detail

getStrength

  1. public int getStrength()
Returns the strength
Returns:
the strength

getKeyID

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

getSubject

  1. public java.lang.String getSubject( )
Returns the subject for the key pair.
Returns:
the subject

getLabel

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

getSensitive

  1. public java.lang.Boolean getSensitive( )
Returns if the private key is to be sensitive.
Returns:
true if the private key is to be sensitive, null if not specified.

getToken

  1. public java.lang.Boolean getToken( )
Returns if the the keys are session or token keys.
Returns:
true if keys are token keys, null if not specified.

getSign

  1. public java.lang.Boolean getSign( )
Returns if the key pair can be used for signature operations.
Returns:
true if the key pair can do signature operations, null if not specified.

getEncrypt

  1. public java.lang.Boolean getEncrypt( )
Returns if the key pair can be used for encryption/decryption operations.
Returns:
true if the key pair can do encryption/decryption operations, null if not specified.

getWrap

  1. public java.lang.Boolean getWrap( )
Returns if the key pair can be used for wrapping operations.
Returns:
true if the key pair can do wrapping operations, null if not specified.

getExtractable

  1. public java.lang.Boolean getExtractable( )
Returns if the private can be wrapped by another key.
Returns:
true if the private key can be wrapped by another key, null if not specified.