public class OAuth2Provider extends Object
Constructor and Description |
---|
OAuth2Provider(String name)
Creates a new provider having the specified name.
|
Modifier and Type | Method and Description |
---|---|
OAuth2Provider |
setAuthorizeEndpoint(Expression endpoint)
Sets the expression which will be used for obtaining the authorization
server's authorize end-point.
|
OAuth2Provider |
setClientId(Expression clientId)
Sets the expression which will be used for obtaining the OAuth 2 client
ID.
|
OAuth2Provider |
setClientSecret(Expression clientSecret)
Sets the expression which will be used for obtaining the OAuth 2 client
secret.
|
OAuth2Provider |
setScopes(List<Expression> scopes)
Sets the expressions which will be used for obtaining the OAuth 2 scopes
for this provider.
|
OAuth2Provider |
setTokenEndpoint(Expression endpoint)
Sets the expression which will be used for obtaining the authorization
server's access token end-point.
|
OAuth2Provider |
setUserInfoEndpoint(Expression endpoint)
Sets the expression which will be used for obtaining the authorization
server's OpenID Connect user info end-point.
|
OAuth2Provider |
setWellKnownConfiguration(org.forgerock.json.fluent.JsonValue wellKnown)
Configures this provider using the specified OpenID Connect Well Known
configuration.
|
public OAuth2Provider(String name)
name
- The provider name.public OAuth2Provider setAuthorizeEndpoint(Expression endpoint)
endpoint
- The expression which will be used for obtaining the
authorization server's authorize end-point.public OAuth2Provider setClientId(Expression clientId)
clientId
- The expression which will be used for obtaining the OAuth 2
client ID.public OAuth2Provider setClientSecret(Expression clientSecret)
clientSecret
- The expression which will be used for obtaining the OAuth 2
client secret.public OAuth2Provider setScopes(List<Expression> scopes)
scopes
- The expressions which will be used for obtaining the OAuth 2
scopes.public OAuth2Provider setTokenEndpoint(Expression endpoint)
endpoint
- The expression which will be used for obtaining the
authorization server's access token end-point.public OAuth2Provider setUserInfoEndpoint(Expression endpoint)
endpoint
- The expression which will be used for obtaining the
authorization server's OpenID Connect user info end-point.public OAuth2Provider setWellKnownConfiguration(org.forgerock.json.fluent.JsonValue wellKnown)
wellKnown
- The OpenID Connect provider's Well Known configuration.Copyright © 2014 ForgeRock AS. All rights reserved.