Package com.io7m.canonmill.core.internal
Record Class CMKeyStoreEntryCertificate
java.lang.Object
java.lang.Record
com.io7m.canonmill.core.internal.CMKeyStoreEntryCertificate
- Record Components:
alias- The aliasfile- The filecertificate- The certificatecreationTime- The creation time
- All Implemented Interfaces:
CMKeyStoreEntryType
public record CMKeyStoreEntryCertificate(String alias, Path file, X509Certificate certificate, OffsetDateTime creationTime)
extends Record
implements CMKeyStoreEntryType
A keystore entry for a certificate.
-
Constructor Summary
ConstructorsConstructorDescriptionCMKeyStoreEntryCertificate(String alias, Path file, X509Certificate certificate, OffsetDateTime creationTime) A keystore entry for a certificate. -
Method Summary
Modifier and TypeMethodDescriptionalias()Returns the value of thealiasrecord component.Returns the value of thecertificaterecord component.Returns the value of thecreationTimerecord component.final booleanIndicates whether some other object is "equal to" this one.file()Returns the value of thefilerecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CMKeyStoreEntryCertificate
public CMKeyStoreEntryCertificate(String alias, Path file, X509Certificate certificate, OffsetDateTime creationTime) A keystore entry for a certificate.- Parameters:
alias- The aliasfile- The filecertificate- The certificatecreationTime- The creation time
-
-
Method Details
-
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). -
alias
Returns the value of thealiasrecord component.- Specified by:
aliasin interfaceCMKeyStoreEntryType- Returns:
- the value of the
aliasrecord component
-
file
Returns the value of thefilerecord component.- Returns:
- the value of the
filerecord component
-
certificate
Returns the value of thecertificaterecord component.- Returns:
- the value of the
certificaterecord component
-
creationTime
Returns the value of thecreationTimerecord component.- Specified by:
creationTimein interfaceCMKeyStoreEntryType- Returns:
- the value of the
creationTimerecord component
-