Methods Summary |
---|
public org.apache.http.auth.AuthScheme | getAuthScheme()Returns the {@link AuthScheme authentication scheme}.
return this.authScheme;
|
public org.apache.http.auth.AuthScope | getAuthScope()Returns actual {@link AuthScope} if available
return this.authScope;
|
public org.apache.http.auth.Credentials | getCredentials()Returns user {@link Credentials} selected for authentication if available
return this.credentials;
|
public void | invalidate()Invalidates the authentication state by resetting its parameters.
this.authScheme = null;
this.authScope = null;
this.credentials = null;
|
public boolean | isValid()
return this.authScheme != null;
|
public void | setAuthScheme(org.apache.http.auth.AuthScheme authScheme)Assigns the given {@link AuthScheme authentication scheme}.
if (authScheme == null) {
invalidate();
return;
}
this.authScheme = authScheme;
|
public void | setAuthScope(org.apache.http.auth.AuthScope authScope)Sets actual {@link AuthScope}.
this.authScope = authScope;
|
public void | setCredentials(org.apache.http.auth.Credentials credentials)Sets user {@link Credentials} to be used for authentication
this.credentials = credentials;
|
public java.lang.String | toString()
StringBuilder buffer = new StringBuilder();
buffer.append("auth scope [");
buffer.append(this.authScope);
buffer.append("]; credentials set [");
buffer.append(this.credentials != null ? "true" : "false");
buffer.append("]");
return buffer.toString();
|