Class HttpCallback
java.lang.Object
com.sun.identity.authentication.spi.HttpCallback
- All Implemented Interfaces:
Serializable,Callback
HttpCallback class implements Callback
and is used by the authentication module with HTTP protocol based
handshaking negotiation.- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionHttpCallback(String authorizationHeader, String negotiationHeader, String errorCode) Creates aHttpCallbackobject.HttpCallback(String authRHeader, String negoName, String negoValue, int errorCode) Creates aHttpCallbackobject. -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpCallback.Builderbuilder()Returns a newHttpCallback.Builderobject to use for construction of aHttpCallback.Returns the authorization string.Returns the authorization header string.intReturns the negotiation error code.Returns the negotiation header name.Returns the negotiation header value.booleanReturnstrueif the callback is for HTTPBasic.booleanReturnstrueif the callback is for WindowsDesktopSSO.voidsetAuthorization(String authorization) Set the authorization string to aHttpCallbackobject.
-
Constructor Details
-
HttpCallback
@Supported public HttpCallback(String authorizationHeader, String negotiationHeader, String errorCode) Creates aHttpCallbackobject.- Parameters:
authorizationHeader- Header name for the authorization string.negotiationHeader- Negotiation header string.errorCode- Error code set in the header for negotiation.
-
HttpCallback
@Supported public HttpCallback(String authRHeader, String negoName, String negoValue, int errorCode) Creates aHttpCallbackobject. The negotiation header is constructed using the negotiation name and value in the formatnegoName:negoValue.- Parameters:
authRHeader- Header name for the authorization string.negoName- Negotiation name in the negotiation header.negoValue- Negotiation value in the negotiation header.errorCode- Error code set in the header for negotiation.
-
-
Method Details
-
getAuthorizationHeader
Returns the authorization header string.- Returns:
- the authorization header string.
-
getNegotiationHeaderName
Returns the negotiation header name.- Returns:
- the negotiation header name.
-
getNegotiationHeaderValue
Returns the negotiation header value.- Returns:
- the negotiation header value.
-
getNegotiationCode
Returns the negotiation error code.- Returns:
- the negotiation error code.
-
getAuthorization
Returns the authorization string.- Returns:
- the authorization string.
-
setAuthorization
Set the authorization string to aHttpCallbackobject.- Parameters:
authorization- The value of the Authorization header.
-
isForHTTPBasic
Returnstrueif the callback is for HTTPBasic. -
isForWindowsDesktopSSO
Returnstrueif the callback is for WindowsDesktopSSO. -
builder
Returns a newHttpCallback.Builderobject to use for construction of aHttpCallback.- Returns:
- a new
HttpCallback.Builderobject.
-