public static class PcfAuthenticationOptions.PcfAuthenticationOptionsBuilder extends Object
PcfAuthenticationOptions.| Modifier and Type | Method and Description |
|---|---|
PcfAuthenticationOptions |
build()
Build a new
PcfAuthenticationOptions instance. |
PcfAuthenticationOptions.PcfAuthenticationOptionsBuilder |
clock(Clock clock)
Configure the
Clock. |
PcfAuthenticationOptions.PcfAuthenticationOptionsBuilder |
instanceCertificate(Supplier<String> instanceCertSupplier)
Configure the
Supplier to obtain the instance certificate. |
PcfAuthenticationOptions.PcfAuthenticationOptionsBuilder |
instanceKey(Supplier<String> instanceKeySupplier)
Configure the
Supplier to obtain the instance key. |
PcfAuthenticationOptions.PcfAuthenticationOptionsBuilder |
path(String path)
Configure the mount path.
|
PcfAuthenticationOptions.PcfAuthenticationOptionsBuilder |
role(String role)
Configure the role.
|
public PcfAuthenticationOptions.PcfAuthenticationOptionsBuilder path(String path)
path - must not be empty or null.this PcfAuthenticationOptions.PcfAuthenticationOptionsBuilder.PcfAuthenticationOptions.DEFAULT_PCF_AUTHENTICATION_PATHpublic PcfAuthenticationOptions.PcfAuthenticationOptionsBuilder role(String role)
role - name of the role against which the login is being attempted, must
not be null or empty.this PcfAuthenticationOptions.PcfAuthenticationOptionsBuilder.public PcfAuthenticationOptions.PcfAuthenticationOptionsBuilder clock(Clock clock)
Clock.clock - must not be null.this PcfAuthenticationOptions.PcfAuthenticationOptionsBuilder.public PcfAuthenticationOptions.PcfAuthenticationOptionsBuilder instanceCertificate(Supplier<String> instanceCertSupplier)
Supplier to obtain the instance certificate.instanceCertSupplier - the supplier, must not be null.this PcfAuthenticationOptions.PcfAuthenticationOptionsBuilder.ResourceCredentialSupplierpublic PcfAuthenticationOptions.PcfAuthenticationOptionsBuilder instanceKey(Supplier<String> instanceKeySupplier)
Supplier to obtain the instance key.instanceKeySupplier - the supplier, must not be null.this PcfAuthenticationOptions.PcfAuthenticationOptionsBuilder.ResourceCredentialSupplierpublic PcfAuthenticationOptions build()
PcfAuthenticationOptions instance.
Falls back to the instance certificate at CF_INSTANCE_CERT if
instanceCertificate(Supplier) is not configured respective
CF_INSTANCE_KEY if instanceKey(Supplier) is not configured.
PcfAuthenticationOptions.IllegalStateException - if instanceCertificate(Supplier) or
instanceKey(Supplier) are not set and the corresponding
environment variable CF_INSTANCE_CERT respective
CF_INSTANCE_KEY is not set.Copyright © 2016–2019 Pivotal Software, Inc.. All rights reserved.