Class OA2Asset
- java.lang.Object
-
- edu.uiuc.ncsa.security.core.util.IdentifiableImpl
-
- edu.uiuc.ncsa.myproxy.oa4mp.client.Asset
-
- edu.uiuc.ncsa.oa4mp.oauth2.client.OA2Asset
-
- All Implemented Interfaces:
edu.uiuc.ncsa.security.core.Identifiable
,Serializable
,Cloneable
public class OA2Asset extends Asset
Created by Jeff Gaynor
on 3/28/14 at 12:04 PM- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected String
ACCESS_TOKEN_KEY
protected String
ID_TOKEN_KEY
protected String
ISSUED_AT_KEY
protected String
NONCE_KEY
protected String
REFRESH_TOKEN_KEY
protected String
STATE_KEY
-
Fields inherited from class edu.uiuc.ncsa.myproxy.oa4mp.client.Asset
ASSET_ID_KEY, CERT_REQUEST_KEY, CREATE_TIME_KEY, PRIVATE_KEY_KEY, REDIRECT_URI_KEY, TOKEN_KEY, USERNAME_KEY, X509_CERTS_KEY
-
-
Constructor Summary
Constructors Constructor Description OA2Asset(edu.uiuc.ncsa.security.core.Identifier identifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
fromJSON(net.sf.json.JSONObject jsonObject)
AccessTokenImpl
getAccessToken()
net.sf.json.JSONObject
getIdToken()
Date
getIssuedAt()
String
getNonce()
RefreshTokenImpl
getRefreshToken()
String
getState()
boolean
hasRefreshToken()
void
setAccessToken(AccessTokenImpl accessToken)
void
setIdToken(net.sf.json.JSONObject idToken)
void
setIssuedAt(Date issuedAt)
void
setNonce(String nonce)
void
setRefreshToken(RefreshTokenImpl refreshToken)
void
setState(String state)
net.sf.json.JSONObject
toJSON()
-
Methods inherited from class edu.uiuc.ncsa.myproxy.oa4mp.client.Asset
getCertificates, getCertReq, getCreationTime, getPrivateKey, getRedirect, getToken, getUsername, setCertificates, setCertReq, setCreationTime, setPrivateKey, setRedirect, setToken, setUsername, toString
-
-
-
-
Method Detail
-
hasRefreshToken
public boolean hasRefreshToken()
-
getIssuedAt
public Date getIssuedAt()
-
setIssuedAt
public void setIssuedAt(Date issuedAt)
-
getState
public String getState()
-
setState
public void setState(String state)
-
getNonce
public String getNonce()
-
setNonce
public void setNonce(String nonce)
-
getAccessToken
public AccessTokenImpl getAccessToken()
-
setAccessToken
public void setAccessToken(AccessTokenImpl accessToken)
-
getRefreshToken
public RefreshTokenImpl getRefreshToken()
-
setRefreshToken
public void setRefreshToken(RefreshTokenImpl refreshToken)
-
getIdToken
public net.sf.json.JSONObject getIdToken()
-
setIdToken
public void setIdToken(net.sf.json.JSONObject idToken)
-
-