public class KeyStoreConfig extends Object
| Modifier and Type | Field and Description |
|---|---|
String |
alias |
KeyStore |
keyStore |
String |
keystorePassword |
String |
privatekeyPassword |
| Constructor and Description |
|---|
KeyStoreConfig(KeyStore keyStore,
String alias,
String keystorePassword,
String privatekeyPassword) |
| Modifier and Type | Method and Description |
|---|---|
static KeyStoreConfig |
fromJavaKeyStore(InputStream javaKeyStore,
String alias,
String keyStorePassword,
String privatekeyPassword)
Create a
KeyStoreConfig from a Java Key Store containing an Organization Certificate (Virksomhetssertifikat). |
static KeyStoreConfig |
fromKeyStore(InputStream javaKeyStore,
String alias,
String keyStorePassword,
String privatekeyPassword)
Deprecated.
as of 4.3, please use
fromJavaKeyStore(InputStream, String, String, String)(same functionality, different name), or load directly from organization
certificate using {fromOrganizationCertificate(InputStream, String)} |
static KeyStoreConfig |
fromOrganizationCertificate(InputStream organizationCertificateStream,
String privatekeyPassword)
Create a
KeyStoreConfig from an Organization Certificate (Virksomhetssertifikat). |
X509Certificate |
getCertificate() |
Certificate[] |
getCertificateChain() |
PrivateKey |
getPrivateKey() |
public final KeyStore keyStore
public final String alias
public final String keystorePassword
public final String privatekeyPassword
public Certificate[] getCertificateChain()
public X509Certificate getCertificate()
public PrivateKey getPrivateKey()
@Deprecated public static KeyStoreConfig fromKeyStore(InputStream javaKeyStore, String alias, String keyStorePassword, String privatekeyPassword)
fromJavaKeyStore(InputStream, String, String, String)(same functionality, different name), or load directly from organization
certificate using {fromOrganizationCertificate(InputStream, String)}public static KeyStoreConfig fromJavaKeyStore(InputStream javaKeyStore, String alias, String keyStorePassword, String privatekeyPassword)
KeyStoreConfig from a Java Key Store containing an Organization Certificate (Virksomhetssertifikat).javaKeyStore - A stream of the certificate in JCEKS format.alias - The alias of the organization certificate in the key store.keyStorePassword - The password for the key store itself.privatekeyPassword - The password for the private key of the organization certificate within the key store.public static KeyStoreConfig fromOrganizationCertificate(InputStream organizationCertificateStream, String privatekeyPassword)
KeyStoreConfig from an Organization Certificate (Virksomhetssertifikat).organizationCertificateStream - A stream of the certificate in PKCS12 format. The file should have .p12-file ending.privatekeyPassword - The password for the private key of the organization certificate.Copyright © 2019 Digipost. All rights reserved.