@@ -0,0 +1,2377 @@
+package org.jenkinsci.plugins.ParameterizedRemoteTrigger.auth2;%0A%0Aimport java.io.IOException;%0Aimport java.net.URLConnection;%0A%0Aimport org.jenkinsci.Symbol;%0A%0Aimport org.jenkinsci.plugins.ParameterizedRemoteTrigger.BuildContext;%0Aimport org.jenkinsci.plugins.ParameterizedRemoteTrigger.utils.Base64Utils;%0Aimport org.kohsuke.stapler.DataBoundConstructor;%0Aimport org.kohsuke.stapler.DataBoundSetter;%0A%0Aimport hudson.Extension;%0Aimport hudson.model.Item;%0A%0A%0Apublic class BearerTokenAuth extends Auth2 %7B%0A%0A    //private static final long serialVersionUID = 051380141338287L;%0A%0A    @Extension%0A    public static final Auth2Descriptor DESCRIPTOR = new BearerTokenAuthDescriptor();%0A%0A    private String token;%0A%0A    @DataBoundConstructor%0A    public BearerTokenAuth() %7B%0A        this.token = null;%0A    %7D%0A%0A    @DataBoundSetter%0A    public void setToken(String token) %7B%0A        this.token = token;%0A    %7D%0A%0A    public String getToken() %7B%0A        return this.token;%0A    %7D%0A%0A    @Override%0A    public void setAuthorizationHeader(URLConnection connection, BuildContext context) throws IOException %7B%0A        connection.setRequestProperty(%22Authorization%22, %22Bearer: %22 + getToken());%0A    %7D%0A%0A    @Override%0A    public String toString() %7B%0A        return %22'%22 + getDescriptor().getDisplayName() + %22'%22;%0A    %7D%0A%0A    @Override%0A    public String toString(Item item) %7B%0A        return toString();%0A    %7D%0A%0A    @Override%0A    public Auth2Descriptor getDescriptor() %7B%0A        return DESCRIPTOR;%0A    %7D%0A%0A    @Symbol(%22BearerTokenAuth%22)%0A    public static class BearerTokenAuthDescriptor extends Auth2Descriptor %7B%0A        @Override%0A        public String getDisplayName() %7B%0A            return %22Bearer Token Authentication%22;%0A        %7D%0A    %7D%0A%0A    @Override%0A    public int hashCode() %7B%0A        final int prime = 31;%0A        int result = 1;%0A        result = prime * result + ((token == null) ? 0 : token.hashCode());%0A        return result;%0A    %7D%0A%0A    @Override%0A    public boolean equals(Object obj) %7B%0A        if (this == obj)%0A            return true;%0A        if (obj == null)%0A            return false;%0A        if (!this.getClass().isInstance(obj))%0A            return false;%0A        BearerTokenAuth other = (BearerTokenAuth) obj;%0A        if (token == null) %7B%0A            if (other.token != null)%0A                return false;%0A        %7D else if (!token.equals(other.token)) %7B%0A            return false;%0A        %7D%0A        return true;%0A    %7D%0A%0A%7D%0A

Add BearerTokenAuth