public class KeyStoreHelper
extends java.lang.Object
KeyStore class utility helpers| Constructor and Description |
|---|
KeyStoreHelper() |
| Modifier and Type | Method and Description |
|---|---|
static java.security.KeyStore |
getInstance(java.lang.String type)
Deprecated.
use other methods from this class.
|
static java.security.KeyStore |
getInstanceForCredential(java.lang.String type)
Creates an instance of KeyStore which should be used for loading/storing credentials.
|
static java.security.KeyStore |
getInstanceForTrust(java.lang.String type)
Creates an instance of KeyStore which should be used as a truststore,
using our custom logic for choosing a provider: BC for PKCS12 and default for others.
|
@Deprecated
public static java.security.KeyStore getInstance(java.lang.String type)
throws java.security.KeyStoreException
type - keystore type, usually PKCS12 or JKSjava.security.KeyStoreException - if there is no provider supporting keystore typepublic static java.security.KeyStore getInstanceForTrust(java.lang.String type)
throws java.security.KeyStoreException
type - keystore type, usually PKCS12 or JKSjava.security.KeyStoreException - if there is no provider supporting keystore typepublic static java.security.KeyStore getInstanceForCredential(java.lang.String type)
throws java.security.KeyStoreException
type - keystore type, usually PKCS12 or JKSjava.security.KeyStoreException - if there is no provider supporting keystore type