Class AwsEc2AuthenticationOptions
java.lang.Object
org.springframework.vault.authentication.AwsEc2AuthenticationOptions
Authentication options for
AwsEc2Authentication
.
Authentication options provide the path, the Identity Document URI and an optional
role. AwsEc2AuthenticationOptions
can be constructed using builder()
.
Instances of this class are immutable once constructed.
Metadata retrieval defaults to IMDSv2 (session-token).
- Author:
- Mark Paluch
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static enum
Enumeration for the Instance metadata service version.static class
Value object for an authentication nonce. -
Field Summary
Modifier and TypeFieldDescriptionstatic final AwsEc2AuthenticationOptions
static final String
static final URI
static final URI
-
Method Summary
-
Field Details
-
DEFAULT_PKCS7_IDENTITY_DOCUMENT_URI
-
DEFAULT_IMDSV2_TOKEN_URI
- Since:
- 3.2
-
DEFAULT_AWS_AUTHENTICATION_PATH
- See Also:
-
DEFAULT
-
-
Method Details
-
builder
- Returns:
- a new
AwsEc2AuthenticationOptions.AwsEc2AuthenticationOptionsBuilder
.
-
getPath
- Returns:
- the path of the aws-ec2 authentication backend mount.
-
getIdentityDocumentUri
- Returns:
- the
URI
to the AWS EC2 PKCS#7-signed identity document.
-
getRole
- Returns:
- the role, may be null if none.
-
getNonce
- Returns:
- the configured
AwsEc2AuthenticationOptions.Nonce
.
-
getVersion
- Returns:
- the configured
AwsEc2AuthenticationOptions.InstanceMetadataServiceVersion
. - Since:
- 3.2
-
getMetadataTokenTtl
- Returns:
- the configured IMDSv2 token TTL.
- Since:
- 3.2
-
getMetadataTokenRequestUri
- Returns:
- the
URI
to the AWS EC2 Metadata Service to obtain IMDSv2 tokens. - Since:
- 3.2
-