Module org.elasticsearch.xcore
Record Class Grant.ClientAuthentication
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.core.security.action.Grant.ClientAuthentication
- All Implemented Interfaces:
Writeable
- Enclosing class:
Grant
public static record Grant.ClientAuthentication(String scheme, SecureString value)
extends Record
implements Writeable
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Constructor Summary
ConstructorsConstructorDescriptionClientAuthentication(String scheme, SecureString value) Creates an instance of aClientAuthenticationrecord class.ClientAuthentication(SecureString value) -
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.scheme()Returns the value of theschemerecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.voidwriteTo(StreamOutput out)
-
Constructor Details
-
ClientAuthentication
-
ClientAuthentication
Creates an instance of aClientAuthenticationrecord class.- Parameters:
scheme- the value for theschemerecord componentvalue- the value for thevaluerecord component
-
-
Method Details
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
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). -
scheme
Returns the value of theschemerecord component.- Returns:
- the value of the
schemerecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-