public static class AuthenticationProvider.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
AuthenticationProvider.Builder |
authorizationEndpointUrl(String authorizationEndpointUrl)
The IDPs URL for the page that users authenticate with by entering the user name and
password.
|
AuthenticationProvider |
build() |
AuthenticationProvider.Builder |
clientId(String clientId)
The client ID for the IDP application (OAuth Client) that was registered as described in
Identity Provider Registration.
|
AuthenticationProvider.Builder |
copy(AuthenticationProvider model) |
AuthenticationProvider.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Usage of predefined tag keys.
|
AuthenticationProvider.Builder |
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type, or scope.
|
AuthenticationProvider.Builder |
grantType(AuthenticationGrantType grantType)
The grant type for the Authentication Provider.
|
AuthenticationProvider.Builder |
id(String id)
Unique immutable identifier that was assigned when the Authentication Provider was
created.
|
AuthenticationProvider.Builder |
identityProvider(AuthenticationIdentityProvider identityProvider)
Which type of Identity Provider (IDP) you are using.
|
AuthenticationProvider.Builder |
isVisible(Boolean isVisible)
Whether this Authentication Provider is visible in the ODA UI.
|
AuthenticationProvider.Builder |
lifecycleState(LifecycleState lifecycleState)
The Authentication Provider’s current state.
|
AuthenticationProvider.Builder |
name(String name)
A name to identify the Authentication Provider.
|
AuthenticationProvider.Builder |
redirectUrl(String redirectUrl)
The OAuth Redirect URL.
|
AuthenticationProvider.Builder |
refreshTokenRetentionPeriodInDays(Integer refreshTokenRetentionPeriodInDays)
The number of days to keep the refresh token in the Digital Assistant cache.
|
AuthenticationProvider.Builder |
revokeTokenEndpointUrl(String revokeTokenEndpointUrl)
If you want to revoke all the refresh tokens and access tokens of the logged-in user from
a dialog flow, then you need the IDP’s revoke refresh token URL.
|
AuthenticationProvider.Builder |
scopes(String scopes)
A space-separated list of the scopes that must be included when Digital Assistant
requests an access token from the provider.
|
AuthenticationProvider.Builder |
shortAuthorizationCodeRequestUrl(String shortAuthorizationCodeRequestUrl)
A shortened version of the authorization URL, which you can get from a URL shortener
service (one that allows you to send query parameters).
|
AuthenticationProvider.Builder |
subjectClaim(String subjectClaim)
The access-token profile claim to use to identify the user.
|
AuthenticationProvider.Builder |
timeCreated(Date timeCreated)
When the resource was created.
|
AuthenticationProvider.Builder |
timeUpdated(Date timeUpdated)
When the resource was last updated.
|
AuthenticationProvider.Builder |
tokenEndpointUrl(String tokenEndpointUrl)
The IDPs URL for requesting access tokens.
|
public AuthenticationProvider.Builder id(String id)
Unique immutable identifier that was assigned when the Authentication Provider was created.
id
- the value to setpublic AuthenticationProvider.Builder grantType(AuthenticationGrantType grantType)
The grant type for the Authentication Provider.
grantType
- the value to setpublic AuthenticationProvider.Builder identityProvider(AuthenticationIdentityProvider identityProvider)
Which type of Identity Provider (IDP) you are using.
identityProvider
- the value to setpublic AuthenticationProvider.Builder name(String name)
A name to identify the Authentication Provider.
name
- the value to setpublic AuthenticationProvider.Builder tokenEndpointUrl(String tokenEndpointUrl)
The IDPs URL for requesting access tokens.
tokenEndpointUrl
- the value to setpublic AuthenticationProvider.Builder authorizationEndpointUrl(String authorizationEndpointUrl)
The IDPs URL for the page that users authenticate with by entering the user name and password.
authorizationEndpointUrl
- the value to setpublic AuthenticationProvider.Builder shortAuthorizationCodeRequestUrl(String shortAuthorizationCodeRequestUrl)
A shortened version of the authorization URL, which you can get from a URL shortener service (one that allows you to send query parameters). You might need this because the generated authorization-code-request URL could be too long for SMS and older smart phones.
shortAuthorizationCodeRequestUrl
- the value to setpublic AuthenticationProvider.Builder revokeTokenEndpointUrl(String revokeTokenEndpointUrl)
If you want to revoke all the refresh tokens and access tokens of the logged-in user from a dialog flow, then you need the IDP’s revoke refresh token URL. If you provide this URL, then you can use the System.OAuth2ResetTokens component to revoke the user’s tokens for this service.
revokeTokenEndpointUrl
- the value to setpublic AuthenticationProvider.Builder clientId(String clientId)
The client ID for the IDP application (OAuth Client) that was registered as described in Identity Provider Registration. With Microsoft identity platform, use the application ID.
clientId
- the value to setpublic AuthenticationProvider.Builder scopes(String scopes)
A space-separated list of the scopes that must be included when Digital Assistant requests an access token from the provider. Include all the scopes that are required to access the resources. If refresh tokens are enabled, include the scope that’s necessary to get the refresh token (typically offline_access).
scopes
- the value to setpublic AuthenticationProvider.Builder subjectClaim(String subjectClaim)
The access-token profile claim to use to identify the user.
subjectClaim
- the value to setpublic AuthenticationProvider.Builder refreshTokenRetentionPeriodInDays(Integer refreshTokenRetentionPeriodInDays)
The number of days to keep the refresh token in the Digital Assistant cache.
refreshTokenRetentionPeriodInDays
- the value to setpublic AuthenticationProvider.Builder redirectUrl(String redirectUrl)
The OAuth Redirect URL.
redirectUrl
- the value to setpublic AuthenticationProvider.Builder isVisible(Boolean isVisible)
Whether this Authentication Provider is visible in the ODA UI.
isVisible
- the value to setpublic AuthenticationProvider.Builder lifecycleState(LifecycleState lifecycleState)
The Authentication Provider’s current state.
lifecycleState
- the value to setpublic AuthenticationProvider.Builder timeCreated(Date timeCreated)
When the resource was created. A date-time string as described in RFC 3339, section 14.29.
timeCreated
- the value to setpublic AuthenticationProvider.Builder timeUpdated(Date timeUpdated)
When the resource was last updated. A date-time string as described in RFC 3339, section 14.29.
timeUpdated
- the value to setpublic AuthenticationProvider.Builder freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type, or scope.
Example: {"bar-key": "value"}
freeformTags
- the value to setpublic AuthenticationProvider.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example:
{"foo-namespace": {"bar-key": "value"}}
definedTags
- the value to setpublic AuthenticationProvider build()
public AuthenticationProvider.Builder copy(AuthenticationProvider model)
Copyright © 2016–2024. All rights reserved.