Class P11Actions.P11SecurityAction

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.xipki.security.pkcs11.P11Key getIdentity​(java.lang.String hexId, java.lang.String label)  
      protected org.xipki.security.pkcs11.P11Module getP11Module​(java.lang.String moduleName)  
      protected org.xipki.security.pkcs11.P11Slot getSlot()  
      • Methods inherited from class org.xipki.shell.XiAction

        confirm, derPemEncode, embedFileContent, encodeCert, encodeCrl, encodeCsr, execute, execute0, expandFilepath, expandFilepath, isBlank, isEmpty, isEnabled, isNotBlank, isNotEmpty, isTrue, print, println, readPassword, readPassword, readPasswordIfNotSet, readPasswordIfNotSet, readPrompt, resolvePassword, save, save, saveVerbose, saveVerbose, split, toBigInt, toBigInt
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DEFAULT_P11MODULE_NAME

        protected static final java.lang.String DEFAULT_P11MODULE_NAME
        See Also:
        Constant Field Values
      • slotIndex

        protected java.lang.String slotIndex
      • moduleName

        protected java.lang.String moduleName
      • p11CryptServiceFactory

        protected org.xipki.security.pkcs11.P11CryptServiceFactory p11CryptServiceFactory
    • Constructor Detail

      • P11SecurityAction

        public P11SecurityAction()
    • Method Detail

      • getSlot

        protected org.xipki.security.pkcs11.P11Slot getSlot()
                                                     throws org.xipki.security.XiSecurityException,
                                                            org.xipki.pkcs11.wrapper.TokenException,
                                                            org.xipki.shell.IllegalCmdParamException
        Throws:
        org.xipki.security.XiSecurityException
        org.xipki.pkcs11.wrapper.TokenException
        org.xipki.shell.IllegalCmdParamException
      • getP11Module

        protected org.xipki.security.pkcs11.P11Module getP11Module​(java.lang.String moduleName)
                                                            throws org.xipki.security.XiSecurityException,
                                                                   org.xipki.pkcs11.wrapper.TokenException,
                                                                   org.xipki.shell.IllegalCmdParamException
        Throws:
        org.xipki.security.XiSecurityException
        org.xipki.pkcs11.wrapper.TokenException
        org.xipki.shell.IllegalCmdParamException
      • getIdentity

        public org.xipki.security.pkcs11.P11Key getIdentity​(java.lang.String hexId,
                                                            java.lang.String label)
                                                     throws org.xipki.shell.IllegalCmdParamException,
                                                            org.xipki.security.XiSecurityException,
                                                            org.xipki.pkcs11.wrapper.TokenException
        Throws:
        org.xipki.shell.IllegalCmdParamException
        org.xipki.security.XiSecurityException
        org.xipki.pkcs11.wrapper.TokenException