Class HttpCallback
- java.lang.Object
-
- com.sun.identity.authentication.spi.HttpCallback
-
- All Implemented Interfaces:
Serializable
,Callback
@SupportedAll public class HttpCallback extends Object implements Callback, Serializable
HttpCallback
class implementsCallback
and is used by the authentication module with HTTP protocol based handshaking negotiation.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HttpCallback(String authorizationHeader, String negotiationHeader, String errorCode)
Creates aHttpCallback
object.HttpCallback(String authRHeader, String negoName, String negoValue, int errorCode)
Creates aHttpCallback
object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
Returnstrue
if the callback is for HTTPBasic.boolean
isForWindowsDesktopSSO()
Returnstrue
if the callback is for WindowsDesktopSSO.void
setAuthorization(String authorization)
Set the authorization string to aHttpCallback
object.
-
-
-
Constructor Detail
-
HttpCallback
public HttpCallback(String authorizationHeader, String negotiationHeader, String errorCode)
Creates aHttpCallback
object.- Parameters:
authorizationHeader
- Header name for the authorization string.negotiationHeader
- Negotiation header string.errorCode
- Error code set in the header for negotiation.
-
HttpCallback
public HttpCallback(String authRHeader, String negoName, String negoValue, int errorCode)
Creates aHttpCallback
object. 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 Detail
-
getAuthorizationHeader
public String getAuthorizationHeader()
Returns the authorization header string.- Returns:
- the authorization header string.
-
getNegotiationHeaderName
public String getNegotiationHeaderName()
Returns the negotiation header name.- Returns:
- the negotiation header name.
-
getNegotiationHeaderValue
public String getNegotiationHeaderValue()
Returns the negotiation header value.- Returns:
- the negotiation header value.
-
getNegotiationCode
public int getNegotiationCode()
Returns the negotiation error code.- Returns:
- the negotiation error code.
-
getAuthorization
public String getAuthorization()
Returns the authorization string.- Returns:
- the authorization string.
-
setAuthorization
public void setAuthorization(String authorization)
Set the authorization string to aHttpCallback
object.- Parameters:
authorization
- The value of the Authorization header.
-
isForHTTPBasic
public boolean isForHTTPBasic()
Returnstrue
if the callback is for HTTPBasic.
-
isForWindowsDesktopSSO
public boolean isForWindowsDesktopSSO()
Returnstrue
if the callback is for WindowsDesktopSSO.
-
-