|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.security.pkcsutil.PKCSDerObject
com.ibm.security.pkcs8.PrivateKeyInfo
com.ibm.crypto.pkcs11impl.provider.DSAPrivateKey
public final class DSAPrivateKey
A PKCS#11 DSA Private Key
| Field Summary |
|---|
| Fields inherited from class com.ibm.security.pkcs8.PrivateKeyInfo |
|---|
version |
| Constructor Summary | |
|---|---|
DSAPrivateKey(com.ibm.pkcs11.PKCS11Session session,
com.ibm.pkcs11.PKCS11Object object,
java.lang.String label,
byte[] ID,
byte[] subject,
java.lang.Boolean isToken,
java.lang.Boolean isSensitive,
java.lang.Boolean isExtractable,
java.math.BigInteger prime,
java.math.BigInteger subprime,
java.math.BigInteger base,
java.math.BigInteger value)
Defines a PKCS#11 DSA private key |
|
| Method Summary | |
|---|---|
java.lang.String |
getAlgorithm()
Get algorithm which is DSA |
java.lang.Boolean |
getAlwaysSensitive()
Return if the key is AlwaysSensitive |
java.lang.Integer |
getAuthPinFlags()
Returns the auth pin flags |
java.math.BigInteger |
getBase()
Return the base. |
java.lang.Boolean |
getDecrypt()
Return if the key can do decryption |
java.lang.Boolean |
getDerive()
Returns true if key supports key derivation |
java.util.Date |
getEndDate()
Returns the end date |
java.lang.Boolean |
getExtractable()
Return if the key is extractable |
java.lang.String |
getFormat()
Get format which is PKCS#11 |
byte[] |
getID()
Return the ID |
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 attrobute set to TRUE |
java.lang.Boolean |
getModifiable()
Returns if the key has modifiable attributes. |
java.lang.Boolean |
getNeverExtractable()
Return if the key is Never Extractable |
com.ibm.pkcs11.PKCS11Object |
getObject()
Returns the PKCS#11 object |
java.security.interfaces.DSAParams |
getParams()
Returns the DSA parameters associated with this key, or null if the parameters could not be parsed. |
java.math.BigInteger |
getPrime()
Return the prime. |
java.lang.Boolean |
getPrivate()
Returns if the key is private |
java.lang.Boolean |
getSecondaryAuth()
Returns if the key requires secondary authentication |
java.lang.Boolean |
getSensitive()
Returns if the key is sensitive |
com.ibm.pkcs11.PKCS11Session |
getSession()
Return the session associated with the key. |
java.lang.Boolean |
getSign()
Return if the key can create a signature |
java.lang.Boolean |
getSignRecover()
Return if the key supports sign recover |
java.util.Date |
getStartDate()
Returns the start date |
byte[] |
getSubject()
Return the subject |
java.math.BigInteger |
getSubprime()
Returns the subprime. |
java.lang.Boolean |
getToken()
Returns if the key is a token |
java.lang.Boolean |
getUnwrap()
Return if the key can unwrap another. |
java.math.BigInteger |
getValue()
Returns the value. |
java.math.BigInteger |
getX()
Return the value of the private key. |
java.lang.String |
toString()
Returns a human readable DSA key. |
| Methods inherited from class com.ibm.security.pkcs8.PrivateKeyInfo |
|---|
addAttribute, addAttributes, clone, encode, equals, getAlgorithmId, getAttribute, getAttributes, getEncoded, getKeyBytes, hasAttribute, hasAttributes, hashCode, parseKey, parseKey |
| Methods inherited from class com.ibm.security.pkcsutil.PKCSDerObject |
|---|
encode, getObjectIdentifier, write |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.security.Key |
|---|
getEncoded |
| Methods inherited from interface java.security.Key |
|---|
getEncoded |
| Methods inherited from interface java.security.Key |
|---|
getEncoded |
| Constructor Detail |
|---|
public DSAPrivateKey(com.ibm.pkcs11.PKCS11Session session,
com.ibm.pkcs11.PKCS11Object object,
java.lang.String label,
byte[] ID,
byte[] subject,
java.lang.Boolean isToken,
java.lang.Boolean isSensitive,
java.lang.Boolean isExtractable,
java.math.BigInteger prime,
java.math.BigInteger subprime,
java.math.BigInteger base,
java.math.BigInteger value)
throws java.security.InvalidKeyException
session - the PKCS#11 session associated with the keyobject - the PKCS11 object that is the actaully representation of the key
to the hardware.ID - The identifier for this key.subject - Subject of this keylabel - Label of this keyisToken - Is this key a token?isSensitive - Is this key sensitive?isExtractable - Can this key be wrapped by another?prime - P of the DSA parameterssubprime - Q of the DSA Parametersbase - G of the DSA Parametersvalue - Private key value.
java.security.InvalidKeyException| Method Detail |
|---|
public com.ibm.pkcs11.PKCS11Object getObject()
getObject in interface PKCS11Keypublic java.lang.Boolean getToken()
getToken in interface PKCS11Keypublic java.lang.Boolean getPrivate()
getPrivate in interface PKCS11Keypublic java.lang.String getLabel()
getLabel in interface PKCS11Keypublic java.lang.Boolean getModifiable()
getModifiable in interface PKCS11Keypublic java.lang.Integer getKeyType()
getKeyType in interface PKCS11Keypublic byte[] getID()
getID in interface PKCS11Keypublic java.util.Date getStartDate()
getStartDate in interface PKCS11Keypublic java.util.Date getEndDate()
getEndDate in interface PKCS11Keypublic java.lang.Boolean getDerive()
getDerive in interface PKCS11Keypublic java.lang.Boolean getLocal()
getLocal in interface PKCS11Keypublic byte[] getSubject()
getSubject in interface PKCS11PrivateKeypublic java.lang.Boolean getSensitive()
getSensitive in interface PKCS11PrivateKeypublic java.lang.Boolean getSecondaryAuth()
getSecondaryAuth in interface PKCS11PrivateKeypublic java.lang.Integer getAuthPinFlags()
getAuthPinFlags in interface PKCS11PrivateKeypublic java.lang.Boolean getDecrypt()
getDecrypt in interface PKCS11PrivateKeypublic java.lang.Boolean getSign()
getSign in interface PKCS11PrivateKeypublic java.lang.Boolean getSignRecover()
getSignRecover in interface PKCS11PrivateKeypublic java.lang.Boolean getUnwrap()
getUnwrap in interface PKCS11PrivateKeypublic java.lang.Boolean getExtractable()
getExtractable in interface PKCS11PrivateKeypublic java.lang.Boolean getAlwaysSensitive()
getAlwaysSensitive in interface PKCS11PrivateKeypublic java.lang.Boolean getNeverExtractable()
getNeverExtractable in interface PKCS11PrivateKeypublic java.math.BigInteger getPrime()
getPrime in interface PKCS11DSAPrivateKeypublic java.math.BigInteger getSubprime()
getSubprime in interface PKCS11DSAPrivateKeypublic java.math.BigInteger getBase()
getBase in interface PKCS11DSAPrivateKeypublic java.math.BigInteger getValue()
getValue in interface PKCS11DSAPrivateKeypublic java.math.BigInteger getX()
getX in interface java.security.interfaces.DSAPrivateKeypublic java.security.interfaces.DSAParams getParams()
getParams in interface java.security.interfaces.DSAKeypublic com.ibm.pkcs11.PKCS11Session getSession()
getSession in interface PKCS11Keypublic java.lang.String toString()
toString in class com.ibm.security.pkcs8.PrivateKeyInfopublic java.lang.String getFormat()
getFormat in interface java.security.KeygetFormat in class com.ibm.security.pkcs8.PrivateKeyInfopublic java.lang.String getAlgorithm()
getAlgorithm in interface java.security.KeygetAlgorithm in class com.ibm.security.pkcs8.PrivateKeyInfo
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||