public class KeyStoreFactory
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
DEFAULT_CERT_ALIAS |
Default entry alias used when creating KeyStore from *.PEM certificate and private key
|
static char[] |
DEFAULT_PASSWORD |
Default entry password used when creating KeyStore from *.PEM CA certificate
|
static java.lang.String |
DEFAULT_TRUST_CERT_ALIAS |
Default entry alias used when creating KeyStore from *.PEM CA certificate
|
Constructor | Description |
---|---|
KeyStoreFactory() |
Modifier and Type | Method | Description |
---|---|---|
static java.security.KeyStore |
createBCFKSKeyStore(java.io.InputStream bcfksStream,
char[] keyStorePassword) |
Loads Bouncy Caster FIPS Key Store (BCFKS) from file.
|
static java.security.KeyStore |
createJKSKeyStore(java.io.InputStream jksStream,
char[] keyStorePassword) |
Loads Java Key Store (JKS) from file.
|
static java.security.KeyStore |
createMSCAPIMyStore(javax.security.auth.callback.CallbackHandler keyStoreCallbackHandler) |
Creates instance of Windows Certificate Services (WCS) user personal certificates key store
|
static java.security.KeyStore |
createMSCAPIRootStore(javax.security.auth.callback.CallbackHandler keyStoreCallbackHandler) |
Creates instance of Windows Certificate Services (WCS) user trusted root key store
|
static java.security.KeyStore |
createPEMCertKeyStore(java.security.cert.Certificate[] certChain,
java.security.PrivateKey key) |
Creates instance of in-memory collection-based certificate/key key store
|
static java.security.KeyStore |
createPEMTrustKeyStore(java.security.cert.Certificate trustCert) |
Creates instance of in-memory collection-based trust key store
|
static java.security.KeyStore |
createPEMTrustKeyStore(java.security.cert.Certificate[] trustCerts) |
Creates instance of in-memory collection-based trust key store
|
static java.security.KeyStore |
createPKCS11KeyStore(javax.security.auth.callback.CallbackHandler keyStoreCallbackHandler) |
Creates instance of PKCS#11 key store
|
public static final java.lang.String DEFAULT_CERT_ALIAS
public static final java.lang.String DEFAULT_TRUST_CERT_ALIAS
public static final char[] DEFAULT_PASSWORD
public static java.security.KeyStore createPKCS11KeyStore(javax.security.auth.callback.CallbackHandler keyStoreCallbackHandler) throws java.security.GeneralSecurityException, java.io.IOException
keyStoreCallbackHandler
- CallbackHandler instance used to provide password to access
key store.java.security.GeneralSecurityException
- If there are problems accessing key storejava.io.IOException
- If there are problems accessing key storepublic static java.security.KeyStore createMSCAPIRootStore(javax.security.auth.callback.CallbackHandler keyStoreCallbackHandler) throws java.security.GeneralSecurityException, java.io.IOException
keyStoreCallbackHandler
- CallbackHandler instance used to provide password to access
key store.java.security.GeneralSecurityException
- If there are problems accessing key storejava.io.IOException
- If there are problems accessing key storepublic static java.security.KeyStore createMSCAPIMyStore(javax.security.auth.callback.CallbackHandler keyStoreCallbackHandler) throws java.security.GeneralSecurityException, java.io.IOException
keyStoreCallbackHandler
- CallbackHandler instance used to provide password to access
key store.java.security.GeneralSecurityException
- If there are problems accessing key storejava.io.IOException
- If there are problems accessing key storepublic static java.security.KeyStore createPEMTrustKeyStore(java.security.cert.Certificate[] trustCerts) throws java.security.GeneralSecurityException, java.io.IOException
trustCert
- Certificate to be stored as a trusted certificate entryjava.security.GeneralSecurityException
- If there are problems creating key storejava.io.IOException
- If there are problems creating key storepublic static java.security.KeyStore createPEMTrustKeyStore(java.security.cert.Certificate trustCert) throws java.security.GeneralSecurityException, java.io.IOException
trustCert
- Certificate to be stored as a trusted certificate entryjava.security.GeneralSecurityException
- If there are problems creating key storejava.io.IOException
- If there are problems creating key storepublic static java.security.KeyStore createPEMCertKeyStore(java.security.cert.Certificate[] certChain, java.security.PrivateKey key) throws java.security.GeneralSecurityException, java.io.IOException
certChain
- Certificate chain to be stored together with private key in a
"private key" entrykey
- Private Key to be stored together with certificate chain in a
"private key" entryjava.security.GeneralSecurityException
- If there are problems creating key storejava.io.IOException
- If there are problems creating key storepublic static java.security.KeyStore createJKSKeyStore(java.io.InputStream jksStream, char[] keyStorePassword) throws java.security.GeneralSecurityException, java.io.IOException
jksStream
- Stream to load fromkeyStorePassword
- Password to access key storejava.security.GeneralSecurityException
- If there are problems accessing key storejava.io.IOException
- If there are problems loading key storepublic static java.security.KeyStore createBCFKSKeyStore(java.io.InputStream bcfksStream, char[] keyStorePassword) throws java.security.GeneralSecurityException, java.io.IOException
bcfksStream
- Stream to load fromkeyStorePassword
- Password to access key storejava.security.GeneralSecurityException
- If there are problems accessing key storejava.io.IOException
- If there are problems loading key storeSend comments on this topicTechpubs.webadmin@genesys.com.
Document version: 9.0.006.00
Copyright © 2006–2019 Genesys Telecommunications Laboratories, Inc. All rights reserved.