Package org.xipki.security.shell
Class P11Actions.P11SecurityAction
- java.lang.Object
-
- org.xipki.shell.XiAction
-
- org.xipki.security.shell.Actions.SecurityAction
-
- org.xipki.security.shell.P11Actions.P11SecurityAction
-
- All Implemented Interfaces:
org.apache.karaf.shell.api.action.Action
- Direct Known Subclasses:
P11Actions.DeleteAllObjectsP11,P11Actions.DeleteKeyP11,P11Actions.DeleteObjectsP11,P11Actions.KeyExistsP11,P11Actions.P11KeyGenAction
- Enclosing class:
- P11Actions
public abstract static class P11Actions.P11SecurityAction extends Actions.SecurityAction
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringDEFAULT_P11MODULE_NAMEprotected StringmoduleNameprotected org.xipki.security.pkcs11.P11CryptServiceFactoryp11CryptServiceFactoryprotected StringslotIndex-
Fields inherited from class org.xipki.security.shell.Actions.SecurityAction
securityFactory
-
-
Constructor Summary
Constructors Constructor Description P11SecurityAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.xipki.security.pkcs11.P11KeygetIdentity(String hexId, String label)protected org.xipki.security.pkcs11.P11ModulegetP11Module(String moduleName)protected org.xipki.security.pkcs11.P11SlotgetSlot()-
Methods inherited from class org.xipki.security.shell.Actions.SecurityAction
toUtcTimeyyyyMMddhhmmssZ
-
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
-
-
-
-
Field Detail
-
DEFAULT_P11MODULE_NAME
protected static final String DEFAULT_P11MODULE_NAME
- See Also:
- Constant Field Values
-
slotIndex
protected String slotIndex
-
moduleName
protected String moduleName
-
p11CryptServiceFactory
protected org.xipki.security.pkcs11.P11CryptServiceFactory p11CryptServiceFactory
-
-
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.XiSecurityExceptionorg.xipki.pkcs11.wrapper.TokenExceptionorg.xipki.shell.IllegalCmdParamException
-
getP11Module
protected org.xipki.security.pkcs11.P11Module getP11Module(String moduleName) throws org.xipki.security.XiSecurityException, org.xipki.pkcs11.wrapper.TokenException, org.xipki.shell.IllegalCmdParamException
- Throws:
org.xipki.security.XiSecurityExceptionorg.xipki.pkcs11.wrapper.TokenExceptionorg.xipki.shell.IllegalCmdParamException
-
getIdentity
public org.xipki.security.pkcs11.P11Key getIdentity(String hexId, String label) throws org.xipki.shell.IllegalCmdParamException, org.xipki.security.XiSecurityException, org.xipki.pkcs11.wrapper.TokenException
- Throws:
org.xipki.shell.IllegalCmdParamExceptionorg.xipki.security.XiSecurityExceptionorg.xipki.pkcs11.wrapper.TokenException
-
-