Package org.xipki.ca.server
Class CaInfo
- java.lang.Object
-
- org.xipki.ca.server.CaInfo
-
public class CaInfo extends Object
CA information.- Since:
- 2.0.0
- Author:
- Lijun Liao (xipki)
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.xipki.ca.api.mgmt.entry.CaConfColumngetCaConfColumn()org.xipki.ca.api.mgmt.entry.CaEntrygetCaEntry()org.bouncycastle.asn1.x509.AlgorithmIdentifiergetCaKeyAlgId()StringgetCaKeyspec()org.xipki.ca.api.CaUrisgetCaUris()org.xipki.security.X509CertgetCert()List<org.xipki.security.X509Cert>getCertchain()List<org.bouncycastle.asn1.cmp.CMPCertificate>getCertchainInCmpFormat()org.bouncycastle.asn1.cmp.CMPCertificategetCertInCmpFormat()org.xipki.ca.api.mgmt.CrlControlgetCrlControl()StringgetCrlSignerName()org.xipki.ca.api.mgmt.CtlogControlgetCtlogControl()org.xipki.util.ConfPairsgetExtraControl()StringgetHexSha1OfCert()org.xipki.ca.api.NameIdgetIdent()intgetKeepExpiredCertInDays()List<String>getKeypairGenNames()BigIntegergetMaxFullCrlNumber()org.xipki.util.ValiditygetMaxValidity()longgetNextCrlNumber()InstantgetNoNewCertificateAfter()InstantgetNotAfter()InstantgetNotBefore()intgetNumCrls()intgetPathLenConstraint()intgetPermission()org.xipki.ca.api.PublicCaInfogetPublicCaInfo()org.xipki.security.CertRevocationInfogetRevocationInfo()BigIntegergetSerialNumber()org.xipki.security.ConcurrentContentSignergetSigner(List<org.xipki.security.SignAlgo> algos)org.xipki.ca.api.mgmt.CaStatusgetStatus()StringgetSubject()org.xipki.ca.api.mgmt.ValidityModegetValidityMode()booleaninitSigner(org.xipki.security.SecurityFactory securityFactory)booleanisSaveCert()booleanisSaveKeypair()booleanisSelfSigned()booleanisSignerRequired()BigIntegernextCrlNumber()BigIntegernextSerial()org.xipki.ca.api.mgmt.RevokeSuspendedControlrevokeSuspendedCertsControl()voidsetCrlSignerName(String crlSignerName)voidsetNextCrlNumber(long crlNumber)voidsetPermission(int permission)voidsetRevocationInfo(org.xipki.security.CertRevocationInfo revocationInfo)voidsetStatus(org.xipki.ca.api.mgmt.CaStatus status)StringtoString()StringtoString(boolean verbose)
-
-
-
Constructor Detail
-
CaInfo
public CaInfo(org.xipki.ca.api.mgmt.entry.CaEntry caEntry, org.xipki.ca.api.mgmt.entry.CaConfColumn caConfColumn, CertStore certStore) throws org.xipki.util.exception.OperationException- Throws:
org.xipki.util.exception.OperationException
-
-
Method Detail
-
getCaKeyspec
public String getCaKeyspec()
-
getCaKeyAlgId
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getCaKeyAlgId()
-
getNextCrlNumber
public long getNextCrlNumber()
-
setNextCrlNumber
public void setNextCrlNumber(long crlNumber)
-
getPublicCaInfo
public org.xipki.ca.api.PublicCaInfo getPublicCaInfo()
-
getSubject
public String getSubject()
-
getNotBefore
public Instant getNotBefore()
-
getNotAfter
public Instant getNotAfter()
-
getSerialNumber
public BigInteger getSerialNumber()
-
isSelfSigned
public boolean isSelfSigned()
-
getCertInCmpFormat
public org.bouncycastle.asn1.cmp.CMPCertificate getCertInCmpFormat()
-
getNoNewCertificateAfter
public Instant getNoNewCertificateAfter()
-
getCaEntry
public org.xipki.ca.api.mgmt.entry.CaEntry getCaEntry()
-
getCaConfColumn
public org.xipki.ca.api.mgmt.entry.CaConfColumn getCaConfColumn()
-
getPathLenConstraint
public int getPathLenConstraint()
-
getIdent
public org.xipki.ca.api.NameId getIdent()
-
getCaUris
public org.xipki.ca.api.CaUris getCaUris()
-
getMaxValidity
public org.xipki.util.Validity getMaxValidity()
-
getCert
public org.xipki.security.X509Cert getCert()
-
getCertchain
public List<org.xipki.security.X509Cert> getCertchain()
-
getCertchainInCmpFormat
public List<org.bouncycastle.asn1.cmp.CMPCertificate> getCertchainInCmpFormat()
-
getCrlSignerName
public String getCrlSignerName()
-
setCrlSignerName
public void setCrlSignerName(String crlSignerName)
-
getCrlControl
public org.xipki.ca.api.mgmt.CrlControl getCrlControl()
-
getCtlogControl
public org.xipki.ca.api.mgmt.CtlogControl getCtlogControl()
-
getExtraControl
public org.xipki.util.ConfPairs getExtraControl()
-
getNumCrls
public int getNumCrls()
-
getStatus
public org.xipki.ca.api.mgmt.CaStatus getStatus()
-
setStatus
public void setStatus(org.xipki.ca.api.mgmt.CaStatus status)
-
toString
public String toString(boolean verbose)
-
isSaveCert
public boolean isSaveCert()
-
isSaveKeypair
public boolean isSaveKeypair()
-
getHexSha1OfCert
public String getHexSha1OfCert()
-
getValidityMode
public org.xipki.ca.api.mgmt.ValidityMode getValidityMode()
-
getPermission
public int getPermission()
-
setPermission
public void setPermission(int permission)
-
getRevocationInfo
public org.xipki.security.CertRevocationInfo getRevocationInfo()
-
setRevocationInfo
public void setRevocationInfo(org.xipki.security.CertRevocationInfo revocationInfo)
-
getKeepExpiredCertInDays
public int getKeepExpiredCertInDays()
-
nextSerial
public BigInteger nextSerial()
-
nextCrlNumber
public BigInteger nextCrlNumber() throws org.xipki.util.exception.OperationException
- Throws:
org.xipki.util.exception.OperationException
-
getMaxFullCrlNumber
public BigInteger getMaxFullCrlNumber() throws org.xipki.util.exception.OperationException
- Throws:
org.xipki.util.exception.OperationException
-
getSigner
public org.xipki.security.ConcurrentContentSigner getSigner(List<org.xipki.security.SignAlgo> algos)
-
initSigner
public boolean initSigner(org.xipki.security.SecurityFactory securityFactory) throws org.xipki.security.XiSecurityException- Throws:
org.xipki.security.XiSecurityException
-
isSignerRequired
public boolean isSignerRequired()
-
revokeSuspendedCertsControl
public org.xipki.ca.api.mgmt.RevokeSuspendedControl revokeSuspendedCertsControl()
-
-