Package com.myjeeva.digitalocean.pojo
Class Certificate
java.lang.Object
com.myjeeva.digitalocean.pojo.RateLimitBase
com.myjeeva.digitalocean.pojo.Base
com.myjeeva.digitalocean.pojo.Certificate
- All Implemented Interfaces:
Serializable
Represents Certificate attributes
- Since:
- v2.12
- Author:
- Jeevanandam M. (jeeva@myjeeva.com)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault Constructor.Certificate(String name, String privateKey, String leafCertificate, String certificateChain) Constructor for new certificate create request.Certificate(String name, String type, List<String> dnsNames) Constructor for new Let's Encrypt certificate create request. -
Method Summary
Modifier and TypeMethodDescriptiongetId()getName()getState()getType()voidsetCertificateChain(String certificateChain) voidsetCreatedDate(Date createdDate) voidsetDnsNames(List<String> dnsNames) voidvoidsetLeafCertificate(String leafCertificate) voidvoidsetNotAfter(String notAfter) voidsetPrivateKey(String privateKey) voidsetSha1Fingerprint(String sha1Fingerprint) voidsetState(CertificateState state) voidtoString()Methods inherited from class com.myjeeva.digitalocean.pojo.Base
getLinks, getMeta, setLinks, setMetaMethods inherited from class com.myjeeva.digitalocean.pojo.RateLimitBase
getRateLimit, setRateLimit
-
Constructor Details
-
Certificate
public Certificate()Default Constructor. -
Certificate
Constructor for new certificate create request.- Parameters:
name- the name for the certificateprivateKey- the private keyleafCertificate- the leaf certificatecertificateChain- the certificate chain
-
Certificate
Constructor for new Let's Encrypt certificate create request.- Parameters:
name- the name for the certificatetype- the type of the certificatednsNames- list of dns names
-
-
Method Details
-
toString
-
getId
- Returns:
- the id
-
setId
- Parameters:
id- the id to set
-
getName
- Returns:
- the name
-
setName
- Parameters:
name- the name to set
-
getNotAfter
- Returns:
- the notAfter
-
setNotAfter
- Parameters:
notAfter- the notAfter to set
-
getSha1Fingerprint
- Returns:
- the sha1Fingerprint
-
setSha1Fingerprint
- Parameters:
sha1Fingerprint- the sha1Fingerprint to set
-
getCreatedDate
- Returns:
- the createdDate
-
setCreatedDate
- Parameters:
createdDate- the createdDate to set
-
getPrivateKey
- Returns:
- the privateKey
-
setPrivateKey
- Parameters:
privateKey- the privateKey to set
-
getLeafCertificate
- Returns:
- the leafCertificate
-
setLeafCertificate
- Parameters:
leafCertificate- the leafCertificate to set
-
getCertificateChain
- Returns:
- the certificateChain
-
setCertificateChain
- Parameters:
certificateChain- the certificateChain to set
-
getState
- Returns:
- the state
-
setState
- Parameters:
state- the state to set
-
getDnsNames
- Returns:
- the dnsNames
-
setDnsNames
- Parameters:
dnsNames- the dnsNames to set
-
getType
- Returns:
- the type
-
setType
- Parameters:
type- the type to set
-