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 booleanaccessTokenValidbooleanauthGrantValidStringID_TOKEN_HINT_KEYStringPROMPT_KEYStringSTATE_COMMENT_KEYStringSTATE_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 booleanequals(Object obj)protected StringformatToString()URIgetCallback()edu.uiuc.ncsa.security.util.crypto.MyPKCS10CertRequestgetCertReq()StringgetCertReqString()ClientgetClient()net.sf.json.JSONObjectgetIDTokenHint()longgetLifetime()The lifetime of the certificate.StringgetPrompt()List<String>getResponseTypes()net.sf.json.JSONObjectgetState()StringgetUsername()booleanhasIDTokenHintKey()booleanhasPromptKey()booleanisAccessTokenValid()booleanisAuthGrantValid()voidsetAccessTokenValid(boolean accessTokenValid)voidsetAuthGrantValid(boolean authGrantValid)voidsetCallback(URI callback)voidsetCertReq(edu.uiuc.ncsa.security.util.crypto.MyPKCS10CertRequest certReq)voidsetCertReq(String certReq)voidsetCertReqString(String certReqString)voidsetClient(Client client)voidsetIDTokenHint(net.sf.json.JSONObject idTokenHint)voidsetLifetime(long lifetime)voidsetPrompt(String prompt)voidsetState(net.sf.json.JSONObject state)Generally you should never set the state directly unless you know exactly how it is constructed.voidsetUsername(String username)StringtoString()-
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
-
-
-
-
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:
toStringin classBasicTransaction
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classBasicTransaction
-
-