|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.crypto.pkcs11impl.provider.GeneralKey
public final class GeneralKey
A PKCS11 Key
Method Summary | |
---|---|
java.lang.String |
getAlgorithm()
Get Algorithm Name |
java.lang.Boolean |
getAlwaysSensitive()
Returns if key is Always Sensitive |
java.lang.Boolean |
getDecrypt()
Return can this key do decryption |
java.lang.Boolean |
getDerive()
Returns true if key supports key derivation |
byte[] |
getEncoded()
Return encoding if available |
java.lang.Boolean |
getEncrypt()
Return can this key do encryption |
java.util.Date |
getEndDate()
Returns the end date |
java.lang.Boolean |
getExtractable()
Returns if this key can be wrapped by another key. |
java.lang.String |
getFormat()
Get format which is PKCS#11 |
byte[] |
getID()
Return the ID |
int |
getKeySizeInBytes()
Return the key size in bytes. |
java.lang.Integer |
getKeyType()
Return the key type |
java.lang.String |
getLabel()
Return the label. |
java.lang.Boolean |
getLocal()
Returns true if key was either: 1, generated locally with a C_GenerateKey or C_GenerateKeyPair call 2, created with a C_CopyObject call as a copy of a key which had its CKA_LOCAL attribute set to TRUE |
java.lang.Boolean |
getModifiable()
Returns modifiable |
java.lang.Boolean |
getNeverExtractable()
Returns if the key is Never Extractable |
com.ibm.pkcs11.PKCS11Object |
getObject()
Return the PKCS11Object |
java.lang.Boolean |
getPrivate()
Returns if the object is private |
java.lang.Boolean |
getSensitive()
Returns the sensitive. |
com.ibm.pkcs11.PKCS11Session |
getSession()
Return the session associated with the key. |
java.lang.Boolean |
getSign()
Return can this key create a signature |
java.util.Date |
getStartDate()
Returns the start date |
java.lang.Boolean |
getToken()
Returns if the key is a token |
java.lang.Boolean |
getUnwrap()
Returns if this key can unwrap another key. |
byte[] |
getValue()
Return the key value, if available. |
int |
getValueLen()
Return size of key if available |
java.lang.Boolean |
getVerify()
Return if the key supports verifying signatures |
java.lang.Boolean |
getWrap()
Returns if this key can wrap another. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public byte[] getEncoded()
getEncoded
in interface java.security.Key
public int getValueLen()
getValueLen
in interface GeneralPKCS11Key
public com.ibm.pkcs11.PKCS11Object getObject()
getObject
in interface PKCS11Key
public java.lang.Boolean getToken()
getToken
in interface PKCS11Key
public java.lang.Boolean getPrivate()
getPrivate
in interface PKCS11Key
public java.lang.String getLabel()
getLabel
in interface PKCS11Key
public java.lang.Boolean getModifiable()
getModifiable
in interface PKCS11Key
public java.lang.Integer getKeyType()
getKeyType
in interface PKCS11Key
public byte[] getID()
getID
in interface PKCS11Key
public java.util.Date getStartDate()
getStartDate
in interface PKCS11Key
public java.util.Date getEndDate()
getEndDate
in interface PKCS11Key
public java.lang.Boolean getDerive()
getDerive
in interface PKCS11Key
public java.lang.Boolean getLocal()
getLocal
in interface PKCS11Key
public java.lang.Boolean getSensitive()
getSensitive
in interface PKCS11SecretKey
public java.lang.Boolean getEncrypt()
getEncrypt
in interface PKCS11SecretKey
public java.lang.Boolean getDecrypt()
getDecrypt
in interface PKCS11SecretKey
public java.lang.Boolean getSign()
public java.lang.Boolean getVerify()
getVerify
in interface PKCS11SecretKey
public java.lang.Boolean getWrap()
getWrap
in interface PKCS11SecretKey
public java.lang.Boolean getUnwrap()
getUnwrap
in interface PKCS11SecretKey
public java.lang.Boolean getExtractable()
public java.lang.Boolean getAlwaysSensitive()
getAlwaysSensitive
in interface PKCS11SecretKey
public java.lang.Boolean getNeverExtractable()
getNeverExtractable
in interface PKCS11SecretKey
public byte[] getValue()
getValue
in interface GeneralPKCS11Key
public int getKeySizeInBytes()
public com.ibm.pkcs11.PKCS11Session getSession()
getSession
in interface PKCS11Key
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getFormat()
getFormat
in interface java.security.Key
public java.lang.String getAlgorithm()
getAlgorithm
in interface java.security.Key
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |