org.expressme.openid
Class Endpoint

java.lang.Object
  extended by org.expressme.openid.Endpoint

public final class Endpoint
extends java.lang.Object

Endpoint for OpenID Provider, and will be cached in memory for a certain time.

Author:
Michael Liao (askxuefeng@gmail.com)

Constructor Summary
Endpoint(java.lang.String url, java.lang.String alias, long maxAgeInMilliSeconds)
          Build Endpoint object by URL and max age.
 
Method Summary
 boolean equals(java.lang.Object o)
          Two Endpoints are equal and only equal if their urls are equal.
 java.lang.String getAlias()
          Get extension alias of this end point.
 java.lang.String getUrl()
          Get URL of this end point.
 int hashCode()
          The hash code of Endpoint is equal to its url's hash code.
 boolean isExpired()
          Check if this Endpoint are expired.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Endpoint

public Endpoint(java.lang.String url,
                java.lang.String alias,
                long maxAgeInMilliSeconds)
Build Endpoint object by URL and max age.

Parameters:
url - URL of endpoint.
alias - Extension alias.
maxAgeInMilliSeconds - Max age in milliseconds.
Method Detail

getUrl

public java.lang.String getUrl()
Get URL of this end point.


getAlias

public java.lang.String getAlias()
Get extension alias of this end point.


isExpired

public boolean isExpired()
Check if this Endpoint are expired.

Returns:
True if expired.

equals

public boolean equals(java.lang.Object o)
Two Endpoints are equal and only equal if their urls are equal.

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
The hash code of Endpoint is equal to its url's hash code.

Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright 2009-2011, JOpenId