@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 scheme
public AuthScheme getAuthScheme()
authentication scheme
.authentication scheme
public Credentials getCredentials()
Credentials
selected for authentication if availablenull
public void setCredentials(Credentials credentials)
Credentials
to be used for authenticationcredentials
- User credentialspublic AuthScope getAuthScope()
AuthScope
if availablenull
public void setAuthScope(AuthScope authScope)
AuthScope
.authScope
- Authentication scopeCopyright © 1999-2012 The Apache Software Foundation. All Rights Reserved.