org.apache.shindig.auth
Class AbstractSecurityToken
java.lang.Object
org.apache.shindig.auth.AbstractSecurityToken
- All Implemented Interfaces:
- SecurityToken
- Direct Known Subclasses:
- AnonymousSecurityToken, BasicSecurityToken, BlobCrypterSecurityToken
public abstract class AbstractSecurityToken
- extends Object
- implements SecurityToken
A base class for SecurityToken Implementations. Currently provides an isExpired() method
- Since:
- 2.0.0
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.shindig.auth.SecurityToken |
getAppId, getAppUrl, getAuthenticationMode, getContainer, getDomain, getExpiresAt, getModuleId, getOwnerId, getTrustedJson, getUpdatedToken, getViewerId, isAnonymous |
AbstractSecurityToken
public AbstractSecurityToken()
isExpired
public boolean isExpired()
- Specified by:
isExpired in interface SecurityToken
- Returns:
- true if the token is no longer valid
getActiveUrl
public String getActiveUrl()
- Specified by:
getActiveUrl in interface SecurityToken
- Returns:
- the URL being used by the current request
The returned URL must contain at least protocol, host, and port.
The returned URL may contain path or query parameters.
Copyright © 2007-2012. All Rights Reserved.