public class DefaultSimpleSecretsGroup extends java.lang.Object implements SimpleSecretsGroup
Constructor and Description |
---|
DefaultSimpleSecretsGroup(SecretsGroupIdentifier groupIdentifier) |
DefaultSimpleSecretsGroup(SecretsGroupIdentifier groupIdentifier,
com.amazonaws.auth.AWSCredentialsProvider credentialsProvider) |
DefaultSimpleSecretsGroup(SecretsGroupIdentifier groupIdentifier,
RoleARN role) |
Modifier 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 |
public DefaultSimpleSecretsGroup(SecretsGroupIdentifier groupIdentifier)
public DefaultSimpleSecretsGroup(SecretsGroupIdentifier groupIdentifier, RoleARN role)
public DefaultSimpleSecretsGroup(SecretsGroupIdentifier groupIdentifier, com.amazonaws.auth.AWSCredentialsProvider credentialsProvider)
public java.util.Optional<java.lang.String> getStringSecret(SecretIdentifier secretIdentifier)
SimpleSecretsGroup
String
getStringSecret
in interface SimpleSecretsGroup
secretIdentifier
- identifier of the secret to retrieveString
public java.util.Optional<java.lang.String> getStringSecret(java.lang.String secretIdentifier)
SimpleSecretsGroup
String
getStringSecret
in interface SimpleSecretsGroup
secretIdentifier
- identifier of the secret to retrieveString
public java.util.Optional<java.lang.String> getStringSecret(SecretIdentifier secretIdentifier, long version)
SimpleSecretsGroup
String
getStringSecret
in interface SimpleSecretsGroup
secretIdentifier
- identifier of the secret to retrieveversion
- version of the secret to retrieveString
public java.util.Optional<java.lang.String> getStringSecret(java.lang.String secretIdentifier, long version)
SimpleSecretsGroup
String
getStringSecret
in interface SimpleSecretsGroup
secretIdentifier
- identifier of the secret to retrieveversion
- version of the secret to retrieveString
public java.util.List<StringSecretEntry> getAllStringSecrets()
SimpleSecretsGroup
getAllStringSecrets
in interface SimpleSecretsGroup
StringSecretEntry
public java.util.Optional<byte[]> getBinarySecret(SecretIdentifier secretIdentifier)
SimpleSecretsGroup
byte[]
getBinarySecret
in interface SimpleSecretsGroup
secretIdentifier
- identifier of the secret to retrievebyte[]
public java.util.Optional<byte[]> getBinarySecret(java.lang.String secretIdentifier)
SimpleSecretsGroup
byte[]
getBinarySecret
in interface SimpleSecretsGroup
secretIdentifier
- identifier of the secret to retrievebyte[]
public java.util.Optional<byte[]> getBinarySecret(SecretIdentifier secretIdentifier, long version)
SimpleSecretsGroup
byte[]
getBinarySecret
in interface SimpleSecretsGroup
secretIdentifier
- identifier of the secret to retrieveversion
- version of the secret to retrievebyte[]
public java.util.Optional<byte[]> getBinarySecret(java.lang.String secretIdentifier, long version)
SimpleSecretsGroup
byte[]
getBinarySecret
in interface SimpleSecretsGroup
secretIdentifier
- identifier of the secret to retrieveversion
- version of the secret to retrievebyte[]
public java.util.List<ByteSecretEntry> getAllBinarySecrets()
SimpleSecretsGroup
getAllBinarySecrets
in interface SimpleSecretsGroup
ByteSecretEntry