Modifier and Type | Field and Description |
---|---|
static String |
NAME
The name of the header that this object represents.
|
Constructor and Description |
---|
OAuth2BearerWWWAuthenticateHeader()
Constructs a new empty header.
|
OAuth2BearerWWWAuthenticateHeader(OAuth2Error error)
Constructs a new header with the provided error.
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the name of the header, as it would canonically appear within an
HTTP message.
|
OAuth2Error |
getOAuth2Error()
Returns the OAuth 2.0 error represented by this header.
|
List<String> |
getValues()
Returns the header as a list of strings.
|
static OAuth2BearerWWWAuthenticateHeader |
valueOf(Response message)
Constructs a new header, initialized from the specified message.
|
static OAuth2BearerWWWAuthenticateHeader |
valueOf(String string)
Constructs a new header, initialized from the specified string value.
|
equals, getFirstValue, hashCode, toString
public static final String NAME
public OAuth2BearerWWWAuthenticateHeader()
public OAuth2BearerWWWAuthenticateHeader(OAuth2Error error)
error
- The possibly null OAuth 2.0 error.public static OAuth2BearerWWWAuthenticateHeader valueOf(Response message)
message
- The message to initialize the header from.public static OAuth2BearerWWWAuthenticateHeader valueOf(String string)
string
- The value to initialize the header from.public String getName()
Header
public OAuth2Error getOAuth2Error()
public List<String> getValues()
Header
String
should represent the value component of the key-value
pair that makes up the HTTP header - as such, for some Header
implementations each String in this List
may contain multiple
token-separated values.
The List
returned from this method should not be expected to be
mutable. However, some subclasses of Header
may choose to
implement it as such.
Copyright 2011-2017 ForgeRock AS.