Package com.io7m.canonmill.core.internal
Record Class CMKeyStoreEntryKey
java.lang.Object
java.lang.Record
com.io7m.canonmill.core.internal.CMKeyStoreEntryKey
- Record Components:
alias- The aliasfile- The fileprivateKey- The private keycreationTime- The creation time
- All Implemented Interfaces:
CMKeyStoreEntryType
public record CMKeyStoreEntryKey(String alias, Path file, PrivateKey privateKey, OffsetDateTime creationTime)
extends Record
implements CMKeyStoreEntryType
A keystore entry for a private key.
-
Constructor Summary
ConstructorsConstructorDescriptionCMKeyStoreEntryKey(String alias, Path file, PrivateKey privateKey, OffsetDateTime creationTime) A keystore entry for a private key. -
Method Summary
Modifier and TypeMethodDescriptionalias()Returns the value of thealiasrecord 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.Returns the value of theprivateKeyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CMKeyStoreEntryKey
public CMKeyStoreEntryKey(String alias, Path file, PrivateKey privateKey, OffsetDateTime creationTime) A keystore entry for a private key.- Parameters:
alias- The aliasfile- The fileprivateKey- The private keycreationTime- 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
-
privateKey
Returns the value of theprivateKeyrecord component.- Returns:
- the value of the
privateKeyrecord component
-
creationTime
Returns the value of thecreationTimerecord component.- Specified by:
creationTimein interfaceCMKeyStoreEntryType- Returns:
- the value of the
creationTimerecord component
-