Class SmartCardHSMKeySpec

  • All Implemented Interfaces:
    java.security.spec.KeySpec
    Direct Known Subclasses:
    SmartCardHSMPrivateKeySpec, SmartCardHSMSecretKeySpec

    public abstract class SmartCardHSMKeySpec
    extends java.lang.Object
    implements java.security.spec.KeySpec
    Base class for all key specifications
    Author:
    asc
    • Constructor Detail

      • SmartCardHSMKeySpec

        public SmartCardHSMKeySpec()
    • Method Detail

      • hasKeyUseCounter

        public boolean hasKeyUseCounter()
      • setKeyUseCounter

        public void setKeyUseCounter​(int counter)
      • getKeyUseCounter

        public long getKeyUseCounter()
      • hasAlgorithmList

        public boolean hasAlgorithmList()
      • setAlgorithmList

        public void setAlgorithmList​(byte[] list)
      • getAlgorithmList

        public byte[] getAlgorithmList()
      • hasKeyDomain

        public boolean hasKeyDomain()
      • setKeyDomain

        public void setKeyDomain​(KeyDomain keyDomain)
      • getKeyDomain

        public KeyDomain getKeyDomain()
      • encodeSpecParams

        protected void encodeSpecParams​(Sequence cdata)
        Encode key specification for asymmetric keys Overwritten in derived classes
        Parameters:
        cdata - the TLV structure to which objects are added
      • encodeKeyParams

        protected void encodeKeyParams​(Sequence cdata)
        Encode key parameter
        Parameters:
        cdata - the TLV structure to which objects are added
      • getCData

        public byte[] getCData()
        Return the encoded CDATA for GENERATE ASYMMETRIC KEY PAIR oder GENERATE KEY APDU
        Returns:
        the encoded TLV structure