Record Class NativeHostIdentity
java.lang.Object
java.lang.Record
org.cloudburstmc.netty.signalling.admission.NativeHostIdentity
public record NativeHostIdentity(Path certificate, Path privateKey, String fingerprint)
extends Record
Validated background PEM identity; never creates a peer to obtain its fingerprint.
-
Constructor Summary
ConstructorsConstructorDescriptionNativeHostIdentity(Path certificate, Path privateKey, String fingerprint) Creates an instance of aNativeHostIdentityrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecertificaterecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefingerprintrecord component.final inthashCode()Returns a hash code value for this object.static NativeHostIdentityReturns the value of theprivateKeyrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
NativeHostIdentity
Creates an instance of aNativeHostIdentityrecord class.- Parameters:
certificate- the value for thecertificaterecord componentprivateKey- the value for theprivateKeyrecord componentfingerprint- the value for thefingerprintrecord component
-
-
Method Details
-
load
- Throws:
Exception
-
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). -
certificate
Returns the value of thecertificaterecord component.- Returns:
- the value of the
certificaterecord component
-
privateKey
Returns the value of theprivateKeyrecord component.- Returns:
- the value of the
privateKeyrecord component
-
fingerprint
Returns the value of thefingerprintrecord component.- Returns:
- the value of the
fingerprintrecord component
-