Package org.eclipse.jetty.client.util
Class SPNEGOAuthentication.SPNEGOResult
- java.lang.Object
-
- org.eclipse.jetty.client.util.SPNEGOAuthentication.SPNEGOResult
-
- All Implemented Interfaces:
Authentication.Result
- Enclosing class:
- SPNEGOAuthentication
public static class SPNEGOAuthentication.SPNEGOResult extends java.lang.Object implements Authentication.Result
-
-
Constructor Summary
Constructors Constructor Description SPNEGOResult(java.net.URI uri, java.lang.String token)
SPNEGOResult(java.net.URI uri, HttpHeader header, java.lang.String token)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(Request request)
Applies the authentication result to the given request.java.net.URI
getURI()
-
-
-
Constructor Detail
-
SPNEGOResult
public SPNEGOResult(java.net.URI uri, java.lang.String token)
-
SPNEGOResult
public SPNEGOResult(java.net.URI uri, HttpHeader header, java.lang.String token)
-
-
Method Detail
-
getURI
public java.net.URI getURI()
- Specified by:
getURI
in interfaceAuthentication.Result
- Returns:
- the URI of the request that has been used to generate this
Authentication.Result
-
apply
public void apply(Request request)
Description copied from interface:Authentication.Result
Applies the authentication result to the given request. Typically, aAuthorization
header is added to the request, with the right information to successfully authenticate at the server.- Specified by:
apply
in interfaceAuthentication.Result
- Parameters:
request
- the request to authenticate
-
-