Package org.eclipse.jetty.client.api
Interface Authentication.Result
-
- All Known Implementing Classes:
BasicAuthentication.BasicResult,SPNEGOAuthentication.SPNEGOResult
- Enclosing interface:
- Authentication
public static interface Authentication.ResultAuthentication.Resultholds the information needed to authenticate aRequestviaapply(org.eclipse.jetty.client.api.Request).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidapply(Request request)Applies the authentication result to the given request.java.net.URIgetURI()
-
-
-
Method Detail
-
getURI
java.net.URI getURI()
- Returns:
- the URI of the request that has been used to generate this
Authentication.Result
-
apply
void apply(Request request)
Applies the authentication result to the given request. Typically, aAuthorizationheader is added to the request, with the right information to successfully authenticate at the server.- Parameters:
request- the request to authenticate
-
-