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
-
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()
long
getLifetime()
The lifetime of the certificate.List<String>
getResponseTypes()
String
getUsername()
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
setLifetime(long lifetime)
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
-
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
-
-