Record Class NodeCertificate
java.lang.Object
java.lang.Record
org.graylog2.cluster.certificates.NodeCertificate
public record NodeCertificate(String id, String nodeId, EncryptedValue encryptedCertificate)
extends Record
-
Field Summary
-
Constructor Summary
ConstructorDescriptionNodeCertificate
(String id, String nodeId, EncryptedValue encryptedCertificate) Creates an instance of aNodeCertificate
record class.NodeCertificate
(String nodeId, EncryptedValue encryptedCertificate) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theencryptedCertificate
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record component.nodeId()
Returns the value of thenodeId
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
FIELD_ID
- See Also:
-
FIELD_NODEID
- See Also:
-
FIELD_ENCR_CERTIFICATE
- See Also:
-
-
Constructor Details
-
NodeCertificate
-
NodeCertificate
Creates an instance of aNodeCertificate
record class.- Parameters:
id
- the value for theid
record componentnodeId
- the value for thenodeId
record componentencryptedCertificate
- the value for theencryptedCertificate
record component
-
-
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)
. -
id
Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
nodeId
Returns the value of thenodeId
record component.- Returns:
- the value of the
nodeId
record component
-
encryptedCertificate
Returns the value of theencryptedCertificate
record component.- Returns:
- the value of the
encryptedCertificate
record component
-