Class 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)
    read more on the use of this in the AssetStore javadoc.

    Created by Jeff Gaynor
    on 1/29/13 at 10:51 AM

    See Also:
    Serialized Form
    • 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
    • Constructor Detail

      • Asset

        public Asset​(edu.uiuc.ncsa.security.core.Identifier identifier)
    • 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)
      • 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)