Package com.io7m.certusine.certstore.api
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
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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
Returns the value of thedomainrecord component.- Returns:
- the value of the
domainrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
createdOn
Returns the value of thecreatedOnrecord component.- Returns:
- the value of the
createdOnrecord component
-
expiresOn
Returns the value of theexpiresOnrecord component.- Returns:
- the value of the
expiresOnrecord component
-
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
-