Authentication.Resultpublic static class BasicAuthentication.BasicResult extends java.lang.Object implements 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 | Description |
|---|---|
BasicResult(java.net.URI uri,
java.lang.String user,
java.lang.String password) |
|
BasicResult(java.net.URI uri,
org.eclipse.jetty.http.HttpHeader header,
java.lang.String user,
java.lang.String password) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
apply(Request request) |
Applies the authentication result to the given request.
|
java.net.URI |
getURI() |
|
java.lang.String |
toString() |
public BasicResult(java.net.URI uri,
java.lang.String user,
java.lang.String password)
public BasicResult(java.net.URI uri,
org.eclipse.jetty.http.HttpHeader header,
java.lang.String user,
java.lang.String password)
public java.net.URI getURI()
getURI in interface Authentication.ResultAuthentication.Resultpublic void apply(Request request)
Authentication.ResultAuthorization header is added to the request, with the right information to
successfully authenticate at the server.apply in interface Authentication.Resultrequest - the request to authenticatepublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 1995–2018 Webtide. All rights reserved.