public class KeyStoreServiceImpl extends Object implements KeyStoreService
| Constructor and Description |
|---|
KeyStoreServiceImpl(de.adorsys.keymanagement.api.config.keystore.KeyStoreConfig config,
de.adorsys.keymanagement.api.Juggler juggler) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPasswordBasedSecretKey(KeyStoreAccess keyStoreAccess,
String alias,
char[] secret) |
KeyStore |
createKeyStore(KeyStoreAuth keyStoreAuth,
KeyCreationConfig config) |
KeyStore |
createKeyStore(KeyStoreAuth keyStoreAuth,
KeyCreationConfig keyConfig,
Map<KeyID,Optional<SecretKeyEntry>> secretKeys) |
KeyStore |
deserialize(byte[] payload,
ReadStorePassword readStorePassword) |
PrivateKey |
getPrivateKey(KeyStoreAccess keyStoreAccess,
KeyID keyID) |
List<PublicKeyIDWithPublicKey> |
getPublicKeys(KeyStoreAccess keyStoreAccess) |
SecretKeySpec |
getSecretKey(KeyStoreAccess keyStoreAccess,
KeyID keyID) |
void |
removeKey(KeyStoreAccess keyStoreAccess,
String alias) |
byte[] |
serialize(KeyStore store,
ReadStorePassword readStorePassword) |
KeyStore |
updateKeyStoreReadKeyPassword(KeyStore current,
KeyStoreAuth currentCredentials,
KeyStoreAuth newCredentials) |
@Inject
public KeyStoreServiceImpl(de.adorsys.keymanagement.api.config.keystore.KeyStoreConfig config,
de.adorsys.keymanagement.api.Juggler juggler)
public KeyStore createKeyStore(KeyStoreAuth keyStoreAuth, KeyCreationConfig config)
createKeyStore in interface KeyStoreServicepublic KeyStore createKeyStore(KeyStoreAuth keyStoreAuth, KeyCreationConfig keyConfig, 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, ReadStorePassword readStorePassword)
serialize in interface KeyStoreServicepublic KeyStore deserialize(byte[] payload, ReadStorePassword readStorePassword)
deserialize in interface KeyStoreServiceCopyright © 2020. All rights reserved.