Package org.oa4mp.client.api
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
public class Asset extends edu.uiuc.ncsa.security.core.util.IdentifiableImplA 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)
AssetStorejavadoc.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 StringASSET_ID_KEYprotected StringCERT_REQUEST_KEYprotected StringCREATE_TIME_KEYprotected StringPRIVATE_KEY_KEYprotected StringREDIRECT_URI_KEYprotected StringTOKEN_KEYprotected StringUSERNAME_KEYprotected StringX509_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 voidfromJSON(net.sf.json.JSONObject jsonObject)X509Certificate[]getCertificates()edu.uiuc.ncsa.security.util.crypto.MyPKCS10CertRequestgetCertReq()DategetCreationTime()PrivateKeygetPrivateKey()URIgetRedirect()edu.uiuc.ncsa.security.core.IdentifiergetToken()The token is the identifier returned from the server.StringgetUsername()voidsetCertificates(X509Certificate[] certificates)voidsetCertReq(edu.uiuc.ncsa.security.util.crypto.MyPKCS10CertRequest certReq)voidsetCreationTime(Date creationTime)voidsetPrivateKey(PrivateKey privateKey)voidsetRedirect(URI redirect)voidsetToken(edu.uiuc.ncsa.security.core.Identifier token)voidsetUsername(String username)net.sf.json.JSONObjecttoJSON()StringtoString()
-
-
-
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)
-
-