public static class CubbyholeAuthenticationOptions.CubbyholeAuthenticationOptionsBuilder extends Object
CubbyholeAuthenticationOptions
.Modifier and Type | Method and Description |
---|---|
CubbyholeAuthenticationOptions |
build()
Builds a new
CubbyholeAuthenticationOptions instance. |
CubbyholeAuthenticationOptions.CubbyholeAuthenticationOptionsBuilder |
initialToken(VaultToken initialToken)
Configures the initial
VaultToken to access Cubbyhole. |
CubbyholeAuthenticationOptions.CubbyholeAuthenticationOptionsBuilder |
path(String path)
Configures the cubbyhole path, such as
cubbyhole/token . |
CubbyholeAuthenticationOptions.CubbyholeAuthenticationOptionsBuilder |
wrapped()
Configures 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 wrapped()
public CubbyholeAuthenticationOptions build()
CubbyholeAuthenticationOptions
instance. Requires path(String)
or
wrapped()
to be configured.CubbyholeAuthenticationOptions
.Copyright © 2016 Pivotal Software, Inc.. All rights reserved.