Class Auth2
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<Auth2>
-
- io.jenkins.plugins.remote.result.trigger.auth2.Auth2
-
- All Implemented Interfaces:
Describable<Auth2>
,Serializable
,Cloneable
- Direct Known Subclasses:
CredentialsAuth
,NoneAuth
,TokenAuth
public abstract class Auth2 extends AbstractDescribableImpl<Auth2> implements Serializable, Cloneable
- Author:
- HW
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Auth2.Auth2Descriptor
-
Constructor Summary
Constructors Constructor Description Auth2()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static DescriptorExtensionList<Auth2,Auth2.Auth2Descriptor>
all()
Auth2
clone()
abstract String
getCredentials(Item item)
Get JenkinsClient Credentials Or ApiTokenabstract String
toString()
abstract String
toString(Item item)
Returns a string representing the authorization.-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Method Detail
-
all
public static DescriptorExtensionList<Auth2,Auth2.Auth2Descriptor> all()
-
getCredentials
public abstract String getCredentials(Item item) throws CredentialsNotFoundException
Get JenkinsClient Credentials Or ApiToken- Throws:
CredentialsNotFoundException
-
toString
public abstract String toString(Item item)
Returns a string representing the authorization.- 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.
-
clone
public Auth2 clone() throws CloneNotSupportedException
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-
-