public class HttpCallback extends Object implements Callback, Serializable
HttpCallback
class implements Callback
and is used by the authentication module with HTTP protocol based
handshaking negotiation.Constructor and Description |
---|
HttpCallback(String authorizationHeader,
String negotiationHeader,
String errorCode)
Creates a
HttpCallback object. |
HttpCallback(String authRHeader,
String negoName,
String negoValue,
int errorCode)
Creates a
HttpCallback object. |
Modifier and Type | Method and Description |
---|---|
String |
getAuthorization()
Returns the authorization string.
|
String |
getAuthorizationHeader()
Returns the authorization header string.
|
int |
getNegotiationCode()
Returns the negotiation error code.
|
String |
getNegotiationHeaderName()
Returns the negotiation header name.
|
String |
getNegotiationHeaderValue()
Returns the negotiation header value.
|
boolean |
isForHTTPBasic()
Returns
true if the callback is for HTTPBasic. |
boolean |
isForWindowsDesktopSSO()
Returns
true if the callback is for WindowsDesktopSSO. |
void |
setAuthorization(String authorization)
Set the authorization string to a
HttpCallback object. |
public HttpCallback(String authorizationHeader, String negotiationHeader, String errorCode)
HttpCallback
object.authorizationHeader
- Header name for the authorization string.negotiationHeader
- Negotiation header string.errorCode
- Error code set in the header for negotiation.public HttpCallback(String authRHeader, String negoName, String negoValue, int errorCode)
HttpCallback
object.
The negotiation header is constructed using the
negotiation name and value in the format
negoName:negoValue
.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.public String getAuthorizationHeader()
public String getNegotiationHeaderName()
public String getNegotiationHeaderValue()
public int getNegotiationCode()
public String getAuthorization()
public void setAuthorization(String authorization)
HttpCallback
object.authorization
- The value of the Authorization header.public boolean isForHTTPBasic()
true
if the callback is for HTTPBasic.public boolean isForWindowsDesktopSSO()
true
if the callback is for WindowsDesktopSSO.Copyright © 2010-2018, ForgeRock All Rights Reserved.