|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.security.x509.X509Key
com.ibm.crypto.pkcs11impl.provider.DSAPublicKey
public final class DSAPublicKey
A PKCS #11 DSA Public Key
Constructor Summary | |
---|---|
DSAPublicKey(com.ibm.pkcs11.PKCS11Session session,
com.ibm.pkcs11.PKCS11Object object,
byte[] ID,
byte[] subject,
java.lang.String label,
java.lang.Boolean isToken,
java.math.BigInteger prime,
java.math.BigInteger subprime,
java.math.BigInteger base,
java.math.BigInteger value)
Defines a DSA public key |
Method Summary | |
---|---|
java.lang.String |
getAlgorithm()
Get algorithm which is DSA |
java.math.BigInteger |
getBase()
Returns the base |
java.lang.Boolean |
getDerive()
Returns if key supports key derivation |
java.lang.Boolean |
getEncrypt()
Return if the key supports encryption |
java.util.Date |
getEndDate()
Returns the end date |
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 is the key has modifiable attributes |
com.ibm.pkcs11.PKCS11Object |
getObject()
Return the PKCS# 11 object |
java.security.interfaces.DSAParams |
getParams()
Return the DSA parameters for the receiver. |
java.math.BigInteger |
getPrime()
Return the prime. |
java.lang.Boolean |
getPrivate()
Returns if the key is private |
com.ibm.pkcs11.PKCS11Session |
getSession()
Return the session associated with the key. |
java.util.Date |
getStartDate()
Returns the start date |
byte[] |
getSubject()
Return the subject |
java.math.BigInteger |
getSubprime()
Return the subprime |
java.lang.Boolean |
getToken()
Returns if this key a token object |
java.math.BigInteger |
getValue()
Returns the value |
java.lang.Boolean |
getVerify()
Return if the key can verify a signature |
java.lang.Boolean |
getVerifyRecover()
Returns if the key supports verify recover |
java.lang.Boolean |
getWrap()
Returns if the key can wrap another key |
java.math.BigInteger |
getY()
Return the value of the public key. |
java.lang.String |
toString()
Returns the key in human readable format |
Methods inherited from class com.ibm.security.x509.X509Key |
---|
decode, decode, encode, encode, equals, getAlgorithmId, getEncoded, hashCode, parse, parse, write, writeBASE64 |
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 DSAPublicKey(com.ibm.pkcs11.PKCS11Session session, com.ibm.pkcs11.PKCS11Object object, byte[] ID, byte[] subject, java.lang.String label, java.lang.Boolean isToken, 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?prime
- P of the DSA parameterssubprime
- Q of the DSA Parametersbase
- G of the DSA Parametersvalue
- Public key value.
java.security.InvalidKeyException
Method Detail |
---|
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 byte[] getSubject()
getSubject
in interface PKCS11PublicKey
public java.lang.Boolean getEncrypt()
getEncrypt
in interface PKCS11PublicKey
public java.lang.Boolean getVerify()
getVerify
in interface PKCS11PublicKey
public java.lang.Boolean getVerifyRecover()
getVerifyRecover
in interface PKCS11PublicKey
public java.lang.Boolean getWrap()
getWrap
in interface PKCS11PublicKey
public java.math.BigInteger getPrime()
getPrime
in interface PKCS11DSAPublicKey
public java.math.BigInteger getSubprime()
getSubprime
in interface PKCS11DSAPublicKey
public java.math.BigInteger getBase()
getBase
in interface PKCS11DSAPublicKey
public java.math.BigInteger getValue()
getValue
in interface PKCS11DSAPublicKey
public java.math.BigInteger getY()
getY
in interface java.security.interfaces.DSAPublicKey
the
- value of ypublic java.security.interfaces.DSAParams getParams()
getParams
in interface java.security.interfaces.DSAKey
public com.ibm.pkcs11.PKCS11Session getSession()
getSession
in interface PKCS11Key
public java.lang.String toString()
toString
in class com.ibm.security.x509.X509Key
public java.lang.String getFormat()
getFormat
in interface java.security.Key
getFormat
in class com.ibm.security.x509.X509Key
public java.lang.String getAlgorithm()
getAlgorithm
in interface java.security.Key
getAlgorithm
in class com.ibm.security.x509.X509Key
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |