Class P11Module

  • Direct Known Subclasses:
    NativeP11Module

    public abstract class P11Module
    extends Object
    PKCS#11 module.
    Since:
    2.0.0
    Author:
    Lijun Liao (xipki)
    • Method Detail

      • close

        public abstract void close()
      • getDescription

        public abstract String getDescription()
      • getName

        public String getName()
      • isReadOnly

        public boolean isReadOnly()
      • setSlots

        protected void setSlots​(Set<P11Slot> slots)
      • getSlot

        public P11Slot getSlot​(P11SlotId slotId)
                        throws org.xipki.pkcs11.wrapper.TokenException
        Returns slot for the given slotId.
        Parameters:
        slotId - slot identifier. Must not be null.
        Returns:
        the slot
        Throws:
        org.xipki.pkcs11.wrapper.TokenException - if PKCS#11 token error occurs
      • getSlotIdForIndex

        public P11SlotId getSlotIdForIndex​(int index)
                                    throws org.xipki.pkcs11.wrapper.TokenException
        Throws:
        org.xipki.pkcs11.wrapper.TokenException
      • getSlotIdForId

        public P11SlotId getSlotIdForId​(long id)
                                 throws org.xipki.pkcs11.wrapper.TokenException
        Throws:
        org.xipki.pkcs11.wrapper.TokenException