Package com.okta.authn.sdk.http
Class Header
- java.lang.Object
-
- com.okta.authn.sdk.http.Header
-
- All Implemented Interfaces:
RequestParameter
public final class Header extends java.lang.Object implements RequestParameter
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Header
acceptLanguage(java.lang.String language)
boolean
equals(java.lang.Object o)
K
getKey()
V
getValue()
int
hashCode()
static Header
header(java.lang.String key, java.lang.String value)
static Header
header(java.lang.String key, java.util.List<java.lang.String> value)
java.lang.String
toString()
static Header
userAgent(java.lang.String userAgent)
static Header
xDeviceFingerprint(java.lang.String fingerprint)
static Header
xForwardedFor(java.lang.String ipAddress)
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.okta.authn.sdk.http.RequestParameter
getKey, getValue
-
-
-
-
Method Detail
-
header
public static Header header(java.lang.String key, java.lang.String value)
-
header
public static Header header(java.lang.String key, java.util.List<java.lang.String> value)
-
xForwardedFor
public static Header xForwardedFor(java.lang.String ipAddress)
-
xDeviceFingerprint
public static Header xDeviceFingerprint(java.lang.String fingerprint)
-
acceptLanguage
public static Header acceptLanguage(java.lang.String language)
-
userAgent
public static Header userAgent(java.lang.String userAgent)
-
getKey
public K getKey()
-
getValue
public V getValue()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-