@NotThreadSafe public class AuthState extends Object
| Constructor and Description |
|---|
AuthState()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
AuthScheme |
getAuthScheme()
Returns the
authentication scheme. |
AuthScope |
getAuthScope()
Returns actual
AuthScope if available |
Credentials |
getCredentials()
Returns user
Credentials selected for authentication if available |
void |
invalidate()
Invalidates the authentication state by resetting its parameters.
|
boolean |
isValid() |
void |
setAuthScheme(AuthScheme authScheme)
Assigns the given
authentication scheme. |
void |
setAuthScope(AuthScope authScope)
Sets actual
AuthScope. |
void |
setCredentials(Credentials credentials)
Sets user
Credentials to be used for authentication |
String |
toString() |
public void invalidate()
public boolean isValid()
public void setAuthScheme(AuthScheme authScheme)
authentication scheme.authScheme - the authentication schemepublic AuthScheme getAuthScheme()
authentication scheme.authentication schemepublic Credentials getCredentials()
Credentials selected for authentication if availablenullpublic void setCredentials(Credentials credentials)
Credentials to be used for authenticationcredentials - User credentialspublic AuthScope getAuthScope()
AuthScope if availablenullpublic void setAuthScope(AuthScope authScope)
AuthScope.authScope - Authentication scopeCopyright © 1999-2012 The Apache Software Foundation. All Rights Reserved.