Class NullAuth
java.lang.Object
hudson.model.AbstractDescribableImpl<Auth2>
org.jenkinsci.plugins.ParameterizedRemoteTrigger.auth2.Auth2
org.jenkinsci.plugins.ParameterizedRemoteTrigger.auth2.NullAuth
- All Implemented Interfaces:
Describable<Auth2>,Serializable,Cloneable
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.jenkinsci.plugins.ParameterizedRemoteTrigger.auth2.Auth2
Auth2.Auth2Descriptor -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()voidsetAuthorizationHeader(URLConnection connection, BuildContext context) Depending on the purpose the Auth2 implementation has to override theAuthorizationheader of the connection appropriately.toString()Returns a string representing the authorization.Methods inherited from class org.jenkinsci.plugins.ParameterizedRemoteTrigger.auth2.Auth2
all, clone, requiresCrumb
-
Field Details
-
DESCRIPTOR
-
INSTANCE
-
-
Constructor Details
-
NullAuth
@DataBoundConstructor public NullAuth()
-
-
Method Details
-
setAuthorizationHeader
public void setAuthorizationHeader(URLConnection connection, BuildContext context) throws IOException Description copied from class:Auth2Depending on the purpose the Auth2 implementation has to override theAuthorizationheader of the connection appropriately. It might also ignore this step or remove an existingAuthorizationheader.- Specified by:
setAuthorizationHeaderin classAuth2- Parameters:
connection- connection between the application and the remote server.context- the context of this Builder/BuildStep.- Throws:
IOException- if there is an error generating the authorization header.
-
toString
-
toString
Description copied from class:Auth2Returns a string representing the authorization.- Specified by:
toStringin classAuth2- Parameters:
item- the Item (Job, Pipeline,...) we are currently running in. The item is required to also get Credentials which are defined in the items scope and not Jenkins globally. Value can be null, but Credentials e.g. configured on a Folder will not be found in this case, only globally configured Credentials.- Returns:
- a string representing the authorization.
-
getDescriptor
- Specified by:
getDescriptorin interfaceDescribable<Auth2>- Overrides:
getDescriptorin classAbstractDescribableImpl<Auth2>
-
hashCode
public int hashCode() -
equals
-