Class OA1TokenImpl
- java.lang.Object
-
- org.oa4mp.delegation.common.impl.token.TokenImpl
-
- org.oa4mp.delegation.common.token.OA1TokenImpl
-
- All Implemented Interfaces:
OA1Token
,NewToken
,Token
,Serializable
- Direct Known Subclasses:
OA1AccessTokenImpl
,OA1AuthorizationGrantImpl
,VerifierImpl
public class OA1TokenImpl extends TokenImpl implements OA1Token
Created by Jeff Gaynor
on 11/9/20 at 9:00 AM- 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
-
Fields inherited from interface edu.uiuc.ncsa.oa4mp.delegation.common.token.impl.OA1Token
SHARED_SECRET_KEY
-
-
Constructor Summary
Constructors Constructor Description OA1TokenImpl(URI token, URI sharedSecret)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringBuilder
createString()
Does everything but final ].boolean
equals(Object obj)
void
fromJSON(net.sf.json.JSONObject json)
String
getSharedSecret()
URI
getURISharedSecret()
void
setSharedSecret(String sharedSecret)
void
setSharedSecret(URI sharedSecret)
net.sf.json.JSONObject
toJSON()
-
Methods inherited from class edu.uiuc.ncsa.oa4mp.delegation.common.token.impl.TokenImpl
decodeToken, encodeToken, getExpiresAt, getIssuedAt, getJti, getJTIAsIdentifier, getLifetime, getPayload, getToken, getTokenType, getURIToken, getVersion, hasPayload, init, isExpired, isJWT, isOldVersion, main, newFromJSON, newToJSON, oldFromJSON, oldToJSON, setExpiresAt, setIssuedAt, setJti, setJWT, setLifetime, setPayload, setToken, setToken, setVersion, toString
-
-
-
-
Method Detail
-
setSharedSecret
public void setSharedSecret(URI sharedSecret)
-
getURISharedSecret
public URI getURISharedSecret()
-
getSharedSecret
public String getSharedSecret()
- Specified by:
getSharedSecret
in interfaceOA1Token
-
setSharedSecret
public void setSharedSecret(String sharedSecret)
- Specified by:
setSharedSecret
in interfaceOA1Token
-
createString
protected StringBuilder createString()
Description copied from class:TokenImpl
Does everything but final ]. Over-ride this and yourTokenImpl.toString()
will work- Overrides:
createString
in classTokenImpl
- Returns:
-
toJSON
public net.sf.json.JSONObject toJSON()
-
-