Class Certificate

All Implemented Interfaces:
Serializable

public class Certificate extends Base
Represents Certificate attributes
Since:
v2.12
Author:
Jeevanandam M. (jeeva@myjeeva.com)
See Also:
  • Constructor Details

    • Certificate

      public Certificate()
      Default Constructor.
    • Certificate

      public Certificate(String name, String privateKey, String leafCertificate, String certificateChain)
      Constructor for new certificate create request.
      Parameters:
      name - the name for the certificate
      privateKey - the private key
      leafCertificate - the leaf certificate
      certificateChain - the certificate chain
    • Certificate

      public Certificate(String name, String type, List<String> dnsNames)
      Constructor for new Let's Encrypt certificate create request.
      Parameters:
      name - the name for the certificate
      type - the type of the certificate
      dnsNames - list of dns names
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Base
    • getId

      public String getId()
      Returns:
      the id
    • setId

      public void setId(String id)
      Parameters:
      id - the id to set
    • getName

      public String getName()
      Returns:
      the name
    • setName

      public void setName(String name)
      Parameters:
      name - the name to set
    • getNotAfter

      public String getNotAfter()
      Returns:
      the notAfter
    • setNotAfter

      public void setNotAfter(String notAfter)
      Parameters:
      notAfter - the notAfter to set
    • getSha1Fingerprint

      public String getSha1Fingerprint()
      Returns:
      the sha1Fingerprint
    • setSha1Fingerprint

      public void setSha1Fingerprint(String sha1Fingerprint)
      Parameters:
      sha1Fingerprint - the sha1Fingerprint to set
    • getCreatedDate

      public Date getCreatedDate()
      Returns:
      the createdDate
    • setCreatedDate

      public void setCreatedDate(Date createdDate)
      Parameters:
      createdDate - the createdDate to set
    • getPrivateKey

      public String getPrivateKey()
      Returns:
      the privateKey
    • setPrivateKey

      public void setPrivateKey(String privateKey)
      Parameters:
      privateKey - the privateKey to set
    • getLeafCertificate

      public String getLeafCertificate()
      Returns:
      the leafCertificate
    • setLeafCertificate

      public void setLeafCertificate(String leafCertificate)
      Parameters:
      leafCertificate - the leafCertificate to set
    • getCertificateChain

      public String getCertificateChain()
      Returns:
      the certificateChain
    • setCertificateChain

      public void setCertificateChain(String certificateChain)
      Parameters:
      certificateChain - the certificateChain to set
    • getState

      public CertificateState getState()
      Returns:
      the state
    • setState

      public void setState(CertificateState state)
      Parameters:
      state - the state to set
    • getDnsNames

      public List<String> getDnsNames()
      Returns:
      the dnsNames
    • setDnsNames

      public void setDnsNames(List<String> dnsNames)
      Parameters:
      dnsNames - the dnsNames to set
    • getType

      public String getType()
      Returns:
      the type
    • setType

      public void setType(String type)
      Parameters:
      type - the type to set