public class FluentKeySigner
extends java.lang.Object
Constructor and Description |
---|
FluentKeySigner(java.lang.String issuerCommonName) |
FluentKeySigner(java.lang.String issuerCommonName,
java.security.KeyPair issuerKey) |
FluentKeySigner(javax.security.auth.x500.X500Principal issuerPrincipal,
java.security.KeyPair issuerKey) |
FluentKeySigner(java.security.cert.X509Certificate caCert,
java.security.KeyPair caKey) |
Modifier and Type | Method and Description |
---|---|
FluentKeySigner |
authorityCertificate(java.security.cert.X509Certificate certificate) |
FluentKeySigner |
authorityKeyIdentifier(org.bouncycastle.asn1.x509.AuthorityKeyIdentifier authorityKeyIdentifier) |
java.security.cert.X509Certificate |
getAuthorityCertificate() |
java.lang.String |
getCommonName() |
java.security.KeyPair |
getKey() |
javax.security.auth.x500.X500Principal |
getPrincipal() |
java.security.cert.X509Certificate |
newCertificateFor(java.lang.String commonName,
java.security.KeyPair key) |
java.security.cert.X509Certificate |
newCertificateFor(java.lang.String commonName,
java.security.PublicKey key) |
java.security.cert.X509Certificate |
newCertificateFor(javax.security.auth.x500.X500Principal subject,
java.security.PublicKey keyToCertify) |
FluentKeySigner |
selfsign() |
FluentKeySigner |
serialNumber(java.math.BigInteger serialNumber)
use a hard-coded serial number; or make one up, if null
|
FluentKeySigner |
signatureAlgorithm(java.lang.String signatureAlgorithm) |
FluentKeySigner |
validForYears(long years) |
FluentKeySigner |
validFrom(java.util.Date d) |
FluentKeySigner |
validFromDaysAgo(long days) |
FluentKeySigner |
validUntil(java.util.Date d) |
public FluentKeySigner(javax.security.auth.x500.X500Principal issuerPrincipal, java.security.KeyPair issuerKey)
public FluentKeySigner(java.lang.String issuerCommonName, java.security.KeyPair issuerKey)
public FluentKeySigner(java.lang.String issuerCommonName)
public FluentKeySigner(java.security.cert.X509Certificate caCert, java.security.KeyPair caKey)
public java.security.KeyPair getKey()
public javax.security.auth.x500.X500Principal getPrincipal()
public java.lang.String getCommonName()
public java.security.cert.X509Certificate getAuthorityCertificate()
public FluentKeySigner validFromDaysAgo(long days)
public FluentKeySigner validFrom(java.util.Date d)
public FluentKeySigner validForYears(long years)
public FluentKeySigner validUntil(java.util.Date d)
public FluentKeySigner serialNumber(java.math.BigInteger serialNumber)
public FluentKeySigner signatureAlgorithm(java.lang.String signatureAlgorithm)
public FluentKeySigner authorityCertificate(java.security.cert.X509Certificate certificate)
public FluentKeySigner authorityKeyIdentifier(org.bouncycastle.asn1.x509.AuthorityKeyIdentifier authorityKeyIdentifier)
public FluentKeySigner selfsign()
public java.security.cert.X509Certificate newCertificateFor(javax.security.auth.x500.X500Principal subject, java.security.PublicKey keyToCertify)
public java.security.cert.X509Certificate newCertificateFor(java.lang.String commonName, java.security.PublicKey key)
public java.security.cert.X509Certificate newCertificateFor(java.lang.String commonName, java.security.KeyPair key)