public interface CertificateProvider
| Modifier and Type | Method and Description |
|---|---|
byte[] |
base64Decode(String string) |
String |
base64Encode(byte[] bytes) |
X509Certificate |
generateCertificate(String domainName,
PublicKey publicKey,
PrivateKey privateKey,
KeyPair issuerKeys,
Instant from,
Instant to,
BigInteger serialNumber,
String applicationUri,
String... hostNames) |
X509Certificate |
generateIssuerCert(PublicKey publicKey,
PrivateKey privateKey,
KeyPair issuerKeys,
String domainName,
BigInteger serialNumber,
Instant startDate,
Instant expiryDate) |
Collection<List<?>> |
getSubjectAlternativeNames(X509Certificate cert) |
PrivateKey |
readPrivateKey(InputStream stream,
String password,
String algorithm)
Read a private key from a PEM encoded byte array with a password.
|
void |
writePrivateKey(PrivateKey key,
OutputStream stream,
String password,
String algorithm)
Write a private key to a PEM file with a password.
|
byte[] base64Decode(String string)
String base64Encode(byte[] bytes)
X509Certificate generateCertificate(String domainName, PublicKey publicKey, PrivateKey privateKey, KeyPair issuerKeys, Instant from, Instant to, BigInteger serialNumber, String applicationUri, String... hostNames) throws GeneralSecurityException, IOException
GeneralSecurityExceptionIOExceptionX509Certificate generateIssuerCert(PublicKey publicKey, PrivateKey privateKey, KeyPair issuerKeys, String domainName, BigInteger serialNumber, Instant startDate, Instant expiryDate) throws GeneralSecurityException, IOException
GeneralSecurityExceptionIOExceptionCollection<List<?>> getSubjectAlternativeNames(X509Certificate cert) throws CertificateParsingException
CertificateParsingExceptionPrivateKey readPrivateKey(InputStream stream, String password, String algorithm) throws IOException
Read a private key from a PEM encoded byte array with a password.
stream - the stream (for example FileInputStream) to read from topassword - the password o use for decrypt the keyalgorithm - encryption algorithm to use. For example "AES-128-CBC"IOException - if any.void writePrivateKey(PrivateKey key, OutputStream stream, String password, String algorithm) throws IOException
Write a private key to a PEM file with a password.
key - the private key to savestream - the stream (for example FileOutputStream) to save topassword - the password o use for protecting the keyalgorithm - encryption algorithm to use. For example "AES-128-CBC"IOException - if any.Copyright © 2026. All rights reserved.