public interface AuthenticatorBuilder
Authenticator instances.| Modifier and Type | Field and Description |
|---|---|
static long |
DO_NOT_REFRESH_ACCESS_TOKEN_BEFORE_EXPIRATION |
| Modifier and Type | Method and Description |
|---|---|
Authenticator |
build()
Construct an
Authenticator using the settings currently contained in this
builder instance. |
AuthenticatorBuilder |
setAccessTokenRefreshBeforeExpirationBy(long lAccessTokenRefreshBeforeExpirationBy)
Set the number of milliseconds that defines the time window, before access token
expiration, in which the access token will be refreshed even though it is not yet
expired.
|
AuthenticatorBuilder |
setBrowserDescriptor(BrowserDescriptor browserDescriptor)
Set the browser descriptor indicating which browser to use
to perform the authentication.
|
AuthenticatorBuilder |
setDisallowAccessTokenRefresh(boolean bDisallowAccessTokenRefresh)
Set the flag to disallow the access token from being refreshed (a new token retrieved from
the OAuth server) even if the current access token is expired.
|
AuthenticatorBuilder |
setDisallowIdentityProviderRefresh(boolean bDisallowIdentityProviderRefresh)
Set the flag to disallow the Identity Provider configuration from being discovered
(retrieved from the OAuth server) even if the discovery is required.
|
AuthenticatorBuilder |
setDisallowRefreshTokenRefresh(boolean bDisallowRefreshTokenRefresh)
Set the flag to disallow the refresh token from being refreshed (a new token retrieved from
the OAuth server) even if there is no current refresh token.
|
AuthenticatorBuilder |
setForceAccessTokenRefresh(boolean bForceAccessTokenRefresh)
Set the flag to force the access token to be refreshed (a new token retrieved from
the OAuth server) even if current access token is not expired.
|
AuthenticatorBuilder |
setForceIdentityProviderRefresh(boolean bForceIdentityProviderRefresh)
Set the flag to force the Identity Provider configuration to be discovered
(retrieved from the OAuth server) even if the discovery is not necessarily
required.
|
AuthenticatorBuilder |
setForceRefreshTokenRefresh(boolean bForceRefreshTokenRefresh)
Set the flag to force the refresh token to be refreshed (a new token retrieved from
the OAuth server) even if there is a current refresh token.
|
static final long DO_NOT_REFRESH_ACCESS_TOKEN_BEFORE_EXPIRATION
AuthenticatorBuilder setBrowserDescriptor(BrowserDescriptor browserDescriptor)
browserDescriptor - The browser descriptor indicating
which browser to use to perform the authentication.null.AuthenticatorBuilder setAccessTokenRefreshBeforeExpirationBy(long lAccessTokenRefreshBeforeExpirationBy)
lAccessTokenRefreshBeforeExpirationBy - The the number of milliseconds that
defines the time window, before access
token expiration, in which the access
token will be refreshed even though it
is not yet expired.null.AuthenticatorBuilder setForceIdentityProviderRefresh(boolean bForceIdentityProviderRefresh)
This flag is mutually exclusive to setDisallowIdentityProviderRefresh(boolean)
bForceIdentityProviderRefresh - 'true' to force the Identity Provider configuration
to be discovered (retrieved from the OAuth server)
even if the discovery is not necessarily required.null.AuthenticatorBuilder setForceAccessTokenRefresh(boolean bForceAccessTokenRefresh)
This flag is mutually exclusive to setDisallowAccessTokenRefresh(boolean)
bForceAccessTokenRefresh - 'true' to force the access token to be refreshed
(a new token retrieved from the OAuth server) even
if current access token is not expirednull.AuthenticatorBuilder setForceRefreshTokenRefresh(boolean bForceRefreshTokenRefresh)
This flag is mutually exclusive to setDisallowRefreshTokenRefresh(boolean)
bForceRefreshTokenRefresh - 'true' to force the refresh token to be refreshed
(a new token retrieved from the OAuth server) even
if there is a current refresh token.null.AuthenticatorBuilder setDisallowIdentityProviderRefresh(boolean bDisallowIdentityProviderRefresh)
This flag is mutually exclusive to setForceIdentityProviderRefresh(boolean)
bDisallowIdentityProviderRefresh - 'true' to disallow the Identity Provider configuration
from being discovered (retrieved from the OAuth server)
even if the discovery is required.null.AuthenticatorBuilder setDisallowAccessTokenRefresh(boolean bDisallowAccessTokenRefresh)
This flag is mutually exclusive to setForceAccessTokenRefresh(boolean)
bDisallowAccessTokenRefresh - 'true' to disallow the access token from being refreshed
(a new token retrieved from the OAuth server) even
if current access token is expired.null.AuthenticatorBuilder setDisallowRefreshTokenRefresh(boolean bDisallowRefreshTokenRefresh)
This flag is mutually exclusive to setForceRefreshTokenRefresh(boolean)
bDisallowRefreshTokenRefresh - 'true' to disallow the refresh token from being refreshed
(a new token retrieved from the OAuth server) even
if there is no current refresh token.null.Authenticator build() throws AuthenticatorException
Authenticator using the settings currently contained in this
builder instance.AuthenticatorException - on any attempt to create an Authenticator
with an invalid configuration.