public class BearerAuthentication extends DefaultURLConnectionHandler
Modifier and Type | Class and Description |
---|---|
(package private) static interface |
BearerAuthentication.Config |
Reporter.SetLocation
Report.Location
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
authentication |
private static java.lang.String |
HEADER_AUTHORIZATION |
private static org.slf4j.Logger |
logger |
private java.lang.String |
oauth2Token |
private static java.lang.String |
PREFIX_BEARER_AUTH |
registry
MATCH
Constructor and Description |
---|
BearerAuthentication() |
BearerAuthentication(java.lang.String oauth2Token,
Reporter reporter) |
Modifier and Type | Method and Description |
---|---|
void |
handle(java.net.URLConnection connection)
Not doing anything is perfect ok
|
void |
setProperties(java.util.Map<java.lang.String,java.lang.String> map)
Set the properties for this plugin.
|
java.lang.String |
toString() |
addMatcher, error, exception, getErrors, getLocation, getWarnings, isOk, isPedantic, matches, matches, progress, setRegistry, setReporter, trace, warning
private static final org.slf4j.Logger logger
private static final java.lang.String HEADER_AUTHORIZATION
private static final java.lang.String PREFIX_BEARER_AUTH
private java.lang.String oauth2Token
private java.lang.String authentication
public BearerAuthentication()
public BearerAuthentication(java.lang.String oauth2Token, Reporter reporter)
public void setProperties(java.util.Map<java.lang.String,java.lang.String> map) throws java.lang.Exception
DefaultURLConnectionHandler
setProperties
in interface Plugin
setProperties
in class DefaultURLConnectionHandler
map
- attributes and directives for this plugin's clausejava.lang.Exception
public void handle(java.net.URLConnection connection)
DefaultURLConnectionHandler
handle
in interface URLConnectionHandler
handle
in class DefaultURLConnectionHandler
connection
- The connection to modifypublic java.lang.String toString()
toString
in class java.lang.Object