Class BasicAuthentication.BasicResult
java.lang.Object
org.eclipse.jetty.client.BasicAuthentication.BasicResult
- All Implemented Interfaces:
 Authentication.Result
- Enclosing class:
 BasicAuthentication
Basic authentication result.
Application may utilize this class directly via
AuthenticationStore.addAuthenticationResult(Result)
to perform preemptive authentication, that is immediately
sending the authorization header based on the fact that the
URI is known to require authentication and that username
and password are known a priori.
- 
Constructor Summary
ConstructorsConstructorDescriptionBasicResult(URI uri, String user, String password) BasicResult(URI uri, HttpHeader header, String user, String password) BasicResult(URI uri, HttpHeader header, String user, String password, Charset charset)  - 
Method Summary
 
- 
Constructor Details
- 
BasicResult
 - 
BasicResult
 - 
BasicResult
 
 - 
 - 
Method Details
- 
getURI
- Specified by:
 getURIin interfaceAuthentication.Result- Returns:
 - the URI of the request that has been used to generate this 
Authentication.Result 
 - 
apply
Description copied from interface:Authentication.ResultApplies the authentication result to the given request. Typically, aAuthorizationheader is added to the request, with the right information to successfully authenticate at the server.- Specified by:
 applyin interfaceAuthentication.Result- Parameters:
 request- the request to authenticate
 - 
toString
 
 -