Class AwsEc2AuthenticationOptions.AwsEc2AuthenticationOptionsBuilder
java.lang.Object
org.springframework.vault.authentication.AwsEc2AuthenticationOptions.AwsEc2AuthenticationOptionsBuilder
- Enclosing class:
- AwsEc2AuthenticationOptions
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build a newAwsEc2AuthenticationOptionsinstance.identityDocumentUri(URI identityDocumentUri) Configure the Identity DocumentURI.Configure aAwsEc2AuthenticationOptions.Noncefor login requests.Configure the mount path.Configure the name of the role against which the login is being attempted.If role is not specified, then the login endpoint looks for a role bearing the name of the AMI ID of the EC2 instance that is trying to login.
-
Method Details
-
path
Configure the mount path.- Parameters:
path- must not be empty or null.- Returns:
thisAwsEc2AuthenticationOptions.AwsEc2AuthenticationOptionsBuilder.
-
identityDocumentUri
public AwsEc2AuthenticationOptions.AwsEc2AuthenticationOptionsBuilder identityDocumentUri(URI identityDocumentUri) Configure the Identity DocumentURI.- Parameters:
identityDocumentUri- must not be null.- Returns:
thisAwsEc2AuthenticationOptions.AwsEc2AuthenticationOptionsBuilder.- See Also:
-
role
Configure the name of the role against which the login is being attempted.If role is not specified, then the login endpoint looks for a role bearing the name of the AMI ID of the EC2 instance that is trying to login.- Parameters:
role- may be empty or null.- Returns:
thisAwsEc2AuthenticationOptions.AwsEc2AuthenticationOptionsBuilder.
-
nonce
public AwsEc2AuthenticationOptions.AwsEc2AuthenticationOptionsBuilder nonce(AwsEc2AuthenticationOptions.Nonce nonce) Configure aAwsEc2AuthenticationOptions.Noncefor login requests. Defaults toAwsEc2AuthenticationOptions.Nonce.generated().- Parameters:
nonce- must not be null.- Returns:
thisAwsEc2AuthenticationOptions.AwsEc2AuthenticationOptionsBuilder.- Since:
- 1.1
-
build
Build a newAwsEc2AuthenticationOptionsinstance.- Returns:
- a new
AwsEc2AuthenticationOptions.
-