public abstract class Certprofile extends Object
| Constructor and Description |
|---|
Certprofile() |
| Modifier and Type | Method and Description |
|---|---|
abstract org.bouncycastle.asn1.x509.SubjectPublicKeyInfo |
checkPublicKey(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo publicKey)
Checks the public key.
|
AuthorityInfoAccessControl |
getAiaControl() |
abstract CertLevel |
getCertLevel() |
Set<ExtKeyUsageControl> |
getExtendedKeyUsages() |
abstract Map<org.bouncycastle.asn1.ASN1ObjectIdentifier,ExtensionControl> |
getExtensionControls() |
abstract ExtensionValues |
getExtensions(Map<org.bouncycastle.asn1.ASN1ObjectIdentifier,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<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 SubjectInfo |
getSubject(org.bouncycastle.asn1.x500.X500Name requestedSubject)
Checks the requested subject.
|
Map<org.bouncycastle.asn1.ASN1ObjectIdentifier,Set<GeneralNameMode>> |
getSubjectInfoAccessModes()
Returns the SubjectInfoAccess modes.
|
abstract CertValidity |
getValidity() |
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.
|
void |
shutdown() |
public boolean isOnlyForRa()
public void shutdown()
public X509CertVersion getVersion()
public boolean includesIssuerAndSerialInAki()
public 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<ExtKeyUsageControl> getExtendedKeyUsages()
public Map<org.bouncycastle.asn1.ASN1ObjectIdentifier,Set<GeneralNameMode>> getSubjectInfoAccessModes()
public abstract Map<org.bouncycastle.asn1.ASN1ObjectIdentifier,ExtensionControl> getExtensionControls()
public abstract void initialize(String data) throws CertprofileException
data - Configuration. Could be null.CertprofileException - if error during the initialization occurs.public abstract CertLevel getCertLevel()
public KeypairGenControl getKeypairGenControl()
public abstract Set<KeyUsageControl> getKeyUsage()
public abstract Integer getPathLenBasicConstraint()
public abstract Date getNotBefore(Date notBefore)
notBefore - Requested NotBefore. Could be null.public abstract CertValidity 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 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,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 © 2018. All rights reserved.