public class KeyStoreServiceImpl extends Object implements KeyStoreService
| Constructor and Description |
|---|
KeyStoreServiceImpl(PasswordBasedKeyConfig passwordBasedKeyConfig) |
@Inject public KeyStoreServiceImpl(PasswordBasedKeyConfig passwordBasedKeyConfig)
public KeyStore createKeyStore(KeyStoreAuth keyStoreAuth, KeyStoreType keyStoreType, KeyStoreCreationConfig config)
createKeyStore in interface KeyStoreServicepublic KeyStore createKeyStore(KeyStoreAuth keyStoreAuth, KeyStoreType keyStoreType, KeyStoreCreationConfig config, Map<KeyID,Optional<SecretKeyEntry>> secretKeys)
createKeyStore in interface KeyStoreServicepublic KeyStore updateKeyStoreReadKeyPassword(KeyStore current, KeyStoreAuth currentCredentials, KeyStoreAuth newCredentials)
updateKeyStoreReadKeyPassword in interface KeyStoreServicepublic List<PublicKeyIDWithPublicKey> getPublicKeys(KeyStoreAccess keyStoreAccess)
getPublicKeys in interface KeyStoreServicepublic PrivateKey getPrivateKey(KeyStoreAccess keyStoreAccess, KeyID keyID)
getPrivateKey in interface KeyStoreServicepublic SecretKeySpec getSecretKey(KeyStoreAccess keyStoreAccess, KeyID keyID)
getSecretKey in interface KeyStoreServicepublic void addPasswordBasedSecretKey(KeyStoreAccess keyStoreAccess, String alias, char[] secret)
addPasswordBasedSecretKey in interface KeyStoreServicepublic void removeKey(KeyStoreAccess keyStoreAccess, String alias)
removeKey in interface KeyStoreServicepublic byte[] serialize(KeyStore store, String storeId, ReadStorePassword readStorePassword)
serialize in interface KeyStoreServicepublic KeyStore deserialize(byte[] payload, String storeId, ReadStorePassword readStorePassword)
deserialize in interface KeyStoreServiceCopyright © 2019. All rights reserved.