Class OA2ServiceTransaction
- java.lang.Object
-
- edu.uiuc.ncsa.security.core.util.IdentifiableImpl
-
- org.oa4mp.delegation.common.storage.transactions.BasicTransaction
-
- org.oa4mp.delegation.server.ServiceTransaction
-
- org.oa4mp.server.api.OA4MPServiceTransaction
-
- org.oa4mp.server.loader.oauth2.storage.transactions.OA2ServiceTransaction
-
- All Implemented Interfaces:
edu.uiuc.ncsa.security.core.cache.Cacheable,edu.uiuc.ncsa.security.core.DateComparable,edu.uiuc.ncsa.security.core.Identifiable,Serializable,Cloneable,org.oa4mp.delegation.server.server.OA2TransactionScopes,org.oa4mp.delegation.server.server.OIDCServiceTransactionInterface
public class OA2ServiceTransaction extends OA4MPServiceTransaction implements org.oa4mp.delegation.server.server.OA2TransactionScopes, org.oa4mp.delegation.server.server.OIDCServiceTransactionInterface, edu.uiuc.ncsa.security.core.DateComparable
Created by Jeff Gaynor
on 2/28/14 at 1:46 PM- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.oa4mp.delegation.server.ServiceTransaction
accessTokenValid, authGrantValid, ID_TOKEN_HINT_KEY, PROMPT_KEY, STATE_COMMENT_KEY, STATE_KEY
-
Fields inherited from class org.oa4mp.delegation.common.storage.transactions.BasicTransaction
authorizationGrant
-
-
Constructor Summary
Constructors Constructor Description OA2ServiceTransaction(edu.uiuc.ncsa.security.core.Identifier identifier)OA2ServiceTransaction(AuthorizationGrant ag)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)protected StringfirstSix(URI id)Get the last 6 characters of the unique part of an identiferprotected StringformatToString()longgetAccessTokenLifetime()net.sf.json.JSONObjectgetATData()StringgetATJWT()If an JWT access token was returned, a copy is saved here.Collection<String>getATReturnedOriginalScopes()The first set of returned scopes from the token endpoint.List<String>getAudience()Clients may send an audience which is used by some components (notable SciTokens) but is generally optional.DategetAuthTime()longgetAuthzGrantLifetime()List<org.oa4mp.delegation.server.server.claims.ClaimSource>getClaimSources(OA2SE oa2SE)StringgetCodeChallenge()StringgetCodeChallengeMethod()ConfigtoCSgetConfigToCS()StringgetCreatedCallback()This is the callback generated by the system during authorization and exactly what the user's browser is redirected to, if applicable.DategetCreationTS()net.sf.json.JSONObjectgetExtendedAttributes()Extended attributes are sent over the wire as specific requests.FlowStates2getFlowStates()StringgetIDTokenIdentifier()longgetIDTokenLifetime()StringgetLocalConsentUri()When this OA4MP instance is functioning as a proxy, the requesting service can have this client (optionally) forward the user back to an consent page on the reuqester.longgetMaxAtLifetime()longgetMaxIDTLifetime()longgetMaxRtLifetime()StringgetNonce()OA2ClientgetOA2Client()Convenience cast.edu.uiuc.ncsa.security.core.IdentifiergetProvisioningAdminID()edu.uiuc.ncsa.security.core.IdentifiergetProvisioningClientID()Set if this transaction is from a substitution.StringgetProxyId()net.sf.json.JSONObjectgetProxyState()Collection<String>getQueriedATScopes()RefreshTokengetRefreshToken()longgetRefreshTokenExpiresAt()The actual time the refresh token in the transaction expires.longgetRefreshTokenLifetime()This is, unfortunately, overloaded.longgetRequestedATLifetime()longgetRequestedIDTLifetime()longgetRequestedRTLifetime()StringgetRequestState()This is the state parameter in the initial request, if presentList<String>getResource()Resources are URIs that are used as part of theOA2Claims.AUDIENCEclaim in a (compound) access token.StringgetResponseMode()List<String>getResponseTypes()RFC8628StategetRFC8628State()net.sf.json.JSONObjectgetRTData()StringgetRTJWT()If an JWT refresh token was returned, a copy is saved here.Collection<String>getScopes()The resolved scopes for this transaction.StringgetScriptState()StringgetScriptStateSerializationVersion()StringgetUserCode()net.sf.json.JSONObjectgetUserMetaData()List<String>getUseTemplates()Collection<String>getValidatedScopes()The scopes that the user actually consented to on the user consent page.booleanhasATReturnedOriginalScopes()booleanhasAudience()booleanhasAuthTime()booleanhasCodeChallenge()booleanhasCreatedCallback()booleanhasLocalConsentUri()booleanhasMaxATLifetime()booleanhasMaxIDTLifetime()booleanhasMaxRTLifetime()booleanhasRefreshToken()booleanhasRequestedATLifetime()booleanhasRequestedIDTLifetime()booleanhasRequestedRTLifetime()booleanhasResource()booleanhasResponseMode()booleanhasScriptState()booleanhasScriptStateSerializationVersion()booleanhasUseTemplates()booleanisProxyAccessTokenComplete()booleanisRefreshTokenValid()booleanisRFC8628Request()protected List<org.oa4mp.delegation.server.server.claims.ClaimSource>newCSDeserialize(OA2SE oa2SE)protected voidnewCSSerialize(List<org.oa4mp.delegation.server.server.claims.ClaimSource> sources)protected List<org.oa4mp.delegation.server.server.claims.ClaimSource>oldCSDeserialize(OA2SE oa2SE)protected voidoldCSSerialize(List<org.oa4mp.delegation.server.server.claims.ClaimSource> sources)voidsetAccessTokenLifetime(long access_token_lifetime)voidsetATData(net.sf.json.JSONObject atData)voidsetATJWT(String atJWT)voidsetATReturnedOriginalScopes(String s)voidsetATReturnedOriginalScopes(Collection<String> s)voidsetAudience(List<String> audience)voidsetAuthGrantLifetime(long lifetime)voidsetAuthTime(Date authTime)voidsetClaimsSources(List<org.oa4mp.delegation.server.server.claims.ClaimSource> sources)voidsetCodeChallenge(String codeChallenge)voidsetCodeChallengeMethod(String codeChallengeMethod)voidsetCreatedCallback(String createdCallback)voidsetExtendedAttributes(net.sf.json.JSONObject jsonObject)voidsetFlowStates(org.oa4mp.delegation.server.jwt.FlowStates flowStates)voidsetIDTokenIdentifier(String idTokenIdentifier)voidsetIDTokenLifetime(long idTokenLifetime)voidsetLocalConsentURI(String localConsentURI)voidsetMaxATLifetime(long max)voidsetMaxIDTLifetime(long max)voidsetMaxRTLifetime(long max)voidsetNonce(String nonce)voidsetProvisioningAdminID(edu.uiuc.ncsa.security.core.Identifier provisioningAdminID)Sets the provisioning admin partly so we don't have to look it up again and partly so that for very, very long lived transactions, there is absolutely no possibility that the VI can change.voidsetProvisioningClientID(edu.uiuc.ncsa.security.core.Identifier provisioningClientID)voidsetProxyAccessTokenComplete(boolean proxyAccessTokenComplete)voidsetProxyId(String proxyId)voidsetProxyState(net.sf.json.JSONObject proxyState)voidsetQueriedATScopes(Collection<String> queriedATScopes)voidsetRefreshToken(RefreshToken refreshToken)voidsetRefreshTokenExpiresAt(long refreshTokenExpiresAt)voidsetRefreshTokenLifetime(long refreshTokenLifetime)voidsetRefreshTokenValid(boolean refreshTokenValid)voidsetRequestedATLifetime(long atLifetime)voidsetRequestedIDTLifetime(long idtLifetime)voidsetRequestedRTLifetime(long rtLifetime)voidsetRequestState(String requestState)voidsetResource(List<String> r)voidsetResponseMode(String mode)voidsetResponseTypes(List<String> responseTypes)voidsetRFC8628Request(boolean b)voidsetRFC8628State(RFC8628State rfc8628State)voidsetRTData(net.sf.json.JSONObject rtData)voidsetRTJWT(String rtJWT)voidsetScopes(Collection<String> scopes)The scopes requested by the client.voidsetScriptState(String scriptState)Script engines have the option to save their state between calls too.voidsetScriptStateSerialzationVersion(String version)voidsetUserCode(String userCode)voidsetUserMetaData(net.sf.json.JSONObject claims)voidsetUseTemplates(List<String> templates)voidsetValidatedScopes(Collection<String> validatedScopes)Stringsummary()Summary for debugging.StringtoString()-
Methods inherited from class org.oa4mp.server.api.OA4MPServiceTransaction
getMyproxyUsername, isConsentPageOK, setConsentPageOK, setMyproxyUsername
-
Methods inherited from class org.oa4mp.delegation.server.ServiceTransaction
getCallback, getCertReq, getCertReqString, getClient, getIDTokenHint, getLifetime, getPrompt, getState, getUsername, hasIDTokenHintKey, hasPromptKey, isAccessTokenValid, isAuthGrantValid, setAccessTokenValid, setAuthGrantValid, setCallback, setCertReq, setCertReq, setCertReqString, setClient, setIDTokenHint, setLifetime, setPrompt, setState, setUsername
-
Methods inherited from class org.oa4mp.delegation.common.storage.transactions.BasicTransaction
checkTokenEquals, getAccessToken, getAuthorizationGrant, getProtectedAsset, hasAccessToken, hasAuthorizationGrant, hasProtectedAsset, setAccessToken, setAuthorizationGrant, setProtectedAsset
-
Methods inherited from class edu.uiuc.ncsa.security.core.util.IdentifiableImpl
clone, getDescription, getIdentifier, getIdentifierString, isReadOnly, setDescription, setIdentifier, setReadOnly
-
-
-
-
Field Detail
-
FLOW_STATE_KEY
public String FLOW_STATE_KEY
-
CLAIMS_SOURCES_STATE_KEY
public String CLAIMS_SOURCES_STATE_KEY
-
CLAIMS_SOURCES_STATE_KEY2
public String CLAIMS_SOURCES_STATE_KEY2
-
CREATED_CALLBACK_KEY
public String CREATED_CALLBACK_KEY
-
LOCAL_CONSENT_URI
public String LOCAL_CONSENT_URI
-
PROXY_ACCESS_TOKEN_COMPLETE
public String PROXY_ACCESS_TOKEN_COMPLETE
-
CLAIMS_KEY
public String CLAIMS_KEY
-
SCRIPT_STATE_KEY
public String SCRIPT_STATE_KEY
-
SCRIPT_STATE_SERIALZATION_VERSION_KEY
public String SCRIPT_STATE_SERIALZATION_VERSION_KEY
-
AUDIENCE_KEY
public String AUDIENCE_KEY
-
USE_TEMPLATES_KEY
public String USE_TEMPLATES_KEY
-
RESOURCE_KEY
public String RESOURCE_KEY
-
QUERIED_ACCESS_TOKEN_SCOPES_KEY
public String QUERIED_ACCESS_TOKEN_SCOPES_KEY
-
RETURNED_ACCESS_TOKEN_JWT_KEY
public String RETURNED_ACCESS_TOKEN_JWT_KEY
-
RETURNED_REFRESH_TOKEN_JWT_KEY
public String RETURNED_REFRESH_TOKEN_JWT_KEY
-
RESPONSE_TYPE_KEY
public static String RESPONSE_TYPE_KEY
-
proxyId
public String proxyId
-
RFC862_STATE_KEY
public static String RFC862_STATE_KEY
-
AT_RETURNED_ORIGINAL_SCOPES
public static final String AT_RETURNED_ORIGINAL_SCOPES
- See Also:
- Constant Field Values
-
configtoCS
protected ConfigtoCS configtoCS
-
-
Constructor Detail
-
OA2ServiceTransaction
public OA2ServiceTransaction(AuthorizationGrant ag)
-
OA2ServiceTransaction
public OA2ServiceTransaction(edu.uiuc.ncsa.security.core.Identifier identifier)
-
-
Method Detail
-
isProxyAccessTokenComplete
public boolean isProxyAccessTokenComplete()
-
setProxyAccessTokenComplete
public void setProxyAccessTokenComplete(boolean proxyAccessTokenComplete)
-
hasCreatedCallback
public boolean hasCreatedCallback()
-
getCreatedCallback
public String getCreatedCallback()
This is the callback generated by the system during authorization and exactly what the user's browser is redirected to, if applicable.- Returns:
-
setCreatedCallback
public void setCreatedCallback(String createdCallback)
-
hasLocalConsentUri
public boolean hasLocalConsentUri()
-
getLocalConsentUri
public String getLocalConsentUri()
When this OA4MP instance is functioning as a proxy, the requesting service can have this client (optionally) forward the user back to an consent page on the reuqester. This means the user see two consent pages, one for this service (which probably has general scopes like openid, email) and one on the requester that has the specific scopes there (such as for SciTokens or WLCG).- Returns:
-
setLocalConsentURI
public void setLocalConsentURI(String localConsentURI)
-
getProxyId
public String getProxyId()
- Specified by:
getProxyIdin interfaceorg.oa4mp.delegation.server.server.OIDCServiceTransactionInterface
-
setProxyId
public void setProxyId(String proxyId)
- Specified by:
setProxyIdin interfaceorg.oa4mp.delegation.server.server.OIDCServiceTransactionInterface
-
getCreationTS
public Date getCreationTS()
- Specified by:
getCreationTSin interfaceedu.uiuc.ncsa.security.core.DateComparable
-
getUserCode
public String getUserCode()
-
setUserCode
public void setUserCode(String userCode)
-
getOA2Client
public OA2Client getOA2Client()
Convenience cast.- Returns:
-
getFlowStates
public FlowStates2 getFlowStates()
- Specified by:
getFlowStatesin interfaceorg.oa4mp.delegation.server.server.OIDCServiceTransactionInterface
-
getRFC8628State
public RFC8628State getRFC8628State()
-
setProxyState
public void setProxyState(net.sf.json.JSONObject proxyState)
- Specified by:
setProxyStatein interfaceorg.oa4mp.delegation.server.server.OIDCServiceTransactionInterface
-
getProxyState
public net.sf.json.JSONObject getProxyState()
- Specified by:
getProxyStatein interfaceorg.oa4mp.delegation.server.server.OIDCServiceTransactionInterface
-
setRFC8628State
public void setRFC8628State(RFC8628State rfc8628State)
-
getAccessTokenLifetime
public long getAccessTokenLifetime()
- Specified by:
getAccessTokenLifetimein interfaceorg.oa4mp.delegation.server.server.OIDCServiceTransactionInterface
-
setAccessTokenLifetime
public void setAccessTokenLifetime(long access_token_lifetime)
-
getIDTokenLifetime
public long getIDTokenLifetime()
-
setIDTokenLifetime
public void setIDTokenLifetime(long idTokenLifetime)
-
getAudience
public List<String> getAudience()
Clients may send an audience which is used by some components (notable SciTokens) but is generally optional. This is a list of them. This is returned as theOA2Claims.AUDIENCEclaim in JWT access tokens.
Note: These are simply logical names that describe the audience, such as "ALL" or "ligo_cluster." Compare withgetResource()which has a list of URIs for the same purpose.- Specified by:
getAudiencein interfaceorg.oa4mp.delegation.server.server.OIDCServiceTransactionInterface- Returns:
-
setAudience
public void setAudience(List<String> audience)
- Specified by:
setAudiencein interfaceorg.oa4mp.delegation.server.server.OIDCServiceTransactionInterface
-
hasAudience
public boolean hasAudience()
-
hasUseTemplates
public boolean hasUseTemplates()
-
getATReturnedOriginalScopes
public Collection<String> getATReturnedOriginalScopes()
The first set of returned scopes from the token endpoint. These are the maximum set of scopes that can be returned in an access token.- Returns:
-
setATReturnedOriginalScopes
public void setATReturnedOriginalScopes(String s)
-
setATReturnedOriginalScopes
public void setATReturnedOriginalScopes(Collection<String> s)
-
hasATReturnedOriginalScopes
public boolean hasATReturnedOriginalScopes()
-
getRefreshTokenExpiresAt
public long getRefreshTokenExpiresAt()
The actual time the refresh token in the transaction expires.- Returns:
-
setRefreshTokenExpiresAt
public void setRefreshTokenExpiresAt(long refreshTokenExpiresAt)
-
isRFC8628Request
public boolean isRFC8628Request()
-
setRFC8628Request
public void setRFC8628Request(boolean b)
-
getResource
public List<String> getResource()
Resources are URIs that are used as part of theOA2Claims.AUDIENCEclaim in a (compound) access token.- Specified by:
getResourcein interfaceorg.oa4mp.delegation.server.server.OIDCServiceTransactionInterface- Returns:
-
hasResource
public boolean hasResource()
-
setResource
public void setResource(List<String> r)
- Specified by:
setResourcein interfaceorg.oa4mp.delegation.server.server.OIDCServiceTransactionInterface
-
getExtendedAttributes
public net.sf.json.JSONObject getExtendedAttributes()
Extended attributes are sent over the wire as specific requests.- Specified by:
getExtendedAttributesin interfaceorg.oa4mp.delegation.server.server.OIDCServiceTransactionInterface- Returns:
-
getAuthzGrantLifetime
public long getAuthzGrantLifetime()
- Specified by:
getAuthzGrantLifetimein interfaceorg.oa4mp.delegation.server.server.OIDCServiceTransactionInterface
-
setAuthGrantLifetime
public void setAuthGrantLifetime(long lifetime)
-
setExtendedAttributes
public void setExtendedAttributes(net.sf.json.JSONObject jsonObject)
- Specified by:
setExtendedAttributesin interfaceorg.oa4mp.delegation.server.server.OIDCServiceTransactionInterface
-
setFlowStates
public void setFlowStates(org.oa4mp.delegation.server.jwt.FlowStates flowStates)
- Specified by:
setFlowStatesin interfaceorg.oa4mp.delegation.server.server.OIDCServiceTransactionInterface
-
setClaimsSources
public void setClaimsSources(List<org.oa4mp.delegation.server.server.claims.ClaimSource> sources)
- Specified by:
setClaimsSourcesin interfaceorg.oa4mp.delegation.server.server.OIDCServiceTransactionInterface
-
newCSSerialize
protected void newCSSerialize(List<org.oa4mp.delegation.server.server.claims.ClaimSource> sources)
-
oldCSSerialize
protected void oldCSSerialize(List<org.oa4mp.delegation.server.server.claims.ClaimSource> sources)
-
getClaimSources
public List<org.oa4mp.delegation.server.server.claims.ClaimSource> getClaimSources(OA2SE oa2SE)
-
getConfigToCS
public ConfigtoCS getConfigToCS()
-
newCSDeserialize
protected List<org.oa4mp.delegation.server.server.claims.ClaimSource> newCSDeserialize(OA2SE oa2SE) throws Throwable
- Throws:
Throwable
-
oldCSDeserialize
protected List<org.oa4mp.delegation.server.server.claims.ClaimSource> oldCSDeserialize(OA2SE oa2SE) throws Throwable
- Throws:
Throwable
-
setScriptState
public void setScriptState(String scriptState)
Script engines have the option to save their state between calls too. The argument is a (probably base 64 encoded) string that will be returned on request.- Parameters:
scriptState-
-
hasScriptStateSerializationVersion
public boolean hasScriptStateSerializationVersion()
-
getScriptStateSerializationVersion
public String getScriptStateSerializationVersion()
-
setScriptStateSerialzationVersion
public void setScriptStateSerialzationVersion(String version)
-
hasScriptState
public boolean hasScriptState()
-
getScriptState
public String getScriptState()
-
getUserMetaData
public net.sf.json.JSONObject getUserMetaData()
- Specified by:
getUserMetaDatain interfaceorg.oa4mp.delegation.server.server.OA2TransactionScopes- Specified by:
getUserMetaDatain interfaceorg.oa4mp.delegation.server.server.OIDCServiceTransactionInterface
-
setUserMetaData
public void setUserMetaData(net.sf.json.JSONObject claims)
- Specified by:
setUserMetaDatain interfaceorg.oa4mp.delegation.server.server.OIDCServiceTransactionInterface
-
getATData
public net.sf.json.JSONObject getATData()
- Specified by:
getATDatain interfaceorg.oa4mp.delegation.server.server.OIDCServiceTransactionInterface
-
setATData
public void setATData(net.sf.json.JSONObject atData)
- Specified by:
setATDatain interfaceorg.oa4mp.delegation.server.server.OIDCServiceTransactionInterface
-
getProvisioningAdminID
public edu.uiuc.ncsa.security.core.Identifier getProvisioningAdminID()
-
setProvisioningAdminID
public void setProvisioningAdminID(edu.uiuc.ncsa.security.core.Identifier provisioningAdminID)
Sets the provisioning admin partly so we don't have to look it up again and partly so that for very, very long lived transactions, there is absolutely no possibility that the VI can change.- Parameters:
provisioningAdminID-
-
getProvisioningClientID
public edu.uiuc.ncsa.security.core.Identifier getProvisioningClientID()
Set if this transaction is from a substitution. This is the ID of the client that originally started the flow.- Returns:
-
setProvisioningClientID
public void setProvisioningClientID(edu.uiuc.ncsa.security.core.Identifier provisioningClientID)
-
setRTData
public void setRTData(net.sf.json.JSONObject rtData)
-
getRTData
public net.sf.json.JSONObject getRTData()
- Specified by:
getRTDatain interfaceorg.oa4mp.delegation.server.server.OIDCServiceTransactionInterface
-
getResponseMode
public String getResponseMode()
-
setResponseMode
public void setResponseMode(String mode)
-
hasResponseMode
public boolean hasResponseMode()
-
getRequestedATLifetime
public long getRequestedATLifetime()
-
getRequestedIDTLifetime
public long getRequestedIDTLifetime()
-
setRequestedIDTLifetime
public void setRequestedIDTLifetime(long idtLifetime)
-
hasRequestedATLifetime
public boolean hasRequestedATLifetime()
-
hasRequestedIDTLifetime
public boolean hasRequestedIDTLifetime()
-
setRequestedATLifetime
public void setRequestedATLifetime(long atLifetime)
-
getRequestedRTLifetime
public long getRequestedRTLifetime()
-
setRequestedRTLifetime
public void setRequestedRTLifetime(long rtLifetime)
-
hasRequestedRTLifetime
public boolean hasRequestedRTLifetime()
-
getMaxAtLifetime
public long getMaxAtLifetime()
-
setMaxATLifetime
public void setMaxATLifetime(long max)
-
getMaxIDTLifetime
public long getMaxIDTLifetime()
-
setMaxIDTLifetime
public void setMaxIDTLifetime(long max)
-
hasMaxATLifetime
public boolean hasMaxATLifetime()
-
hasMaxIDTLifetime
public boolean hasMaxIDTLifetime()
-
getMaxRtLifetime
public long getMaxRtLifetime()
-
setMaxRTLifetime
public void setMaxRTLifetime(long max)
-
hasMaxRTLifetime
public boolean hasMaxRTLifetime()
-
hasCodeChallenge
public boolean hasCodeChallenge()
-
getCodeChallenge
public String getCodeChallenge()
-
setCodeChallenge
public void setCodeChallenge(String codeChallenge)
-
getCodeChallengeMethod
public String getCodeChallengeMethod()
-
setCodeChallengeMethod
public void setCodeChallengeMethod(String codeChallengeMethod)
-
hasAuthTime
public boolean hasAuthTime()
-
getAuthTime
public Date getAuthTime()
-
setAuthTime
public void setAuthTime(Date authTime)
-
getScopes
public Collection<String> getScopes()
The resolved scopes for this transaction. This means that the intersection of the client's allowed scopes, the client's requested scopes and the scopes enabled on the server are placed here. This should be passed to anything that needs the scopes (e.g. aClaimSource.- Specified by:
getScopesin interfaceorg.oa4mp.delegation.server.server.OA2TransactionScopes- Specified by:
getScopesin interfaceorg.oa4mp.delegation.server.server.OIDCServiceTransactionInterface- Returns:
-
setScopes
public void setScopes(Collection<String> scopes)
The scopes requested by the client. This does not mean they are all allowed, just so we have a list of them. This does cut out repeated scopes, since some client do things like send "openid openid openid email email email email email"- Specified by:
setScopesin interfaceorg.oa4mp.delegation.server.server.OIDCServiceTransactionInterface- Parameters:
scopes-
-
getNonce
public String getNonce()
-
setNonce
public void setNonce(String nonce)
-
isRefreshTokenValid
public boolean isRefreshTokenValid()
-
setRefreshTokenValid
public void setRefreshTokenValid(boolean refreshTokenValid)
-
getRefreshTokenLifetime
public long getRefreshTokenLifetime()
This is, unfortunately, overloaded. It is the initial lifetime allowed by the client and may be set in the registration. If <=0 then refresh tokens are disabled. The actual expiration for the refresh token in the transaction is found inrefreshTokenExpiresAt.- Specified by:
getRefreshTokenLifetimein interfaceorg.oa4mp.delegation.server.server.OIDCServiceTransactionInterface- Returns:
-
setRefreshTokenLifetime
public void setRefreshTokenLifetime(long refreshTokenLifetime)
-
getRequestState
public String getRequestState()
This is the state parameter in the initial request, if present- Returns:
-
setRequestState
public void setRequestState(String requestState)
-
hasRefreshToken
public boolean hasRefreshToken()
-
getRefreshToken
public RefreshToken getRefreshToken()
-
setRefreshToken
public void setRefreshToken(RefreshToken refreshToken)
-
formatToString
protected String formatToString()
- Overrides:
formatToStringin classOA4MPServiceTransaction
-
toString
public String toString()
- Overrides:
toStringin classorg.oa4mp.delegation.server.ServiceTransaction
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classOA4MPServiceTransaction
-
getValidatedScopes
public Collection<String> getValidatedScopes()
The scopes that the user actually consented to on the user consent page. These are set once and never updated to prevent up scoping.- Returns:
-
setValidatedScopes
public void setValidatedScopes(Collection<String> validatedScopes)
-
getQueriedATScopes
public Collection<String> getQueriedATScopes()
-
setQueriedATScopes
public void setQueriedATScopes(Collection<String> queriedATScopes)
-
getATJWT
public String getATJWT()
If an JWT access token was returned, a copy is saved here.- Returns:
-
setATJWT
public void setATJWT(String atJWT)
-
getRTJWT
public String getRTJWT()
If an JWT refresh token was returned, a copy is saved here.- Returns:
-
setRTJWT
public void setRTJWT(String rtJWT)
-
firstSix
protected String firstSix(URI id)
Get the last 6 characters of the unique part of an identifer- Parameters:
id-- Returns:
-
getIDTokenIdentifier
public String getIDTokenIdentifier()
- Specified by:
getIDTokenIdentifierin interfaceorg.oa4mp.delegation.server.server.OIDCServiceTransactionInterface
-
setIDTokenIdentifier
public void setIDTokenIdentifier(String idTokenIdentifier)
- Specified by:
setIDTokenIdentifierin interfaceorg.oa4mp.delegation.server.server.OIDCServiceTransactionInterface
-
summary
public String summary()
Summary for debugging.- Returns:
-
getResponseTypes
public List<String> getResponseTypes()
- Overrides:
getResponseTypesin classorg.oa4mp.delegation.server.ServiceTransaction
-
-