|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.crypto.pkcs11impl.provider.GeneralPKCS11KeyParameterSpec
public class GeneralPKCS11KeyParameterSpec
This class specifies a PKCS11 key generation specification
| Constructor Summary | |
|---|---|
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 | |
|---|---|
java.lang.Boolean |
getEncrypt()
Returns the if the key can be used for encryption/decryption operations. |
java.lang.Boolean |
getExtractable()
Returns the if the key can be wrapped by another key. |
java.lang.String |
getKeyID()
Returns the associated key identifier. |
int |
getKeySizeInBytes()
Returns the size of the key in bytes. |
java.lang.Integer |
getKeyType()
Returns the key type |
java.lang.String |
getLabel()
Returns the label for the key. |
java.lang.Boolean |
getSensitive()
Returns if the key is sensitive. |
java.lang.Boolean |
getToken()
Returns if the the key is a session or token key. |
java.lang.Boolean |
getWrap()
Returns if the key can be used for wrapping operations. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public 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)
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.
public GeneralPKCS11KeyParameterSpec(java.lang.String keyIdentifier,
java.lang.String label,
int keySizeInBytes,
java.lang.String algorithm)
keyIdentifier - the data that identifies this key from another key.label - that describes the key.keySizeInBytes - is the size of the key in bytesalgorithm - the algorithm of the key.| Method Detail |
|---|
public java.lang.Integer getKeyType()
getKeyType in interface PKCS11SecretKeyParameterSpecpublic java.lang.String getKeyID()
getKeyID in interface PKCS11SecretKeyParameterSpecpublic java.lang.String getLabel()
getLabel in interface PKCS11SecretKeyParameterSpecpublic java.lang.Boolean getToken()
getToken in interface PKCS11SecretKeyParameterSpecpublic java.lang.Boolean getSensitive()
getSensitive in interface PKCS11SecretKeyParameterSpecpublic java.lang.Boolean getEncrypt()
getEncrypt in interface PKCS11SecretKeyParameterSpecpublic java.lang.Boolean getWrap()
getWrap in interface PKCS11SecretKeyParameterSpecpublic java.lang.Boolean getExtractable()
getExtractable in interface PKCS11SecretKeyParameterSpecpublic int getKeySizeInBytes()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||