public static class CubbyholeAuthenticationOptions.CubbyholeAuthenticationOptionsBuilder extends Object
CubbyholeAuthenticationOptions
.Modifier and Type | Method and Description |
---|---|
CubbyholeAuthenticationOptions |
build()
Build a new
CubbyholeAuthenticationOptions instance. |
CubbyholeAuthenticationOptions.CubbyholeAuthenticationOptionsBuilder |
initialToken(VaultToken initialToken)
Configure the initial
VaultToken to access Cubbyhole. |
CubbyholeAuthenticationOptions.CubbyholeAuthenticationOptionsBuilder |
path(String path)
Configure the cubbyhole path, such as
cubbyhole/token . |
CubbyholeAuthenticationOptions.CubbyholeAuthenticationOptionsBuilder |
selfLookup(boolean selfLookup)
Configure whether to perform a self-lookup after token retrieval.
|
CubbyholeAuthenticationOptions.CubbyholeAuthenticationOptionsBuilder |
unwrappingEndpoints(UnwrappingEndpoints endpoints)
Configure the
UnwrappingEndpoints to use. |
CubbyholeAuthenticationOptions.CubbyholeAuthenticationOptionsBuilder |
wrapped()
Configure whether to use wrapped token responses.
|
public CubbyholeAuthenticationOptions.CubbyholeAuthenticationOptionsBuilder initialToken(VaultToken initialToken)
VaultToken
to access Cubbyhole.initialToken
- must not be null.this
CubbyholeAuthenticationOptions.CubbyholeAuthenticationOptionsBuilder
.public CubbyholeAuthenticationOptions.CubbyholeAuthenticationOptionsBuilder path(String path)
cubbyhole/token
. Expects a token
in the data
response.path
- must not be empty or null.this
CubbyholeAuthenticationOptions.CubbyholeAuthenticationOptionsBuilder
.public CubbyholeAuthenticationOptions.CubbyholeAuthenticationOptionsBuilder unwrappingEndpoints(UnwrappingEndpoints endpoints)
UnwrappingEndpoints
to use.endpoints
- must not be null.this
CubbyholeAuthenticationOptions.CubbyholeAuthenticationOptionsBuilder
public CubbyholeAuthenticationOptions.CubbyholeAuthenticationOptionsBuilder wrapped()
public CubbyholeAuthenticationOptions.CubbyholeAuthenticationOptionsBuilder selfLookup(boolean selfLookup)
selfLookup
- true to perform a self-lookup or false
to disable it.this
CubbyholeAuthenticationOptions.CubbyholeAuthenticationOptionsBuilder
.public CubbyholeAuthenticationOptions build()
CubbyholeAuthenticationOptions
instance. Requires
path(String)
or wrapped()
to be configured.CubbyholeAuthenticationOptions
.Copyright © 2016–2021 Pivotal Software, Inc.. All rights reserved.