Record Class CSCertificateStored
java.lang.Object
java.lang.Record
com.io7m.certusine.certstore.api.CSCertificateStored
- Record Components:
domain- The domain namename- The certificate namecreatedOn- The time/date this certificate was createdexpiresOn- The time/date this certificate expirespemEncodedCertificate- The single PEM-encoded certificatepemEncodedCertificateFullChain- The full PEM-encoded certificate chain
- All Implemented Interfaces:
Serializable
public record CSCertificateStored(String domain, CSCertificateName name, OffsetDateTime createdOn, OffsetDateTime expiresOn, String pemEncodedCertificate, String pemEncodedCertificateFullChain)
extends Record
implements Serializable
A stored certificate.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCSCertificateStored(String domain, CSCertificateName name, OffsetDateTime createdOn, OffsetDateTime expiresOn, String pemEncodedCertificate, String pemEncodedCertificateFullChain) A stored certificate. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecreatedOnrecord component.domain()Returns the value of thedomainrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpiresOnrecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.Returns the value of thepemEncodedCertificaterecord component.Returns the value of thepemEncodedCertificateFullChainrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CSCertificateStored
public CSCertificateStored(String domain, CSCertificateName name, OffsetDateTime createdOn, OffsetDateTime expiresOn, String pemEncodedCertificate, String pemEncodedCertificateFullChain) A stored certificate.- Parameters:
domain- The domain namename- The certificate namecreatedOn- The time/date this certificate was createdexpiresOn- The time/date this certificate expirespemEncodedCertificate- The single PEM-encoded certificatepemEncodedCertificateFullChain- The full PEM-encoded certificate chain
-
-
Method Details
-
identifier
- Returns:
- The certificate identifier
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
domain
-
name
-
createdOn
-
expiresOn
-
pemEncodedCertificate
Returns the value of thepemEncodedCertificaterecord component.- Returns:
- the value of the
pemEncodedCertificaterecord component
-
pemEncodedCertificateFullChain
Returns the value of thepemEncodedCertificateFullChainrecord component.- Returns:
- the value of the
pemEncodedCertificateFullChainrecord component
-