public abstract class BaseCertprofile extends Certprofile
Certprofile.AuthorityInfoAccessControl, Certprofile.CertLevel, 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) |
abstract Map<org.bouncycastle.asn1.ASN1ObjectIdentifier,KeyParametersOption> |
getKeyAlgorithms() |
Date |
getNotBefore(Date requestedNotBefore)
Checks and gets the granted NotBefore.
|
Certprofile.SubjectInfo |
getSubject(org.bouncycastle.asn1.x500.X500Name requestedSubject)
Checks the requested subject.
|
protected abstract Certprofile.SubjectControl |
getSubjectControl()
Get the SubjectControl.
|
boolean |
incSerialNumberIfSubjectExists() |
protected abstract void |
verifySubjectDnOccurence(org.bouncycastle.asn1.x500.X500Name requestedSubject) |
close, getAiaControl, getCertLevel, getExtendedKeyUsages, getExtensionControls, getExtensions, getKeypairGenControl, getKeyUsage, getMaxCertSize, getPathLenBasicConstraint, getSignatureAlgorithms, getSubjectInfoAccessModes, getValidity, getVersion, includesIssuerAndSerialInAki, incSerialNumber, initialize, isOnlyForRa, isSerialNumberInReqPermittedpublic abstract Map<org.bouncycastle.asn1.ASN1ObjectIdentifier,KeyParametersOption> getKeyAlgorithms()
protected abstract Certprofile.SubjectControl getSubjectControl()
null.public 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.BadCertTemplateException - If the publicKey does not have correct format or is not permitted.CertprofileExceptionprotected 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.