public class AuthenticationParameters extends Object
Constructor and Description |
---|
AuthenticationParameters() |
Modifier and Type | Method and Description |
---|---|
AuthenticationParameters |
credential(Credential credential)
Sets the credential to be used by the authentication mechanism responding
to the authenticate call in which these AuthenticationParameters are passed.
|
Credential |
getCredential()
The credential set as parameter in this instance.
|
boolean |
isNewAuthentication()
Whether a new authentication dialog is required.
|
boolean |
isRememberMe()
Whether "remember me" should be used.
|
AuthenticationParameters |
newAuthentication(boolean newAuthentication)
Signal to the authentication mechanism responding to the authenticate call in which these
AuthenticationParameters are passed, that an explicit new authentication dialog is required, as opposed to
continuing a potentially existing one.
|
AuthenticationParameters |
rememberMe(boolean rememberMe)
Signals that for this call to the authentication mechanism "remember me" should be applied, IFF the
"remember me" feature is configured for the authentication mechanism responding to the authenticate call.
|
void |
setCredential(Credential credential)
Sets the credential as parameter in this instance.
|
void |
setNewAuthentication(boolean newAuthentication)
Sets whether a new authentication dialog is required.
|
void |
setRememberMe(boolean rememberMe)
Sets whether "remember me" should be used.
|
static AuthenticationParameters |
withParams()
Creates a new instance of AuthenticationParameters, useful for a fluent/builder
style creation of parameters.
|
public static AuthenticationParameters withParams()
public AuthenticationParameters credential(Credential credential)
credential
- the credential to be used by the authentication mechanismpublic AuthenticationParameters newAuthentication(boolean newAuthentication)
newAuthentication
- whether a new authentication dialog is required to be started.public AuthenticationParameters rememberMe(boolean rememberMe)
If "remember me" is not configured, this parameter is silently ignored.
rememberMe
- if true
the "remember me" feature will be used if authentication succeeds and if so configured.RememberMe
,
RememberMeIdentityStore
public Credential getCredential()
credential(Credential)
public void setCredential(Credential credential)
credential
- the credential to be set as parameter in this instance.credential(Credential)
public boolean isNewAuthentication()
newAuthentication(boolean)
public void setNewAuthentication(boolean newAuthentication)
newAuthentication
- whether a new authentication dialog is requirednewAuthentication(boolean)
public boolean isRememberMe()
rememberMe(boolean)
public void setRememberMe(boolean rememberMe)
rememberMe
- whether "remember me" should be used.rememberMe(boolean)
Copyright © 2019 Eclipse Foundation.
Use is subject to license terms.