Package net.solarnetwork.central.biz
Class SimpleSecretsBiz
java.lang.Object
net.solarnetwork.central.biz.SimpleSecretsBiz
- All Implemented Interfaces:
SecretsBiz
A very basic implementation of
SecretsBiz designed for testing and
development.-
Field Summary
Fields inherited from interface net.solarnetwork.central.biz.SecretsBiz
SECRETS -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.solarnetwork.central.biz.SecretsBiz
getSecretMap, putSecret
-
Constructor Details
-
SimpleSecretsBiz
-
-
Method Details
-
getSecret
Description copied from interface:SecretsBizGet a secret value.- Specified by:
getSecretin interfaceSecretsBiz- Parameters:
secretName- the unique name of the secret to get- Returns:
- the secret value, or null if one does not exist
-
putSecret
Description copied from interface:SecretsBizPut a secret value.This will replace any existing value of a secret with the same name.
- Specified by:
putSecretin interfaceSecretsBiz- Parameters:
secretName- the unique name of the secret to putsecretValue- the value to store
-
deleteSecret
Description copied from interface:SecretsBizDelete a secret.- Specified by:
deleteSecretin interfaceSecretsBiz- Parameters:
secretName- the name of the secret to delete
-