public interface IdentityProvider
An Identity Provider is uniquely defined by the host name plus the client identifier value.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PARAMETER_FORMATTING_TAG_ACCESSTOKEN |
static java.lang.String |
PARAMETER_FORMATTING_TAG_CLIENTID |
static java.lang.String |
PARAMETER_FORMATTING_TAG_CLIENTSECRET |
static java.lang.String |
PARAMETER_FORMATTING_TAG_REFRESHTOKEN |
static java.lang.String |
REVOCATION_TOKEN_METHOD_DEFAULT |
static java.lang.String |
REVOCATION_TOKEN_METHOD_GET |
static java.lang.String |
REVOCATION_TOKEN_METHOD_POST |
| Modifier and Type | Method and Description |
|---|---|
Uri |
getAuthorizationEndPoint()
Get the OAuth2 authorization end point URL.
|
java.lang.String |
getClientId()
Get the OAuth2 client identifier.
|
java.lang.String |
getClientSecret()
Get the OAuth2 client secret.
|
Uri |
getDiscoveryEndPoint()
Get the OAuth2 discovery end point URL.
|
java.lang.String |
getHost()
Get the host name (domain name) as defined
by the provider URL.
|
Uri |
getLogoutEndPoint()
Get the identity provider specific logout end point url.
|
java.lang.String |
getProviderUrl()
Get the provider URL of the OAuth2 server.
|
Uri |
getRedirectUri()
Get the OAuth2 redirect URI.
|
Uri |
getRegistrationEndPoint()
Get the OAuth2 client registration end point URL.
|
java.lang.String |
getScope()
Get the OAuth2 scope.
|
Uri |
getTokenEndPoint()
Get the OAuth2 token end point URL.
|
Uri |
getTokenRevocationEndPoint()
Get the refresh token revocation end point url.
|
java.lang.String |
getTokenRevocationMethod()
Get the refresh token revocation HTTP method: "POST" or "GET".
|
java.lang.String |
getTokenRevocationParameterFormatString()
Get the refresh token revocation parameter format string.
|
Uri |
getUserInfoEndPoint()
Get the OAuth2 user information end point URL.
|
java.lang.String |
toJson()
Get the JSON representation of this Identity Provider.
|
static final java.lang.String REVOCATION_TOKEN_METHOD_POST
static final java.lang.String REVOCATION_TOKEN_METHOD_GET
static final java.lang.String REVOCATION_TOKEN_METHOD_DEFAULT
static final java.lang.String PARAMETER_FORMATTING_TAG_CLIENTID
static final java.lang.String PARAMETER_FORMATTING_TAG_CLIENTSECRET
static final java.lang.String PARAMETER_FORMATTING_TAG_REFRESHTOKEN
static final java.lang.String PARAMETER_FORMATTING_TAG_ACCESSTOKEN
java.lang.String getProviderUrl()
The URL will not contain an ending slash.
null.java.lang.String getHost()
null.java.lang.String getClientId()
null.java.lang.String getClientSecret()
null.Uri getRedirectUri()
null.Uri getDiscoveryEndPoint()
null if the end
point is not defined.Uri getRegistrationEndPoint()
null if
the end point is not defined.Uri getAuthorizationEndPoint()
null if
the end point is not defined.Uri getTokenEndPoint()
null if
the end point is not defined.Uri getUserInfoEndPoint()
null if
the end point is not defined.Uri getLogoutEndPoint()
null if
the end point is not defined.Uri getTokenRevocationEndPoint()
This is am optional parameter in that the identity provider may be configured without a refresh token revocation end point, but, if the client desires refresh token revocation to work, then all three refresh token revocation data items are required. These include this data item plus:
getTokenRevocationMethod()
getTokenRevocationParameterFormatString()
null if
the end point is not defined.java.lang.String getTokenRevocationMethod()
Implementation must ensure no other values may be set or returned.
This is am optional parameter in that the identity provider may be configured without a refresh token revocation method, but, if the client desires refresh token revocation to work, then all three refresh token revocation data items are required. These include this data item plus:
getTokenRevocationEndPoint()
getTokenRevocationParameterFormatString()
null.java.lang.String getTokenRevocationParameterFormatString()
PARAMETER_FORMATTING_TAG_CLIENTID
PARAMETER_FORMATTING_TAG_CLIENTSECRET
PARAMETER_FORMATTING_TAG_REFRESHTOKEN
PARAMETER_FORMATTING_TAG_ACCESSTOKEN
This is am optional parameter in that the identity provider may be configured without a refresh token revocation parameter format string, but, if the client desires refresh token revocation to work, then all three refresh token revocation data items are required. These include this data item plus:
null if
the end point is not defined.java.lang.String getScope()
java.lang.String toJson()
For the opposite method see ServiceContext.getIdentityProviderBuilder(String).
null.