public final class HttpBasedServiceCredentialsAuthenticationHandler extends Object implements AuthenticationHandler
This class is concerned with ensuring that the protocol is HTTPS and that a response is returned. The SSL handshake that occurs automatically by opening a connection does the heavy process of authenticating.
| Constructor and Description |
|---|
HttpBasedServiceCredentialsAuthenticationHandler() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticate(Credentials credentials)
Method to determine if the credentials supplied are valid.
|
void |
setHttpClient(HttpClient httpClient)
Sets the HttpClient which will do all of the connection stuff.
|
void |
setRequireSecure(boolean requireSecure)
Set whether a secure url is required or not.
|
boolean |
supports(Credentials credentials)
Method to check if the handler knows how to handle the credentials
provided.
|
public HttpBasedServiceCredentialsAuthenticationHandler()
public boolean authenticate(Credentials credentials)
AuthenticationHandlerauthenticate in interface AuthenticationHandlercredentials - The credentials to validate.public boolean supports(Credentials credentials)
AuthenticationHandlersupports in interface AuthenticationHandlercredentials - The credentials to check.public void setHttpClient(HttpClient httpClient)
public void setRequireSecure(boolean requireSecure)
requireSecure - true if its required, false if not. Default is true.Copyright © 2004-2012 Jasig. All Rights Reserved.