org.jasig.cas.authentication.principal
Class HttpBasedServiceCredentials
java.lang.Object
org.jasig.cas.authentication.principal.HttpBasedServiceCredentials
- All Implemented Interfaces:
- java.io.Serializable, Credentials
public class HttpBasedServiceCredentials
- extends java.lang.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(java.net.URL callbackUrl)
Constructor that takes the URL of the HTTP-based service and creates the
Credentials object. |
|
Method Summary |
boolean |
equals(java.lang.Object obj)
|
java.net.URL |
getCallbackUrl()
|
int |
hashCode()
|
java.lang.String |
toString()
Returns the String version of the URL, based on the original URL
provided. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
HttpBasedServiceCredentials
public HttpBasedServiceCredentials(java.net.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:
java.lang.IllegalArgumentException - if the callbackUrl is null.
getCallbackUrl
public final java.net.URL getCallbackUrl()
- Returns:
- Returns the callbackUrl.
toString
public final java.lang.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 java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
Copyright © 2004-2010 Java Architectures Special Interest Group. All Rights Reserved.