| Modifier and Type | Method and Description |
|---|---|
X509ExtensionBuilder |
addAuthorityKeyIdentifier(CertifiedPublicKey issuer)
Add the authority key identifier extension.
|
X509ExtensionBuilder |
addAuthorityKeyIdentifier(PublicKeyParameters issuer)
Add the authority key identifier extension for self signed certificates.
|
X509ExtensionBuilder |
addBasicConstraints(boolean isCertificateAuthority)
Add the BasicConstraints extension.
|
X509ExtensionBuilder |
addBasicConstraints(int pathLen)
Add the BasicConstraints extension for a CA with a limited path length.
|
X509ExtensionBuilder |
addExtendedKeyUsage(boolean critical,
ExtendedKeyUsages usages)
Add a extended key usage extensions.
|
X509ExtensionBuilder |
addExtension(String oid,
boolean critical,
byte[] value)
Add an extension with the given oid and the passed in value to be included in the OCTET STRING associated with
the extension.
|
X509ExtensionBuilder |
addExtensions(X509Extensions extensionSet)
Add all extension in an existing extension set to the currently built extension set.
|
X509ExtensionBuilder |
addIssuerAltName(X509GeneralName[] names)
Add the issuer alternative names extension.
|
X509ExtensionBuilder |
addKeyUsage(boolean critical,
EnumSet<KeyUsage> usages)
Add a key usage extensions.
|
X509ExtensionBuilder |
addKeyUsage(EnumSet<KeyUsage> usages)
Add a critical key usage extensions.
|
X509ExtensionBuilder |
addSubjectAltName(boolean critical,
X509GeneralName[] names)
Add the subject alternative names extension.
|
X509ExtensionBuilder |
addSubjectKeyIdentifier(PublicKeyParameters subject)
Add the subject key identifier extension.
|
X509Extensions |
build() |
boolean |
isEmpty() |
X509ExtensionBuilder addExtension(String oid, boolean critical, byte[] value) throws IOException
oid - OID for the extension.critical - true if critical, false otherwise.value - the ASN.1 object to be included in the extension.IOException - on encoding error.X509ExtensionBuilder addExtensions(X509Extensions extensionSet) throws IOException
extensionSet - the extension set to copy.IOException - on encoding error.X509Extensions build()
boolean isEmpty()
X509ExtensionBuilder addBasicConstraints(boolean isCertificateAuthority)
isCertificateAuthority - should be true for a CA certificate.X509ExtensionBuilder addBasicConstraints(int pathLen)
pathLen - the maximum path len for this CA.X509ExtensionBuilder addKeyUsage(EnumSet<KeyUsage> usages)
usages - a set of key usage.X509ExtensionBuilder addKeyUsage(boolean critical, EnumSet<KeyUsage> usages)
critical - should be true for a critical extension, false otherwise.usages - a set of key usage.X509ExtensionBuilder addExtendedKeyUsage(boolean critical, ExtendedKeyUsages usages)
critical - should be true for a critical extension, false otherwise.usages - a set of extended key usage.X509ExtensionBuilder addAuthorityKeyIdentifier(CertifiedPublicKey issuer)
issuer - the certifierd public key of the issuer.X509ExtensionBuilder addAuthorityKeyIdentifier(PublicKeyParameters issuer)
issuer - the public key parameters of the subject.X509ExtensionBuilder addSubjectKeyIdentifier(PublicKeyParameters subject)
subject - the public key parameters of the subject.X509ExtensionBuilder addSubjectAltName(boolean critical, X509GeneralName[] names)
critical - should be true if the subject field is empty, false otherwise.names - a collection of X.509 general name.X509ExtensionBuilder addIssuerAltName(X509GeneralName[] names)
names - a collection of X.509 general name.Copyright © 2004–2014 XWiki. All rights reserved.