public class HawkSignatureAuthenticationRequest extends Object
Request to authenticate a hawk request.
See https://schemas.taskcluster.net/auth/v1/authenticate-hawk-request.json#
Modifier and Type | Field and Description |
---|---|
String |
authorization
Authorization header, must only be specified if request being authenticated has a
Authorization header. |
String |
host
Host for which the request came in, this is typically the
Host header excluding the port if any. |
String |
method
HTTP method of the request being authenticated.
|
int |
port
Port on which the request came in, this is typically
80 or 443 . |
String |
resource
Resource the request operates on including querystring.
|
String |
sourceIp
Source IP of the authentication request or request that requires authentication.
|
Constructor and Description |
---|
HawkSignatureAuthenticationRequest() |
public String authorization
Authorization header, must only be specified if request being authenticated has a Authorization
header.
See https://schemas.taskcluster.net/auth/v1/authenticate-hawk-request.json#/properties/authorization
public String host
Host for which the request came in, this is typically the Host
header excluding the port if any.
See https://schemas.taskcluster.net/auth/v1/authenticate-hawk-request.json#/properties/host
public String method
HTTP method of the request being authenticated.
Possible values: * “get” * “post” * “put” * “head” * “delete” * “options” * “trace” * “copy” * “lock” * “mkcol” * “move” * “purge” * “propfind” * “proppatch” * “unlock” * “report” * “mkactivity” * “checkout” * “merge” * “m-search” * “notify” * “subscribe” * “unsubscribe” * “patch” * “search” * “connect”
See https://schemas.taskcluster.net/auth/v1/authenticate-hawk-request.json#/properties/method
public int port
Port on which the request came in, this is typically 80
or 443
. If you are running behind a reverse proxy look for the x-forwarded-port
header.
Mininum: 0 Maximum: 65535
See https://schemas.taskcluster.net/auth/v1/authenticate-hawk-request.json#/properties/port
public String resource
Resource the request operates on including querystring. This is the string that follows the HTTP method. Note, order of querystring elements is important.
See https://schemas.taskcluster.net/auth/v1/authenticate-hawk-request.json#/properties/resource
public String sourceIp
Source IP of the authentication request or request that requires authentication. This is only used for audit logging.
See https://schemas.taskcluster.net/auth/v1/authenticate-hawk-request.json#/properties/sourceIp
Copyright © 2014–2018 Mozilla. All rights reserved.