public abstract class Certprofile extends Object implements Closeable
| Modifier and Type | Class and Description |
|---|---|
static class |
Certprofile.AuthorityInfoAccessControl |
static class |
Certprofile.CertLevel |
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() |
Certprofile.AuthorityInfoAccessControl |
getAiaControl() |
abstract Certprofile.CertLevel |
getCertLevel() |
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,
org.bouncycastle.asn1.x509.Extensions requestedExtensions,
Date notBefore,
Date notAfter,
PublicCaInfo caInfo)
Checks the requested extensions and returns the canonicalized ones.
|
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() |
List<String> |
getSignatureAlgorithms() |
abstract Certprofile.SubjectInfo |
getSubject(org.bouncycastle.asn1.x500.X500Name requestedSubject)
Checks the requested subject.
|
Map<org.bouncycastle.asn1.ASN1ObjectIdentifier,Set<Certprofile.GeneralNameMode>> |
getSubjectInfoAccessModes()
Returns the SubjectInfoAccess modes.
|
abstract org.xipki.util.Validity |
getValidity() |
Certprofile.X509CertVersion |
getVersion() |
boolean |
includesIssuerAndSerialInAki()
Returns whether include subject and serial number of the issuer certificate in the
AuthorityKeyIdentifier extension.
|
String |
incSerialNumber(String currentSerialNumber)
Increments the SerialNumber attribute in the subject.
|
abstract boolean |
incSerialNumberIfSubjectExists() |
abstract void |
initialize(String data)
Initializes this object.
|
boolean |
isOnlyForRa() |
boolean |
isSerialNumberInReqPermitted()
Whether the subject attribute serialNumber in request is permitted.
|
public boolean isOnlyForRa()
public void close()
close in interface Closeableclose in interface AutoCloseablepublic Certprofile.X509CertVersion getVersion()
public boolean includesIssuerAndSerialInAki()
public Certprofile.AuthorityInfoAccessControl getAiaControl()
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 KeypairGenControl getKeypairGenControl()
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.CertprofileExceptionpublic 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 abstract ExtensionValues getExtensions(Map<org.bouncycastle.asn1.ASN1ObjectIdentifier,Certprofile.ExtensionControl> extensionControls, org.bouncycastle.asn1.x500.X500Name requestedSubject, org.bouncycastle.asn1.x500.X500Name grantedSubject, org.bouncycastle.asn1.x509.Extensions requestedExtensions, Date notBefore, Date notAfter, PublicCaInfo caInfo) throws CertprofileException, BadCertTemplateException
extensionControls - Extension controls. Must not be null.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 abstract boolean incSerialNumberIfSubjectExists()
public int getMaxCertSize()
Copyright © 2019. All rights reserved.