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 java.lang.Stringoutformprotected java.util.List<java.lang.String>subjectAltNamesprotected java.util.List<java.lang.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 java.lang.Objectexecute0()protected java.util.List<org.bouncycastle.asn1.x509.Extension>getAdditionalExtensions()protected java.util.List<java.lang.String>getAdditionalNeedExtensionTypes()protected java.util.List<java.lang.String>getAdditionalWantExtensionTypes()protected java.util.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(java.lang.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 java.lang.ExceptionGets the signer for the give signatureAlgoControl.- Returns:
- the signer
- Throws:
java.lang.Exception- If getting signer failed.
-
getPeerCertificates
protected java.util.List<org.xipki.security.X509Cert> getPeerCertificates() throws java.security.cert.CertificateException, java.io.IOException- Throws:
java.security.cert.CertificateExceptionjava.io.IOException
-
execute0
protected java.lang.Object execute0() throws java.lang.Exception- Specified by:
execute0in classorg.xipki.shell.XiAction- Throws:
java.lang.Exception
-
getSubject
protected org.bouncycastle.asn1.x500.X500Name getSubject(java.lang.String subjectText)
-
getAdditionalNeedExtensionTypes
protected java.util.List<java.lang.String> getAdditionalNeedExtensionTypes()
-
getAdditionalWantExtensionTypes
protected java.util.List<java.lang.String> getAdditionalWantExtensionTypes()
-
getAdditionalExtensions
protected java.util.List<org.bouncycastle.asn1.x509.Extension> getAdditionalExtensions() throws org.xipki.security.BadInputException- Throws:
org.xipki.security.BadInputException
-
-