public static final class OpenIdConnectConfiguration.Builder extends Object
OpenIdConnectConfiguration.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
OpenIdConnectConfiguration.Builder |
addAllEmailDomains(Iterable<String> elements)
Adds elements to
emailDomains list. |
OpenIdConnectConfiguration.Builder |
addAllExternalGroupsWhitelist(Iterable<String> elements)
Adds elements to
externalGroupsWhitelist list. |
OpenIdConnectConfiguration.Builder |
addAllScopes(Iterable<String> elements)
Adds elements to
scopes list. |
OpenIdConnectConfiguration.Builder |
addShadowUserOnLogin(Boolean addShadowUserOnLogin)
Initializes the value for the
addShadowUserOnLogin attribute. |
OpenIdConnectConfiguration.Builder |
attributeMappings(AttributeMappings attributeMappings)
Initializes the value for the
attributeMappings attribute. |
OpenIdConnectConfiguration.Builder |
authUrl(String authUrl)
Initializes the value for the
authUrl attribute. |
OpenIdConnectConfiguration |
build()
Builds a new
OpenIdConnectConfiguration. |
OpenIdConnectConfiguration.Builder |
emailDomain(String... elements)
Adds elements to
emailDomains list. |
OpenIdConnectConfiguration.Builder |
emailDomain(String element)
Adds one element to
emailDomains list. |
OpenIdConnectConfiguration.Builder |
emailDomains(Iterable<String> elements)
Sets or replaces all elements for
emailDomains list. |
OpenIdConnectConfiguration.Builder |
externalGroupsWhitelist(Iterable<String> elements)
Sets or replaces all elements for
externalGroupsWhitelist list. |
OpenIdConnectConfiguration.Builder |
externalGroupsWhitelist(String... elements)
Adds elements to
externalGroupsWhitelist list. |
OpenIdConnectConfiguration.Builder |
externalGroupsWhitelist(String element)
Adds one element to
externalGroupsWhitelist list. |
OpenIdConnectConfiguration.Builder |
from(org.cloudfoundry.uaa.identityproviders.AbstractAuthenticationConfiguration instance)
Fill a builder with attribute values from the provided
org.cloudfoundry.uaa.identityproviders.AbstractAuthenticationConfiguration instance. |
OpenIdConnectConfiguration.Builder |
from(org.cloudfoundry.uaa.identityproviders.AbstractExternalIdentityProviderConfiguration instance)
Fill a builder with attribute values from the provided
org.cloudfoundry.uaa.identityproviders.AbstractExternalIdentityProviderConfiguration instance. |
OpenIdConnectConfiguration.Builder |
from(org.cloudfoundry.uaa.identityproviders.AbstractIdentityProviderConfiguration instance)
Fill a builder with attribute values from the provided
org.cloudfoundry.uaa.identityproviders.AbstractIdentityProviderConfiguration instance. |
OpenIdConnectConfiguration.Builder |
from(OpenIdConnectConfiguration instance)
Fill a builder with attribute values from the provided
OpenIdConnectConfiguration instance. |
OpenIdConnectConfiguration.Builder |
linkText(Boolean linkText)
Initializes the value for the
linkText attribute. |
OpenIdConnectConfiguration.Builder |
providerDescription(String providerDescription)
Initializes the value for the
providerDescription attribute. |
OpenIdConnectConfiguration.Builder |
relyingPartyId(String relyingPartyId)
Initializes the value for the
relyingPartyId attribute. |
OpenIdConnectConfiguration.Builder |
relyingPartySecret(String relyingPartySecret)
Initializes the value for the
relyingPartySecret attribute. |
OpenIdConnectConfiguration.Builder |
scope(String... elements)
Adds elements to
scopes list. |
OpenIdConnectConfiguration.Builder |
scope(String element)
Adds one element to
scopes list. |
OpenIdConnectConfiguration.Builder |
scopes(Iterable<String> elements)
Sets or replaces all elements for
scopes list. |
OpenIdConnectConfiguration.Builder |
showLinkText(Boolean showLinkText)
Initializes the value for the
showLinkText attribute. |
OpenIdConnectConfiguration.Builder |
skipSslVerification(Boolean skipSslVerification)
Initializes the value for the
skipSslVerification attribute. |
OpenIdConnectConfiguration.Builder |
storeCustomAttributes(Boolean storeCustomAttributes)
Initializes the value for the
storeCustomAttributes attribute. |
OpenIdConnectConfiguration.Builder |
tokenKey(String tokenKey)
Initializes the value for the
tokenKey attribute. |
OpenIdConnectConfiguration.Builder |
tokenKeyUrl(String tokenKeyUrl)
Initializes the value for the
tokenKeyUrl attribute. |
OpenIdConnectConfiguration.Builder |
tokenUrl(String tokenUrl)
Initializes the value for the
tokenUrl attribute. |
OpenIdConnectConfiguration.Builder |
userInfoUrl(String userInfoUrl)
Initializes the value for the
userInfoUrl attribute. |
public final OpenIdConnectConfiguration.Builder from(org.cloudfoundry.uaa.identityproviders.AbstractIdentityProviderConfiguration instance)
org.cloudfoundry.uaa.identityproviders.AbstractIdentityProviderConfiguration instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final OpenIdConnectConfiguration.Builder from(OpenIdConnectConfiguration instance)
OpenIdConnectConfiguration instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final OpenIdConnectConfiguration.Builder from(org.cloudfoundry.uaa.identityproviders.AbstractExternalIdentityProviderConfiguration instance)
org.cloudfoundry.uaa.identityproviders.AbstractExternalIdentityProviderConfiguration instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final OpenIdConnectConfiguration.Builder from(org.cloudfoundry.uaa.identityproviders.AbstractAuthenticationConfiguration instance)
org.cloudfoundry.uaa.identityproviders.AbstractAuthenticationConfiguration instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final OpenIdConnectConfiguration.Builder userInfoUrl(String userInfoUrl)
userInfoUrl attribute.userInfoUrl - The value for userInfoUrl (can be null)this builder for use in a chained invocationpublic final OpenIdConnectConfiguration.Builder addShadowUserOnLogin(Boolean addShadowUserOnLogin)
addShadowUserOnLogin attribute.addShadowUserOnLogin - The value for addShadowUserOnLogin (can be null)this builder for use in a chained invocationpublic final OpenIdConnectConfiguration.Builder authUrl(String authUrl)
authUrl attribute.authUrl - The value for authUrlthis builder for use in a chained invocationpublic final OpenIdConnectConfiguration.Builder linkText(Boolean linkText)
linkText attribute.linkText - The value for linkText (can be null)this builder for use in a chained invocationpublic final OpenIdConnectConfiguration.Builder relyingPartyId(String relyingPartyId)
relyingPartyId attribute.relyingPartyId - The value for relyingPartyIdthis builder for use in a chained invocationpublic final OpenIdConnectConfiguration.Builder relyingPartySecret(String relyingPartySecret)
relyingPartySecret attribute.relyingPartySecret - The value for relyingPartySecret (can be null)this builder for use in a chained invocationpublic final OpenIdConnectConfiguration.Builder scope(String element)
scopes list.element - A scopes elementthis builder for use in a chained invocationpublic final OpenIdConnectConfiguration.Builder scope(String... elements)
scopes list.elements - An array of scopes elementsthis builder for use in a chained invocationpublic final OpenIdConnectConfiguration.Builder scopes(Iterable<String> elements)
scopes list.elements - An iterable of scopes elementsthis builder for use in a chained invocationpublic final OpenIdConnectConfiguration.Builder addAllScopes(Iterable<String> elements)
scopes list.elements - An iterable of scopes elementsthis builder for use in a chained invocationpublic final OpenIdConnectConfiguration.Builder showLinkText(Boolean showLinkText)
showLinkText attribute.showLinkText - The value for showLinkText (can be null)this builder for use in a chained invocationpublic final OpenIdConnectConfiguration.Builder skipSslVerification(Boolean skipSslVerification)
skipSslVerification attribute.skipSslVerification - The value for skipSslVerification (can be null)this builder for use in a chained invocationpublic final OpenIdConnectConfiguration.Builder tokenKey(String tokenKey)
tokenKey attribute.tokenKey - The value for tokenKey (can be null)this builder for use in a chained invocationpublic final OpenIdConnectConfiguration.Builder tokenKeyUrl(String tokenKeyUrl)
tokenKeyUrl attribute.tokenKeyUrl - The value for tokenKeyUrl (can be null)this builder for use in a chained invocationpublic final OpenIdConnectConfiguration.Builder tokenUrl(String tokenUrl)
tokenUrl attribute.tokenUrl - The value for tokenUrlthis builder for use in a chained invocationpublic final OpenIdConnectConfiguration.Builder attributeMappings(AttributeMappings attributeMappings)
attributeMappings attribute.attributeMappings - The value for attributeMappings (can be null)this builder for use in a chained invocationpublic final OpenIdConnectConfiguration.Builder externalGroupsWhitelist(String element)
externalGroupsWhitelist list.element - A externalGroupsWhitelist elementthis builder for use in a chained invocationpublic final OpenIdConnectConfiguration.Builder externalGroupsWhitelist(String... elements)
externalGroupsWhitelist list.elements - An array of externalGroupsWhitelist elementsthis builder for use in a chained invocationpublic final OpenIdConnectConfiguration.Builder externalGroupsWhitelist(Iterable<String> elements)
externalGroupsWhitelist list.elements - An iterable of externalGroupsWhitelist elementsthis builder for use in a chained invocationpublic final OpenIdConnectConfiguration.Builder addAllExternalGroupsWhitelist(Iterable<String> elements)
externalGroupsWhitelist list.elements - An iterable of externalGroupsWhitelist elementsthis builder for use in a chained invocationpublic final OpenIdConnectConfiguration.Builder storeCustomAttributes(Boolean storeCustomAttributes)
storeCustomAttributes attribute.storeCustomAttributes - The value for storeCustomAttributes (can be null)this builder for use in a chained invocationpublic final OpenIdConnectConfiguration.Builder emailDomain(String element)
emailDomains list.element - A emailDomains elementthis builder for use in a chained invocationpublic final OpenIdConnectConfiguration.Builder emailDomain(String... elements)
emailDomains list.elements - An array of emailDomains elementsthis builder for use in a chained invocationpublic final OpenIdConnectConfiguration.Builder emailDomains(Iterable<String> elements)
emailDomains list.elements - An iterable of emailDomains elementsthis builder for use in a chained invocationpublic final OpenIdConnectConfiguration.Builder addAllEmailDomains(Iterable<String> elements)
emailDomains list.elements - An iterable of emailDomains elementsthis builder for use in a chained invocationpublic final OpenIdConnectConfiguration.Builder providerDescription(String providerDescription)
providerDescription attribute.providerDescription - The value for providerDescription (can be null)this builder for use in a chained invocationpublic OpenIdConnectConfiguration build()
OpenIdConnectConfiguration.IllegalStateException - if any required attributes are missingCopyright © 2017 Pivotal Software, Inc.. All rights reserved.