Class CertData

java.lang.Object
com.netscape.certsrv.cert.CertData
All Implemented Interfaces:
JSONSerializer

public class CertData extends Object implements JSONSerializer
Author:
alee
  • Field Details

    • serialNumber

      protected CertId serialNumber
    • issuerDN

      protected String issuerDN
    • subjectDN

      protected String subjectDN
    • prettyPrint

      protected String prettyPrint
    • encoded

      protected String encoded
    • pkcs7CertChain

      protected String pkcs7CertChain
    • notBefore

      protected String notBefore
    • notAfter

      protected String notAfter
    • status

      protected String status
    • nonce

      protected Long nonce
    • revokedOn

      protected Date revokedOn
    • revokedBy

      protected String revokedBy
    • revocationReason

      protected Integer revocationReason
  • Constructor Details

    • CertData

      public CertData()
  • Method Details

    • getSerialNumber

      public CertId getSerialNumber()
    • setSerialNumber

      public void setSerialNumber(CertId serialNumber)
    • getIssuerDN

      public String getIssuerDN()
    • setIssuerDN

      public void setIssuerDN(String issuerDN)
    • getSubjectDN

      public String getSubjectDN()
    • setSubjectDN

      public void setSubjectDN(String subjectDN)
    • getPrettyPrint

      public String getPrettyPrint()
    • setPrettyPrint

      public void setPrettyPrint(String prettyPrint)
    • getEncoded

      public String getEncoded()
    • setEncoded

      public void setEncoded(String encoded)
    • setPkcs7CertChain

      public void setPkcs7CertChain(String chain)
    • getPkcs7CertChain

      public String getPkcs7CertChain()
    • getNotBefore

      public String getNotBefore()
    • setNotBefore

      public void setNotBefore(String notBefore)
    • getNotAfter

      public String getNotAfter()
    • setNotAfter

      public void setNotAfter(String notAfter)
    • getStatus

      public String getStatus()
    • setStatus

      public void setStatus(String status)
    • getNonce

      public Long getNonce()
    • setNonce

      public void setNonce(Long nonce)
    • getRevokedOn

      public Date getRevokedOn()
    • setRevokedOn

      public void setRevokedOn(Date revokedOn)
    • getRevokedBy

      public String getRevokedBy()
    • setRevokedBy

      public void setRevokedBy(String revokedBy)
    • getRevocationReason

      public Integer getRevocationReason()
    • setRevocationReason

      public void setRevocationReason(Integer revocationReason)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toDOM

      public Element toDOM(Document document)
    • fromDOM

      public static CertData fromDOM(Element dataElement)
    • toXML

      public String toXML() throws Exception
      Throws:
      Exception
    • fromXML

      public static CertData fromXML(String xml) throws Exception
      Throws:
      Exception
    • fromCertChain

      public static CertData fromCertChain(org.mozilla.jss.netscape.security.pkcs.PKCS7 pkcs7) throws Exception
      Throws:
      Exception