public interface SecretStoreFacade
SecretStore
and KeyStore
classes.Modifier and Type | Method and Description |
---|---|
KeyStore |
getKeyStore(String name,
SecretStore password)
Retrieves a
KeyStore by its name. |
Optional<KeyStore> |
getKeyStoreIfPresent(String name,
SecretStore password)
Retrieves a
KeyStore by its name, if present. |
SecretStore |
getSecretStore(String name)
Retrieves a
SecretStore by its name. |
Class<? extends SecretStore> |
getSecretStoreClass()
Returns the platform-specific implementation class of
SecretStore . |
Optional<SecretStore> |
getSecretStoreIfPresent(String name)
Retrieves a
SecretStore by its name, if present. |
@Nonnull Class<? extends SecretStore> getSecretStoreClass()
SecretStore
. For internal use only.@Nonnull SecretStore getSecretStore(String name) throws SecretStoreNotFoundException, SecretStoreAccessException
SecretStore
by its name.name
- The name identifying a SecretStore
.SecretStore
for the given name.SecretStoreNotFoundException
- If the SecretStore
cannot be found.SecretStoreAccessException
- If there is an issue while accessing the SecretStore
.@Nonnull Optional<SecretStore> getSecretStoreIfPresent(String name) throws SecretStoreAccessException
SecretStore
by its name, if present.name
- The name identifying a SecretStore
.Optional
of the SecretStore
for the given name.SecretStoreAccessException
- If there is an issue while accessing the SecretStore
.@Nonnull KeyStore getKeyStore(String name, SecretStore password) throws KeyStoreNotFoundException, KeyStoreAccessException
KeyStore
by its name.name
- The name identifying a KeyStore
.password
- The password to unlock the KeyStore
.KeyStore
for the given name.KeyStoreNotFoundException
- If the KeyStore
cannot be found.KeyStoreAccessException
- If there is an issue while accessing the KeyStore
.@Nonnull Optional<KeyStore> getKeyStoreIfPresent(String name, SecretStore password) throws KeyStoreAccessException
KeyStore
by its name, if present.name
- The name identifying a KeyStore
.password
- The password to unlock the KeyStore
.KeyStore
for the given name.KeyStoreAccessException
- If there is an issue while accessing the KeyStore
.Copyright © 2018 SAP SE. All rights reserved.