Class Asset
- java.lang.Object
-
- edu.uiuc.ncsa.security.core.util.IdentifiableImpl
-
- org.oa4mp.client.api.Asset
-
- All Implemented Interfaces:
edu.uiuc.ncsa.security.core.Identifiable
,Serializable
,Cloneable
- Direct Known Subclasses:
OA2Asset
public class Asset extends edu.uiuc.ncsa.security.core.util.IdentifiableImpl
A storage class that contains the- certificate chain
- private key used in the request
- the redirect returned from the server
- the username used for the MyProxy call
- the creation time of this entry (useful for removing expired/old assets)
AssetStore
javadoc.Created by Jeff Gaynor
on 1/29/13 at 10:51 AM- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected String
ASSET_ID_KEY
protected String
CERT_REQUEST_KEY
protected String
CREATE_TIME_KEY
protected String
PRIVATE_KEY_KEY
protected String
REDIRECT_URI_KEY
protected String
TOKEN_KEY
protected String
USERNAME_KEY
protected String
X509_CERTS_KEY
-
Constructor Summary
Constructors Constructor Description Asset(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)
X509Certificate[]
getCertificates()
edu.uiuc.ncsa.security.util.crypto.MyPKCS10CertRequest
getCertReq()
Date
getCreationTime()
PrivateKey
getPrivateKey()
URI
getRedirect()
edu.uiuc.ncsa.security.core.Identifier
getToken()
The token is the identifier returned from the server.String
getUsername()
void
setCertificates(X509Certificate[] certificates)
void
setCertReq(edu.uiuc.ncsa.security.util.crypto.MyPKCS10CertRequest certReq)
void
setCreationTime(Date creationTime)
void
setPrivateKey(PrivateKey privateKey)
void
setRedirect(URI redirect)
void
setToken(edu.uiuc.ncsa.security.core.Identifier token)
void
setUsername(String username)
net.sf.json.JSONObject
toJSON()
String
toString()
-
-
-
Field Detail
-
USERNAME_KEY
protected String USERNAME_KEY
-
PRIVATE_KEY_KEY
protected String PRIVATE_KEY_KEY
-
X509_CERTS_KEY
protected String X509_CERTS_KEY
-
CREATE_TIME_KEY
protected String CREATE_TIME_KEY
-
CERT_REQUEST_KEY
protected String CERT_REQUEST_KEY
-
REDIRECT_URI_KEY
protected String REDIRECT_URI_KEY
-
ASSET_ID_KEY
protected String ASSET_ID_KEY
-
TOKEN_KEY
protected String TOKEN_KEY
-
-
Method Detail
-
getToken
public edu.uiuc.ncsa.security.core.Identifier getToken()
The token is the identifier returned from the server. This should be stored for future reference.- Returns:
-
setToken
public void setToken(edu.uiuc.ncsa.security.core.Identifier token)
-
getCertReq
public edu.uiuc.ncsa.security.util.crypto.MyPKCS10CertRequest getCertReq()
-
setCertReq
public void setCertReq(edu.uiuc.ncsa.security.util.crypto.MyPKCS10CertRequest certReq)
-
getCreationTime
public Date getCreationTime()
-
setCreationTime
public void setCreationTime(Date creationTime)
-
getRedirect
public URI getRedirect()
-
setRedirect
public void setRedirect(URI redirect)
-
getCertificates
public X509Certificate[] getCertificates()
-
setCertificates
public void setCertificates(X509Certificate[] certificates)
-
getPrivateKey
public PrivateKey getPrivateKey()
-
setPrivateKey
public void setPrivateKey(PrivateKey privateKey)
-
getUsername
public String getUsername()
-
setUsername
public void setUsername(String username)
-
toJSON
public net.sf.json.JSONObject toJSON()
-
fromJSON
public void fromJSON(net.sf.json.JSONObject jsonObject)
-
-