Package org.xipki.security.shell
Class Actions.BaseCsrGenAction
- java.lang.Object
-
- org.xipki.shell.XiAction
-
- org.xipki.security.shell.Actions.SecurityAction
-
- org.xipki.security.shell.Actions.BaseCsrGenAction
-
- All Implemented Interfaces:
org.apache.karaf.shell.api.action.Action
- Direct Known Subclasses:
Actions.CsrGenAction,JceActions.CsrJce
- Enclosing class:
- Actions
public abstract static class Actions.BaseCsrGenAction extends Actions.SecurityAction
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringoutformprotected List<String>subjectAltNamesprotected List<String>subjectInfoAccesses-
Fields inherited from class org.xipki.security.shell.Actions.SecurityAction
securityFactory
-
-
Constructor Summary
Constructors Constructor Description BaseCsrGenAction()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected Objectexecute0()protected List<org.bouncycastle.asn1.x509.Extension>getAdditionalExtensions()protected List<String>getAdditionalNeedExtensionTypes()protected List<String>getAdditionalWantExtensionTypes()protected List<org.xipki.security.X509Cert>getPeerCertificates()protected abstract org.xipki.security.ConcurrentContentSignergetSigner()Gets the signer for the give signatureAlgoControl.protected org.bouncycastle.asn1.x500.X500NamegetSubject(String subjectText)-
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, expandFilepath, expandFilepath, isBlank, isEmpty, isEnabled, isNotBlank, isNotEmpty, isTrue, print, println, readPassword, readPassword, readPasswordIfNotSet, readPasswordIfNotSet, readPrompt, resolvePassword, save, save, saveVerbose, saveVerbose, split, toBigInt, toBigInt
-
-
-
-
Method Detail
-
getSigner
protected abstract org.xipki.security.ConcurrentContentSigner getSigner() throws ExceptionGets the signer for the give signatureAlgoControl.- Returns:
- the signer
- Throws:
Exception- If getting signer failed.
-
getPeerCertificates
protected List<org.xipki.security.X509Cert> getPeerCertificates() throws CertificateException, IOException
- Throws:
CertificateExceptionIOException
-
execute0
protected Object execute0() throws Exception
- Specified by:
execute0in classorg.xipki.shell.XiAction- Throws:
Exception
-
getSubject
protected org.bouncycastle.asn1.x500.X500Name getSubject(String subjectText)
-
getAdditionalExtensions
protected List<org.bouncycastle.asn1.x509.Extension> getAdditionalExtensions() throws org.xipki.security.BadInputException
- Throws:
org.xipki.security.BadInputException
-
-