Package org.oa4mp.delegation.server
Class ServiceTransaction
- java.lang.Object
-
- edu.uiuc.ncsa.security.core.util.IdentifiableImpl
-
- org.oa4mp.delegation.common.storage.transactions.BasicTransaction
-
- org.oa4mp.delegation.server.ServiceTransaction
-
- All Implemented Interfaces:
edu.uiuc.ncsa.security.core.cache.Cacheable
,edu.uiuc.ncsa.security.core.Identifiable
,Serializable
,Cloneable
public class ServiceTransaction extends BasicTransaction
Server-side transactions. These should be stored between (the stateless) calls in the protocol.Created by Jeff Gaynor
on Apr 16, 2010 at 10:36:51 AM- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description boolean
accessTokenValid
boolean
authGrantValid
String
ID_TOKEN_HINT_KEY
String
PROMPT_KEY
String
STATE_COMMENT_KEY
String
STATE_KEY
-
Fields inherited from class org.oa4mp.delegation.common.storage.transactions.BasicTransaction
authorizationGrant
-
-
Constructor Summary
Constructors Constructor Description ServiceTransaction(edu.uiuc.ncsa.security.core.Identifier identifier)
ServiceTransaction(AuthorizationGrant ag)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
protected String
formatToString()
URI
getCallback()
edu.uiuc.ncsa.security.util.crypto.MyPKCS10CertRequest
getCertReq()
String
getCertReqString()
Client
getClient()
net.sf.json.JSONObject
getIDTokenHint()
long
getLifetime()
The lifetime of the certificate.String
getPrompt()
List<String>
getResponseTypes()
net.sf.json.JSONObject
getState()
String
getUsername()
boolean
hasIDTokenHintKey()
boolean
hasPromptKey()
boolean
isAccessTokenValid()
boolean
isAuthGrantValid()
void
setAccessTokenValid(boolean accessTokenValid)
void
setAuthGrantValid(boolean authGrantValid)
void
setCallback(URI callback)
void
setCertReq(edu.uiuc.ncsa.security.util.crypto.MyPKCS10CertRequest certReq)
void
setCertReq(String certReq)
void
setCertReqString(String certReqString)
void
setClient(Client client)
void
setIDTokenHint(net.sf.json.JSONObject idTokenHint)
void
setLifetime(long lifetime)
void
setPrompt(String prompt)
void
setState(net.sf.json.JSONObject state)
Generally you should never set the state directly unless you know exactly how it is constructed.void
setUsername(String username)
String
toString()
-
Methods inherited from class org.oa4mp.delegation.common.storage.transactions.BasicTransaction
checkTokenEquals, getAccessToken, getAuthorizationGrant, getProtectedAsset, getVerifier, hasAccessToken, hasAuthorizationGrant, hasProtectedAsset, hasVerifier, setAccessToken, setAuthorizationGrant, setProtectedAsset, setVerifier
-
Methods inherited from class edu.uiuc.ncsa.security.core.util.IdentifiableImpl
clone, getDescription, getIdentifier, getIdentifierString, isReadOnly, setDescription, setIdentifier, setReadOnly
-
-
-
-
Constructor Detail
-
ServiceTransaction
public ServiceTransaction(edu.uiuc.ncsa.security.core.Identifier identifier)
-
ServiceTransaction
public ServiceTransaction(AuthorizationGrant ag)
-
-
Method Detail
-
hasPromptKey
public boolean hasPromptKey()
-
getPrompt
public String getPrompt()
-
setPrompt
public void setPrompt(String prompt)
-
hasIDTokenHintKey
public boolean hasIDTokenHintKey()
-
getIDTokenHint
public net.sf.json.JSONObject getIDTokenHint()
-
setIDTokenHint
public void setIDTokenHint(net.sf.json.JSONObject idTokenHint)
-
setState
public void setState(net.sf.json.JSONObject state)
Generally you should never set the state directly unless you know exactly how it is constructed.- Parameters:
state
-
-
getState
public net.sf.json.JSONObject getState()
-
isAuthGrantValid
public boolean isAuthGrantValid()
-
setAuthGrantValid
public void setAuthGrantValid(boolean authGrantValid)
-
isAccessTokenValid
public boolean isAccessTokenValid()
-
setAccessTokenValid
public void setAccessTokenValid(boolean accessTokenValid)
-
getCallback
public URI getCallback()
-
setCallback
public void setCallback(URI callback)
-
getClient
public Client getClient()
-
setClient
public void setClient(Client client)
-
setLifetime
public void setLifetime(long lifetime)
-
getLifetime
public long getLifetime()
The lifetime of the certificate. This is stored internally in milliseconds, so must be converted to seconds before use in most applications.- Returns:
-
getUsername
public String getUsername()
-
setUsername
public void setUsername(String username)
-
getCertReq
public edu.uiuc.ncsa.security.util.crypto.MyPKCS10CertRequest getCertReq()
-
setCertReqString
public void setCertReqString(String certReqString)
-
getCertReqString
public String getCertReqString()
-
setCertReq
public void setCertReq(String certReq)
-
setCertReq
public void setCertReq(edu.uiuc.ncsa.security.util.crypto.MyPKCS10CertRequest certReq)
-
formatToString
protected String formatToString()
-
toString
public String toString()
- Overrides:
toString
in classBasicTransaction
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classBasicTransaction
-
-