Record Class HeaderValue
java.lang.Object
java.lang.Record
com.svenruppert.jsentinel.credential.propagation.HeaderValue
- Record Components:
name- HTTP header name (e.g.Authorization); validated against thetchargrammarvalue- HTTP header value; CR / LF / control bytes rejected
Result of an
OutboundTokenStrategy — a single HTTP header
the consumer's HTTP client applies before sending.
The canonical constructor validates the header per
RFC 7230 §3.2.6. name must consist of tchars
exclusively; both name and value reject CR / LF and
bare control characters (the RFC obs-text allowance for high bytes
is preserved on value).
- Since:
- 00.74.00
-
Constructor Summary
ConstructorsConstructorDescriptionHeaderValue(String name, String value) Creates an instance of aHeaderValuerecord 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.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
HeaderValue
-
-
Method Details
-
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). -
name
-
value
-