class BearerAuthRequestHook extends java.lang.Object
Authentication hook that adds a predefined token as a 'Authorization: Bearer
| Constructor and description |
|---|
BearerAuthRequestHook
(java.util.Map<java.lang.String, java.lang.String> initArgs)Constructor |
| Type Params | Return Type | Name and description |
|---|---|---|
|
HTTPRequest |
call(HTTPRequest hr)This method augments request with an authentication header. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Name of the authentication scheme to use on the remote server
Predefined API token
Constructor
initArgs - Map with a 'token' and 'prefix' ('Bearer' will be used if value for 'prefix' is missing)This method augments request with an authentication header.
hr - HTTPRequest that is ready to be processedGroovy Documentation