org.jasig.cas.authentication.principal
Class HttpBasedServiceCredentials
java.lang.Object
org.jasig.cas.authentication.principal.HttpBasedServiceCredentials
- All Implemented Interfaces:
- Serializable, Credentials
public class HttpBasedServiceCredentials
- extends Object
- implements Credentials
The Credentials representing an HTTP-based service. HTTP-based services (such
as web applications) are often represented by the URL entry point of the
application.
- Since:
- 3.0
- Version:
- $Revision: 1.3 $ $Date: 2007/04/24 13:01:51 $
- Author:
- Scott Battaglia
- See Also:
- Serialized Form
|
Constructor Summary |
HttpBasedServiceCredentials(URL callbackUrl)
Constructor that takes the URL of the HTTP-based service and creates the
Credentials object. |
HttpBasedServiceCredentials
public HttpBasedServiceCredentials(URL callbackUrl)
- Constructor that takes the URL of the HTTP-based service and creates the
Credentials object. Caches the value of URL.toExternalForm so updates to
the URL will not be reflected in a call to toString().
- Parameters:
callbackUrl - the URL representing the service
- Throws:
IllegalArgumentException - if the callbackUrl is null.
getCallbackUrl
public final URL getCallbackUrl()
- Returns:
- Returns the callbackUrl.
toString
public final String toString()
- Returns the String version of the URL, based on the original URL
provided. i.e. this caches the value of URL.toExternalForm()
- Overrides:
toString in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
Copyright © 2004-2013 Jasig. All Rights Reserved.