public abstract class Certprofile extends Object implements Closeable
| Modifier and Type | Class and Description |
|---|---|
static class |
Certprofile.AuthorityInfoAccessControl |
static class |
Certprofile.CertDomain |
static class |
Certprofile.CertLevel |
static class |
Certprofile.CrlDistributionPointsControl |
static class |
Certprofile.ExtensionControl |
static class |
Certprofile.ExtKeyUsageControl |
static class |
Certprofile.GeneralNameMode |
static class |
Certprofile.GeneralNameTag |
static class |
Certprofile.KeyUsageControl |
static class |
Certprofile.RdnControl |
static class |
Certprofile.StringType |
static class |
Certprofile.SubjectControl |
static class |
Certprofile.SubjectInfo |
static class |
Certprofile.X509CertVersion |
| Modifier | Constructor and Description |
|---|---|
protected |
Certprofile() |
| Modifier and Type | Method and Description |
|---|---|
abstract org.bouncycastle.asn1.x509.SubjectPublicKeyInfo |
checkPublicKey(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo publicKey)
Checks the public key.
|
void |
close() |
BigInteger |
generateSerialNumber(org.bouncycastle.asn1.x500.X500Name caSubject,
org.bouncycastle.asn1.x509.SubjectPublicKeyInfo caPublicKeyInfo,
org.bouncycastle.asn1.x500.X500Name requestSubject,
org.bouncycastle.asn1.x509.SubjectPublicKeyInfo publicKeyInfo,
org.xipki.util.ConfPairs caExtraControl)
Generate Serial Number of the certificate
|
abstract Certprofile.AuthorityInfoAccessControl |
getAiaControl() |
abstract Certprofile.CertDomain |
getCertDomain() |
abstract org.bouncycastle.asn1.x509.CertificatePolicies |
getCertificatePolicies() |
abstract Certprofile.CertLevel |
getCertLevel() |
abstract Certprofile.CrlDistributionPointsControl |
getCrlDpControl() |
Set<Certprofile.ExtKeyUsageControl> |
getExtendedKeyUsages() |
abstract Map<org.bouncycastle.asn1.ASN1ObjectIdentifier,Certprofile.ExtensionControl> |
getExtensionControls() |
abstract ExtensionValues |
getExtensions(Map<org.bouncycastle.asn1.ASN1ObjectIdentifier,Certprofile.ExtensionControl> extensionControls,
org.bouncycastle.asn1.x500.X500Name requestedSubject,
org.bouncycastle.asn1.x500.X500Name grantedSubject,
Map<org.bouncycastle.asn1.ASN1ObjectIdentifier,org.bouncycastle.asn1.x509.Extension> requestedExtensions,
Date notBefore,
Date notAfter,
PublicCaInfo caInfo)
Checks the requested extensions and returns the canonicalized ones.
|
abstract Certprofile.CrlDistributionPointsControl |
getFreshestCrlControl() |
abstract Map<org.bouncycastle.asn1.ASN1ObjectIdentifier,KeyParametersOption> |
getKeyAlgorithms() |
KeypairGenControl |
getKeypairGenControl() |
abstract Set<Certprofile.KeyUsageControl> |
getKeyUsage() |
int |
getMaxCertSize()
Returns maximal size in bytes of the certificate.
|
abstract Date |
getNotBefore(Date notBefore)
Checks and gets the granted NotBefore.
|
abstract Integer |
getPathLenBasicConstraint() |
String |
getSerialNumberMode()
How to generate the certificate's serial number.
|
List<org.xipki.security.SignAlgo> |
getSignatureAlgorithms() |
abstract Certprofile.SubjectInfo |
getSubject(org.bouncycastle.asn1.x500.X500Name requestedSubject)
Checks the requested subject.
|
Certprofile.SubjectInfo |
getSubject(org.bouncycastle.asn1.x500.X500Name requestedSubject,
org.bouncycastle.asn1.x509.SubjectPublicKeyInfo publicKeyInfo)
Checks the requested subject.
|
abstract Set<Certprofile.GeneralNameMode> |
getSubjectAltNameModes() |
abstract Certprofile.SubjectControl |
getSubjectControl()
Get the SubjectControl.
|
Map<org.bouncycastle.asn1.ASN1ObjectIdentifier,Set<Certprofile.GeneralNameMode>> |
getSubjectInfoAccessModes()
Returns the SubjectInfoAccess modes.
|
org.bouncycastle.asn1.x509.SubjectKeyIdentifier |
getSubjectKeyIdentifier(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo subjectPublicKeyInfo) |
protected SubjectKeyIdentifierControl |
getSubjectKeyIdentifierControl() |
abstract org.xipki.util.Validity |
getValidity() |
Certprofile.X509CertVersion |
getVersion() |
String |
incSerialNumber(String currentSerialNumber)
Increments the SerialNumber attribute in the subject.
|
abstract void |
initialize(String data)
Initializes this object.
|
boolean |
isOnlyForRa() |
boolean |
isSerialNumberInReqPermitted()
Whether the subject attribute serialNumber in request is permitted.
|
boolean |
useIssuerAndSerialInAki()
Returns whether use subject and serial number of the issuer certificate in the
AuthorityKeyIdentifier extension.
|
public boolean isOnlyForRa()
public void close()
close in interface Closeableclose in interface AutoCloseablepublic Certprofile.X509CertVersion getVersion()
public List<org.xipki.security.SignAlgo> getSignatureAlgorithms()
public boolean useIssuerAndSerialInAki()
public abstract Certprofile.SubjectControl getSubjectControl()
null.public abstract Certprofile.AuthorityInfoAccessControl getAiaControl()
public abstract Certprofile.CrlDistributionPointsControl getCrlDpControl()
public abstract Certprofile.CrlDistributionPointsControl getFreshestCrlControl()
public abstract org.bouncycastle.asn1.x509.CertificatePolicies getCertificatePolicies()
public abstract Set<Certprofile.GeneralNameMode> getSubjectAltNameModes()
public String incSerialNumber(String currentSerialNumber) throws BadFormatException
currentSerialNumber - Current serial number. Could be null.BadFormatException - If the currentSerialNumber is not a non-negative decimal long.public boolean isSerialNumberInReqPermitted()
public Set<Certprofile.ExtKeyUsageControl> getExtendedKeyUsages()
public Map<org.bouncycastle.asn1.ASN1ObjectIdentifier,Set<Certprofile.GeneralNameMode>> getSubjectInfoAccessModes()
public abstract Map<org.bouncycastle.asn1.ASN1ObjectIdentifier,Certprofile.ExtensionControl> getExtensionControls()
public abstract void initialize(String data) throws CertprofileException
data - Configuration. Could be null.CertprofileException - if error during the initialization occurs.public abstract Certprofile.CertLevel getCertLevel()
public abstract Certprofile.CertDomain getCertDomain()
public KeypairGenControl getKeypairGenControl()
public abstract Map<org.bouncycastle.asn1.ASN1ObjectIdentifier,KeyParametersOption> getKeyAlgorithms()
public abstract Set<Certprofile.KeyUsageControl> getKeyUsage()
public abstract Integer getPathLenBasicConstraint()
public abstract Date getNotBefore(Date notBefore)
notBefore - Requested NotBefore. Could be null.public abstract org.xipki.util.Validity getValidity()
public abstract org.bouncycastle.asn1.x509.SubjectPublicKeyInfo checkPublicKey(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo publicKey)
throws CertprofileException,
BadCertTemplateException
publicKey - Requested public key. Must not be null.BadCertTemplateException - if the publicKey does not have correct format or is not permitted.CertprofileException - if error occurs.public abstract Certprofile.SubjectInfo getSubject(org.bouncycastle.asn1.x500.X500Name requestedSubject) throws CertprofileException, BadCertTemplateException
requestedSubject - Requested subject. Must not be null.BadCertTemplateException - if the subject is not permitted.CertprofileException - if error occurs.public Certprofile.SubjectInfo getSubject(org.bouncycastle.asn1.x500.X500Name requestedSubject, org.bouncycastle.asn1.x509.SubjectPublicKeyInfo publicKeyInfo) throws CertprofileException, BadCertTemplateException
requestedSubject - Requested subject. Must not be null.publicKeyInfo - SubjectPublicKeyInfo of the certificate.BadCertTemplateException - if the subject is not permitted.CertprofileException - if error occurs.public abstract ExtensionValues getExtensions(Map<org.bouncycastle.asn1.ASN1ObjectIdentifier,Certprofile.ExtensionControl> extensionControls, org.bouncycastle.asn1.x500.X500Name requestedSubject, org.bouncycastle.asn1.x500.X500Name grantedSubject, Map<org.bouncycastle.asn1.ASN1ObjectIdentifier,org.bouncycastle.asn1.x509.Extension> requestedExtensions, Date notBefore, Date notAfter, PublicCaInfo caInfo) throws CertprofileException, BadCertTemplateException
extensionControls - Extension controls.requestedSubject - Requested subject. Must not be null.grantedSubject - Granted subject. Must not be null.requestedExtensions - Requested extensions. Could be null.notBefore - NotBefore. Must not be null.notAfter - NotAfter. Must not be null.caInfo - CA information.BadCertTemplateException - if at least one of extension is not permitted.CertprofileException - if error occurs.public int getMaxCertSize()
public org.bouncycastle.asn1.x509.SubjectKeyIdentifier getSubjectKeyIdentifier(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo subjectPublicKeyInfo)
throws CertprofileException
CertprofileExceptionprotected SubjectKeyIdentifierControl getSubjectKeyIdentifierControl()
public String getSerialNumberMode()
generateSerialNumber(X500Name, SubjectPublicKeyInfo, X500Name,
SubjectPublicKeyInfo, ConfPairs) will
be called to generate the serial number. The list is case-sensitive.public BigInteger generateSerialNumber(org.bouncycastle.asn1.x500.X500Name caSubject, org.bouncycastle.asn1.x509.SubjectPublicKeyInfo caPublicKeyInfo, org.bouncycastle.asn1.x500.X500Name requestSubject, org.bouncycastle.asn1.x509.SubjectPublicKeyInfo publicKeyInfo, org.xipki.util.ConfPairs caExtraControl) throws CertprofileException
caSubject - CA's subjectcaPublicKeyInfo - CA's public key info.requestSubject - requested subject.publicKeyInfo - requested public key info.caExtraControl - Key-value pairs of CA's extraControl.CertprofileExceptionCopyright © 2021. All rights reserved.