Class AccessTokenImpl
- java.lang.Object
-
- org.oa4mp.delegation.common.impl.token.TokenImpl
-
- org.oa4mp.delegation.common.impl.token.AccessTokenImpl
-
- All Implemented Interfaces:
AccessToken
,NewToken
,Token
,Serializable
public class AccessTokenImpl extends TokenImpl implements AccessToken
Created by Jeff Gaynor
on Mar 16, 2011 at 1:01:13 PM- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class edu.uiuc.ncsa.oa4mp.delegation.common.token.impl.TokenImpl
EXPIRES_AT, IS_JWT, JTI, PAYLOAD, TOKEN, TOKEN_TYPE
-
Fields inherited from interface edu.uiuc.ncsa.oa4mp.delegation.common.token.NewToken
OLD_SYSTEM_DEFAULT_LIFETIME
-
-
Constructor Summary
Constructors Constructor Description AccessTokenImpl()
AccessTokenImpl(String sciToken, URI jti)
AccessTokenImpl(URI token)
For tokens that are not complex (e.g.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
protected String
getTokenType()
-
Methods inherited from class edu.uiuc.ncsa.oa4mp.delegation.common.token.impl.TokenImpl
createString, decodeToken, encodeToken, fromJSON, getExpiresAt, getIssuedAt, getJti, getJTIAsIdentifier, getLifetime, getPayload, getToken, getURIToken, getVersion, hasPayload, init, isExpired, isJWT, isOldVersion, main, newFromJSON, newToJSON, oldFromJSON, oldToJSON, setExpiresAt, setIssuedAt, setJti, setJWT, setLifetime, setPayload, setToken, setToken, setVersion, toJSON, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface edu.uiuc.ncsa.oa4mp.delegation.common.token.AccessToken
getPayload, setPayload
-
Methods inherited from interface edu.uiuc.ncsa.oa4mp.delegation.common.token.NewToken
decodeToken, encodeToken, fromJSON, getIssuedAt, getJti, getJTIAsIdentifier, getLifetime, getVersion, isExpired, toJSON
-
-
-
-
Constructor Detail
-
AccessTokenImpl
public AccessTokenImpl(URI token)
For tokens that are not complex (e.g. not a WLCG token)- Parameters:
token
-
-
AccessTokenImpl
public AccessTokenImpl(String sciToken, URI jti)
- Parameters:
sciToken
- an opaque string that is the encoded complex token.jti
- the unique id for the token. Used to get lifetime etc.
-
AccessTokenImpl
public AccessTokenImpl()
-
-