com.ibm.crypto.pkcs11impl.provider
Class PKCS11ECPublicKey
- java.lang.Object
-
- com.ibm.security.x509.X509Key
-
- com.ibm.crypto.pkcs11impl.provider.PKCS11ECPublicKey
-
- All Implemented Interfaces:
- PKCS11Key, PKCS11PublicKey, com.ibm.pkcs11.P11Key, java.io.Serializable, java.security.interfaces.ECKey, java.security.interfaces.ECPublicKey, java.security.Key, java.security.PublicKey
public final class PKCS11ECPublicKey extends com.ibm.security.x509.X509Key implements PKCS11PublicKey, java.security.interfaces.ECPublicKey
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.StringgetAlgorithm()java.lang.BooleangetDerive()Returns if key supports key derivationbyte[]getEncoded()byte[]getEncodedW()java.lang.BooleangetEncrypt()Returns encryptjava.util.DategetEndDate()Returns the end datejava.lang.StringgetFormat()byte[]getID()Return the IDjava.lang.IntegergetKeyType()Return the key typejava.lang.StringgetLabel()Returns labeljava.lang.BooleangetLocal()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 TRUEjava.lang.BooleangetModifiable()Returns modifiablecom.ibm.pkcs11.PKCS11ObjectgetObject()Returns the PKCS#11 objectjava.security.spec.ECParameterSpecgetParams()java.lang.BooleangetPrivate()Returns privateSessionManagergetSessionManager()Returns the session manager associated with the keyjava.util.DategetStartDate()Returns the start datebyte[]getSubject()Returns the subject.java.lang.BooleangetToken()Returns tokenjava.lang.BooleangetVerify()Returns verifyjava.lang.BooleangetVerifyRecover()Returns verify recoverjava.security.spec.ECPointgetW()java.lang.BooleangetWrap()Returns wrapvoidrm()Delete the hardware key object and release the session associated with this PKCS11 keyjava.lang.StringtoString()
-
-
-
Method Detail
-
getLocal
public java.lang.Boolean getLocal()
Description copied from interface:PKCS11KeyReturns 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
-
getSubject
public byte[] getSubject()
Returns the subject.- Specified by:
getSubjectin interfacePKCS11PublicKey- Returns:
- the subject
-
getEncrypt
public java.lang.Boolean getEncrypt()
Returns encrypt- Specified by:
getEncryptin interfacePKCS11PublicKey- Returns:
- true if key supports encryption
-
getVerify
public java.lang.Boolean getVerify()
Returns verify- Specified by:
getVerifyin interfacePKCS11PublicKey- Returns:
- true if the key suports verification where the signature is an appendix to the data; false otherwise
-
getVerifyRecover
public java.lang.Boolean getVerifyRecover()
Returns verify recover- Specified by:
getVerifyRecoverin interfacePKCS11PublicKey- Returns:
- true if key supports verification where the data is recovered from the signature.
-
getWrap
public java.lang.Boolean getWrap()
Returns wrap- Specified by:
getWrapin interfacePKCS11PublicKey- Returns:
- true if key supports wrapping; false otherwise
-
getAlgorithm
public java.lang.String getAlgorithm()
- Specified by:
getAlgorithmin interfacejava.security.Key- Overrides:
getAlgorithmin classcom.ibm.security.x509.X509Key
-
getFormat
public java.lang.String getFormat()
- Specified by:
getFormatin interfacejava.security.Key- Overrides:
getFormatin classcom.ibm.security.x509.X509Key
-
getEncoded
public byte[] getEncoded()
- Specified by:
getEncodedin interfacejava.security.Key- Overrides:
getEncodedin classcom.ibm.security.x509.X509Key
-
getW
public java.security.spec.ECPoint getW()
- Specified by:
getWin interfacejava.security.interfaces.ECPublicKey
-
getEncodedW
public byte[] getEncodedW()
-
getParams
public java.security.spec.ECParameterSpec getParams()
- Specified by:
getParamsin interfacejava.security.interfaces.ECKey
-
rm
public void rm()
Delete the hardware key object and release the session associated with this PKCS11 key
-
getObject
public com.ibm.pkcs11.PKCS11Object getObject()
Returns the PKCS#11 object
-
getKeyType
public java.lang.Integer getKeyType()
Return the key type- Specified by:
getKeyTypein interfacePKCS11Key- Specified by:
getKeyTypein interfacecom.ibm.pkcs11.P11Key- Returns:
- the key type
-
getID
public byte[] getID()
Return the ID
-
getDerive
public java.lang.Boolean getDerive()
Returns if key supports key derivation
-
getStartDate
public java.util.Date getStartDate()
Description copied from interface:PKCS11KeyReturns the start date- Specified by:
getStartDatein interfacePKCS11Key- Specified by:
getStartDatein interfacecom.ibm.pkcs11.P11Key- Returns:
- the start date
-
getEndDate
public java.util.Date getEndDate()
Description copied from interface:PKCS11KeyReturns the end date- Specified by:
getEndDatein interfacePKCS11Key- Specified by:
getEndDatein interfacecom.ibm.pkcs11.P11Key- Returns:
- the end date
-
getLabel
public java.lang.String getLabel()
Description copied from interface:PKCS11KeyReturns label
-
getModifiable
public java.lang.Boolean getModifiable()
Description copied from interface:PKCS11KeyReturns modifiable- Specified by:
getModifiablein interfacePKCS11Key- Specified by:
getModifiablein interfacecom.ibm.pkcs11.P11Key- Returns:
- true if object can be modified; false otherwise
-
getPrivate
public java.lang.Boolean getPrivate()
Description copied from interface:PKCS11KeyReturns private- Specified by:
getPrivatein interfacePKCS11Key- Specified by:
getPrivatein interfacecom.ibm.pkcs11.P11Key- Returns:
- true if object is a private object; false if object is a public object.
-
getSessionManager
public SessionManager getSessionManager()
Description copied from interface:PKCS11KeyReturns the session manager associated with the key- Specified by:
getSessionManagerin interfacePKCS11Key- Returns:
- the session manager associated with the key
-
getToken
public java.lang.Boolean getToken()
Description copied from interface:PKCS11KeyReturns token
-
toString
public java.lang.String toString()
- Overrides:
toStringin classcom.ibm.security.x509.X509Key
-
-