Record Class SslCertificate
java.lang.Object
java.lang.Record
ch.nolix.base.net.ssl.SslCertificate
- All Implemented Interfaces:
ISslCertificate
public record SslCertificate(String publicKeyPemFilePath, String privateKeyPemFilePath)
extends Record
implements ISslCertificate
-
Constructor Summary
ConstructorsConstructorDescriptionSslCertificate(String publicKeyPemFilePath, String privateKeyPemFilePath) Creates an instance of aSslCertificaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theprivateKeyPemFilePathrecord component.Returns the value of thepublicKeyPemFilePathrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SslCertificate
Creates an instance of aSslCertificaterecord class.- Parameters:
publicKeyPemFilePath- the value for thepublicKeyPemFilePathrecord componentprivateKeyPemFilePath- the value for theprivateKeyPemFilePathrecord component
-
-
Method Details
-
getPrivateKeyPemFilePath
- Specified by:
getPrivateKeyPemFilePathin interfaceISslCertificate
-
getPublicKeyPemFilePath
- Specified by:
getPublicKeyPemFilePathin interfaceISslCertificate
-
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). -
publicKeyPemFilePath
Returns the value of thepublicKeyPemFilePathrecord component.- Returns:
- the value of the
publicKeyPemFilePathrecord component
-
privateKeyPemFilePath
Returns the value of theprivateKeyPemFilePathrecord component.- Returns:
- the value of the
privateKeyPemFilePathrecord component
-