public static class AwsEc2AuthenticationOptions.AwsEc2AuthenticationOptionsBuilder extends Object
Modifier and Type | Method and Description |
---|---|
AwsEc2AuthenticationOptions |
build()
Build a new
AwsEc2AuthenticationOptions instance. |
AwsEc2AuthenticationOptions.AwsEc2AuthenticationOptionsBuilder |
identityDocumentUri(URI identityDocumentUri)
Configure the Identity Document
URI . |
AwsEc2AuthenticationOptions.AwsEc2AuthenticationOptionsBuilder |
nonce(AwsEc2AuthenticationOptions.Nonce nonce)
Configure a
AwsEc2AuthenticationOptions.Nonce for login requests. |
AwsEc2AuthenticationOptions.AwsEc2AuthenticationOptionsBuilder |
path(String path)
Configure the mount path.
|
AwsEc2AuthenticationOptions.AwsEc2AuthenticationOptionsBuilder |
role(String 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.
|
public AwsEc2AuthenticationOptions.AwsEc2AuthenticationOptionsBuilder path(String path)
path
- must not be empty or null.this
AwsEc2AuthenticationOptions.AwsEc2AuthenticationOptionsBuilder
.public AwsEc2AuthenticationOptions.AwsEc2AuthenticationOptionsBuilder identityDocumentUri(URI identityDocumentUri)
URI
.identityDocumentUri
- must not be null.this
AwsEc2AuthenticationOptions.AwsEc2AuthenticationOptionsBuilder
.AwsEc2AuthenticationOptions.DEFAULT_PKCS7_IDENTITY_DOCUMENT_URI
public AwsEc2AuthenticationOptions.AwsEc2AuthenticationOptionsBuilder role(@Nullable String role)
role
- may be empty or null.this
AwsEc2AuthenticationOptions.AwsEc2AuthenticationOptionsBuilder
.public AwsEc2AuthenticationOptions.AwsEc2AuthenticationOptionsBuilder nonce(AwsEc2AuthenticationOptions.Nonce nonce)
AwsEc2AuthenticationOptions.Nonce
for login requests. Defaults to
AwsEc2AuthenticationOptions.Nonce.generated()
.nonce
- must not be null.this
AwsEc2AuthenticationOptions.AwsEc2AuthenticationOptionsBuilder
.public AwsEc2AuthenticationOptions build()
AwsEc2AuthenticationOptions
instance.AwsEc2AuthenticationOptions
.Copyright © 2016–2018 Pivotal Software, Inc.. All rights reserved.