public abstract class BaseCertprofile extends Certprofile
Certprofile.AuthorityInfoAccessControl, Certprofile.CertDomain, Certprofile.CertLevel, Certprofile.CrlDistributionPointsControl, Certprofile.ExtensionControl, Certprofile.ExtKeyUsageControl, Certprofile.GeneralNameMode, Certprofile.GeneralNameTag, Certprofile.KeyUsageControl, Certprofile.RdnControl, Certprofile.StringType, Certprofile.SubjectControl, Certprofile.SubjectInfo, Certprofile.X509CertVersion| Modifier | Constructor and Description |
|---|---|
protected |
BaseCertprofile() |
| Modifier and Type | Method and Description |
|---|---|
org.bouncycastle.asn1.x509.SubjectPublicKeyInfo |
checkPublicKey(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo publicKey)
Checks the public key.
|
static org.bouncycastle.asn1.x509.GeneralName |
createGeneralName(org.bouncycastle.asn1.x509.GeneralName requestedName,
Set<Certprofile.GeneralNameMode> modes)
Creates GeneralName.
|
protected org.bouncycastle.asn1.x500.RDN |
createSubjectRdn(String text,
org.bouncycastle.asn1.ASN1ObjectIdentifier type,
Certprofile.RdnControl option,
int index) |
protected void |
fixRdnControl(Certprofile.RdnControl rdnControl) |
Certprofile.AuthorityInfoAccessControl |
getAiaControl() |
Certprofile.CertDomain |
getCertDomain() |
Certprofile.CrlDistributionPointsControl |
getCrlDpControl() |
Certprofile.CrlDistributionPointsControl |
getFreshestCrlControl() |
abstract Map<org.bouncycastle.asn1.ASN1ObjectIdentifier,KeyParametersOption> |
getKeyAlgorithms() |
Date |
getNotBefore(Date requestedNotBefore)
Checks and gets the granted NotBefore.
|
Integer |
getPathLenBasicConstraint() |
Certprofile.SubjectInfo |
getSubject(org.bouncycastle.asn1.x500.X500Name requestedSubject)
Checks the requested subject.
|
boolean |
incSerialNumberIfSubjectExists() |
protected abstract void |
verifySubjectDnOccurence(org.bouncycastle.asn1.x500.X500Name requestedSubject) |
close, getCertificatePolicies, getCertLevel, getExtendedKeyUsages, getExtensionControls, getExtensions, getKeypairGenControl, getKeyUsage, getMaxCertSize, getSignatureAlgorithms, getSubjectAltNameModes, getSubjectControl, getSubjectInfoAccessModes, getValidity, getVersion, incSerialNumber, initialize, isOnlyForRa, isSerialNumberInReqPermitted, useIssuerAndSerialInAkipublic abstract Map<org.bouncycastle.asn1.ASN1ObjectIdentifier,KeyParametersOption> getKeyAlgorithms()
getKeyAlgorithms in class Certprofilepublic Certprofile.CertDomain getCertDomain()
getCertDomain in class Certprofilepublic Integer getPathLenBasicConstraint()
getPathLenBasicConstraint in class Certprofilepublic Certprofile.AuthorityInfoAccessControl getAiaControl()
getAiaControl in class Certprofilepublic Certprofile.CrlDistributionPointsControl getCrlDpControl()
getCrlDpControl in class Certprofilepublic Certprofile.CrlDistributionPointsControl getFreshestCrlControl()
getFreshestCrlControl in class Certprofilepublic Date getNotBefore(Date requestedNotBefore)
CertprofilegetNotBefore in class CertprofilerequestedNotBefore - Requested NotBefore. Could be null.public Certprofile.SubjectInfo getSubject(org.bouncycastle.asn1.x500.X500Name requestedSubject) throws CertprofileException, BadCertTemplateException
CertprofilegetSubject in class CertprofilerequestedSubject - Requested subject. Must not be null.CertprofileException - if error occurs.BadCertTemplateException - if the subject is not permitted.public boolean incSerialNumberIfSubjectExists()
incSerialNumberIfSubjectExists in class Certprofilepublic org.bouncycastle.asn1.x509.SubjectPublicKeyInfo checkPublicKey(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo publicKey)
throws CertprofileException,
BadCertTemplateException
CertprofilecheckPublicKey in class CertprofilepublicKey - Requested public key. Must not be null.CertprofileException - if error occurs.BadCertTemplateException - if the publicKey does not have correct format or is not permitted.protected abstract void verifySubjectDnOccurence(org.bouncycastle.asn1.x500.X500Name requestedSubject)
throws BadCertTemplateException
BadCertTemplateExceptionprotected org.bouncycastle.asn1.x500.RDN createSubjectRdn(String text, org.bouncycastle.asn1.ASN1ObjectIdentifier type, Certprofile.RdnControl option, int index) throws BadCertTemplateException
BadCertTemplateExceptionprotected void fixRdnControl(Certprofile.RdnControl rdnControl) throws CertprofileException
CertprofileExceptionpublic static org.bouncycastle.asn1.x509.GeneralName createGeneralName(org.bouncycastle.asn1.x509.GeneralName requestedName,
Set<Certprofile.GeneralNameMode> modes)
throws BadCertTemplateException
requestedName - Requested name. Must not be null.modes - Modes to be considered. Must not be null.BadCertTemplateException - If requestedName is invalid or contains entries which are not allowed in the modes.Copyright © 2019. All rights reserved.