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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNodeCertificate(String id, String nodeId, EncryptedValue encryptedCertificate) Creates an instance of aNodeCertificaterecord class.NodeCertificate(String nodeId, EncryptedValue encryptedCertificate) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theencryptedCertificaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.nodeId()Returns the value of thenodeIdrecord component.final StringtoString()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 aNodeCertificaterecord class.- Parameters:
id- the value for theidrecord componentnodeId- the value for thenodeIdrecord componentencryptedCertificate- the value for theencryptedCertificaterecord 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 theidrecord component.- Returns:
- the value of the
idrecord component
-
nodeId
Returns the value of thenodeIdrecord component.- Returns:
- the value of the
nodeIdrecord component
-
encryptedCertificate
Returns the value of theencryptedCertificaterecord component.- Returns:
- the value of the
encryptedCertificaterecord component
-