public class BearerAuthentication extends DefaultURLConnectionHandler
| Modifier and Type | Class and Description |
|---|---|
(package private) static interface |
BearerAuthentication.Config |
Reporter.SetLocationReport.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 |
registryMATCH| 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, warningprivate 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
DefaultURLConnectionHandlersetProperties in interface PluginsetProperties in class DefaultURLConnectionHandlermap - attributes and directives for this plugin's clausejava.lang.Exceptionpublic void handle(java.net.URLConnection connection)
DefaultURLConnectionHandlerhandle in interface URLConnectionHandlerhandle in class DefaultURLConnectionHandlerconnection - The connection to modifypublic java.lang.String toString()
toString in class java.lang.Object