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.String getAlgorithm() 
      java.lang.Boolean getDerive()
      Returns if key supports key derivation
      byte[] getEncoded() 
      byte[] getEncodedW() 
      java.lang.Boolean getEncrypt()
      Returns encrypt
      java.util.Date getEndDate()
      Returns the end date
      java.lang.String getFormat() 
      byte[] getID()
      Return the ID
      java.lang.Integer getKeyType()
      Return the key type
      java.lang.String getLabel()
      Returns 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 modifiable
      com.ibm.pkcs11.PKCS11Object getObject()
      Returns the PKCS#11 object
      java.security.spec.ECParameterSpec getParams() 
      java.lang.Boolean getPrivate()
      Returns private
      SessionManager getSessionManager()
      Returns the session manager associated with the key
      java.util.Date getStartDate()
      Returns the start date
      byte[] getSubject()
      Returns the subject.
      java.lang.Boolean getToken()
      Returns token
      java.lang.Boolean getVerify()
      Returns verify
      java.lang.Boolean getVerifyRecover()
      Returns verify recover
      java.security.spec.ECPoint getW() 
      java.lang.Boolean getWrap()
      Returns wrap
      void rm()
      Delete the hardware key object and release the session associated with this PKCS11 key
      java.lang.String toString() 
      • Methods inherited from class com.ibm.security.x509.X509Key

        decode, decode, encode, encode, equals, getAlgorithmId, hashCode, parse, parse, write, writeBASE64
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getLocal

        public java.lang.Boolean getLocal()
        Description copied from interface: PKCS11Key
        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
        Specified by:
        getLocal in interface PKCS11Key
        Specified by:
        getLocal in interface com.ibm.pkcs11.P11Key
        Returns:
        true if key was either generated locally or created as a copy of a key which had its CKA_local sttribute set to TRUE
      • getSubject

        public byte[] getSubject()
        Returns the subject.
        Specified by:
        getSubject in interface PKCS11PublicKey
        Returns:
        the subject
      • getEncrypt

        public java.lang.Boolean getEncrypt()
        Returns encrypt
        Specified by:
        getEncrypt in interface PKCS11PublicKey
        Returns:
        true if key supports encryption
      • getVerify

        public java.lang.Boolean getVerify()
        Returns verify
        Specified by:
        getVerify in interface PKCS11PublicKey
        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:
        getVerifyRecover in interface PKCS11PublicKey
        Returns:
        true if key supports verification where the data is recovered from the signature.
      • getWrap

        public java.lang.Boolean getWrap()
        Returns wrap
        Specified by:
        getWrap in interface PKCS11PublicKey
        Returns:
        true if key supports wrapping; false otherwise
      • getAlgorithm

        public java.lang.String getAlgorithm()
        Specified by:
        getAlgorithm in interface java.security.Key
        Overrides:
        getAlgorithm in class com.ibm.security.x509.X509Key
      • getFormat

        public java.lang.String getFormat()
        Specified by:
        getFormat in interface java.security.Key
        Overrides:
        getFormat in class com.ibm.security.x509.X509Key
      • getEncoded

        public byte[] getEncoded()
        Specified by:
        getEncoded in interface java.security.Key
        Overrides:
        getEncoded in class com.ibm.security.x509.X509Key
      • getW

        public java.security.spec.ECPoint getW()
        Specified by:
        getW in interface java.security.interfaces.ECPublicKey
      • getEncodedW

        public byte[] getEncodedW()
      • getParams

        public java.security.spec.ECParameterSpec getParams()
        Specified by:
        getParams in interface java.security.interfaces.ECKey
      • rm

        public void rm()
        Delete the hardware key object and release the session associated with this PKCS11 key
        Specified by:
        rm in interface PKCS11Key
        Specified by:
        rm in interface com.ibm.pkcs11.P11Key
      • getObject

        public com.ibm.pkcs11.PKCS11Object getObject()
        Returns the PKCS#11 object
        Specified by:
        getObject in interface PKCS11Key
        Specified by:
        getObject in interface com.ibm.pkcs11.P11Key
        Returns:
        object
      • getKeyType

        public java.lang.Integer getKeyType()
        Return the key type
        Specified by:
        getKeyType in interface PKCS11Key
        Specified by:
        getKeyType in interface com.ibm.pkcs11.P11Key
        Returns:
        the key type
      • getID

        public byte[] getID()
        Return the ID
        Specified by:
        getID in interface PKCS11Key
        Specified by:
        getID in interface com.ibm.pkcs11.P11Key
        Returns:
        the ID
      • getDerive

        public java.lang.Boolean getDerive()
        Returns if key supports key derivation
        Specified by:
        getDerive in interface PKCS11Key
        Specified by:
        getDerive in interface com.ibm.pkcs11.P11Key
        Returns:
        true if key supports key derivation; false otherwise
      • getStartDate

        public java.util.Date getStartDate()
        Description copied from interface: PKCS11Key
        Returns the start date
        Specified by:
        getStartDate in interface PKCS11Key
        Specified by:
        getStartDate in interface com.ibm.pkcs11.P11Key
        Returns:
        the start date
      • getEndDate

        public java.util.Date getEndDate()
        Description copied from interface: PKCS11Key
        Returns the end date
        Specified by:
        getEndDate in interface PKCS11Key
        Specified by:
        getEndDate in interface com.ibm.pkcs11.P11Key
        Returns:
        the end date
      • getLabel

        public java.lang.String getLabel()
        Description copied from interface: PKCS11Key
        Returns label
        Specified by:
        getLabel in interface PKCS11Key
        Specified by:
        getLabel in interface com.ibm.pkcs11.P11Key
        Returns:
        the description of the object
      • getModifiable

        public java.lang.Boolean getModifiable()
        Description copied from interface: PKCS11Key
        Returns modifiable
        Specified by:
        getModifiable in interface PKCS11Key
        Specified by:
        getModifiable in interface com.ibm.pkcs11.P11Key
        Returns:
        true if object can be modified; false otherwise
      • getPrivate

        public java.lang.Boolean getPrivate()
        Description copied from interface: PKCS11Key
        Returns private
        Specified by:
        getPrivate in interface PKCS11Key
        Specified by:
        getPrivate in interface com.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: PKCS11Key
        Returns the session manager associated with the key
        Specified by:
        getSessionManager in interface PKCS11Key
        Returns:
        the session manager associated with the key
      • getToken

        public java.lang.Boolean getToken()
        Description copied from interface: PKCS11Key
        Returns token
        Specified by:
        getToken in interface PKCS11Key
        Specified by:
        getToken in interface com.ibm.pkcs11.P11Key
        Returns:
        true if object is a token object; false if object is a session object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class com.ibm.security.x509.X509Key

© Portions Copyright 2003, 2017 IBM Corporation. All rights reserved.
© Portions Copyright 2003, 2017, Oracle and/or its affiliates. All rights reserved.