Class SmartCardHSMEntry


  • public class SmartCardHSMEntry
    extends java.lang.Object
    This class gives a representation of an SmartCardHSM entry. An Entry can contain either a private key reference with corresponding public key certificate, or a CA certificate.
    Author:
    lew
    • Constructor Detail

      • SmartCardHSMEntry

        public SmartCardHSMEntry​(SmartCardHSMKey key)
        SmartCardHSMEntry constructor
        Parameters:
        key - Reference to the private key on the card
      • SmartCardHSMEntry

        public SmartCardHSMEntry​(java.security.cert.Certificate cert,
                                 boolean isEECertificate,
                                 byte id)
        SmartCardHSMEntry constructor
        Parameters:
        cert - Certificate
        isEECertificate - true for EE certificates false for CA certificates
        id - The certificate ID
    • Method Detail

      • isEECertificate

        public boolean isEECertificate()
        Returns:
        true for EE certificates false for CA certificates
      • isCertificateEntry

        public boolean isCertificateEntry()
      • isKeyEntry

        public boolean isKeyEntry()
      • setCert

        public void setCert​(java.security.cert.Certificate cert,
                            boolean isEECertificate,
                            byte id)
      • getCert

        public java.security.cert.Certificate getCert()
      • setId

        public void setId​(byte id)
      • getId

        public byte getId()