|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.cas.authentication.handler.support.HttpBasedServiceCredentialsAuthenticationHandler
public final class HttpBasedServiceCredentialsAuthenticationHandler
Class to validate the credentials presented by communicating with the web server and checking the certificate that is returned against the hostname, etc.
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 Summary | |
|---|---|
HttpBasedServiceCredentialsAuthenticationHandler()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpBasedServiceCredentialsAuthenticationHandler()
| Method Detail |
|---|
public boolean authenticate(Credentials credentials)
AuthenticationHandler
authenticate in interface AuthenticationHandlercredentials - The credentials to validate.
public boolean supports(Credentials credentials)
AuthenticationHandler
supports 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||