public class KeyStoreServiceImplBaseFunctions extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
addToKeyStore(KeyStore ks,
KeyEntry keyEntry)
Put the given entry into a key store.
|
static void |
addToKeyStore(KeyStore ks,
SecretKeyEntry secretKeyData) |
static void |
fillKeyStore(KeyStore ks,
Collection<KeyEntry> keyEntries)
Put the given entries into a key store.
|
static KeyStore |
loadKeyStore(byte[] data,
String storeId,
KeyStoreType keyStoreType,
ReadStorePassword readStorePassword) |
static KeyStore |
loadKeyStore(InputStream in,
String storeId,
KeyStoreType storeType,
ReadStorePassword readStorePassword)
Loads a key store.
|
static KeyStore |
newKeyStore(KeyStoreType keyStoreType)
Create an initializes a new key store.
|
static byte[] |
toByteArray(KeyStore keystore,
String storeId,
ReadStorePassword readStorePassword)
Write this key store into a byte array
|
public static KeyStore newKeyStore(KeyStoreType keyStoreType)
keyStoreType - storeTypepublic static byte[] toByteArray(KeyStore keystore, String storeId, ReadStorePassword readStorePassword)
keystore - keystorestoreId - storeIdpublic static KeyStore loadKeyStore(InputStream in, String storeId, KeyStoreType storeType, ReadStorePassword readStorePassword)
in - : the inputStream location which to read the keystorestoreId - : The store id. This is passed to the callback handler to identify the requested password record.storeType - : the type of this key store. f null, the defaut java keystore type is used.public static KeyStore loadKeyStore(byte[] data, String storeId, KeyStoreType keyStoreType, ReadStorePassword readStorePassword)
data - : the byte array containing key store data.storeId - : The store id. This is passed to the callback handler to identify the requested password record.keyStoreType - : the type of this key store. f null, the defaut java keystore type is used.public static void fillKeyStore(KeyStore ks, Collection<KeyEntry> keyEntries)
ks - kskeyEntries - keyEntriespublic static void addToKeyStore(KeyStore ks, KeyEntry keyEntry)
ks - kskeyEntry - keyEntry to be addedpublic static void addToKeyStore(KeyStore ks, SecretKeyEntry secretKeyData)
Copyright © 2019. All rights reserved.