public interface SimpleSecretsGroup
SecretsGroup
to more concisely retrieve secret valuesModifier and Type | Method and Description |
---|---|
java.util.List<ByteSecretEntry> |
getAllBinarySecrets()
Get all latest active versions of byte secrets
|
java.util.List<StringSecretEntry> |
getAllStringSecrets()
Get all latest active versions of String secrets
|
java.util.Optional<byte[]> |
getBinarySecret(SecretIdentifier secretIdentifier)
Get the latest secret value as a
byte[] |
java.util.Optional<byte[]> |
getBinarySecret(SecretIdentifier secretIdentifier,
long version)
Get a specific secret value version as a
byte[] |
java.util.Optional<byte[]> |
getBinarySecret(java.lang.String secretIdentifier)
Get the latest secret value as a
byte[] |
java.util.Optional<byte[]> |
getBinarySecret(java.lang.String secretIdentifier,
long version)
Get a specific secret value version as a
byte[] |
java.util.Optional<java.lang.String> |
getStringSecret(SecretIdentifier secretIdentifier)
Get the latest secret value as a
String |
java.util.Optional<java.lang.String> |
getStringSecret(SecretIdentifier secretIdentifier,
long version)
Get a specific secret value version as a
String |
java.util.Optional<java.lang.String> |
getStringSecret(java.lang.String secretIdentifier)
Get the latest secret value as a
String |
java.util.Optional<java.lang.String> |
getStringSecret(java.lang.String secretIdentifier,
long version)
Get a specific secret value version as a
String |
java.util.Optional<java.lang.String> getStringSecret(SecretIdentifier secretIdentifier)
String
secretIdentifier
- identifier of the secret to retrieveString
EncodingException
- if the secret is not a String
java.util.Optional<java.lang.String> getStringSecret(java.lang.String secretIdentifier)
String
secretIdentifier
- identifier of the secret to retrieveString
EncodingException
- if the secret is not a String
java.util.Optional<java.lang.String> getStringSecret(SecretIdentifier secretIdentifier, long version)
String
secretIdentifier
- identifier of the secret to retrieveversion
- version of the secret to retrieveString
EncodingException
- if the secret is not a String
java.util.Optional<java.lang.String> getStringSecret(java.lang.String secretIdentifier, long version)
String
secretIdentifier
- identifier of the secret to retrieveversion
- version of the secret to retrieveString
EncodingException
- if the secret is not a String
java.util.List<StringSecretEntry> getAllStringSecrets()
StringSecretEntry
java.util.Optional<byte[]> getBinarySecret(SecretIdentifier secretIdentifier)
byte[]
secretIdentifier
- identifier of the secret to retrievebyte[]
EncodingException
- if the secret is not binaryjava.util.Optional<byte[]> getBinarySecret(java.lang.String secretIdentifier)
byte[]
secretIdentifier
- identifier of the secret to retrievebyte[]
EncodingException
- if the secret is not binaryjava.util.Optional<byte[]> getBinarySecret(SecretIdentifier secretIdentifier, long version)
byte[]
secretIdentifier
- identifier of the secret to retrieveversion
- version of the secret to retrievebyte[]
EncodingException
- if the secret is not binaryjava.util.Optional<byte[]> getBinarySecret(java.lang.String secretIdentifier, long version)
byte[]
secretIdentifier
- identifier of the secret to retrieveversion
- version of the secret to retrievebyte[]
EncodingException
- if the secret is not binaryjava.util.List<ByteSecretEntry> getAllBinarySecrets()
ByteSecretEntry