Class 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:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
Auth2
public Auth2()
-
-
Method Details
-
all
-
getCredentials
Get JenkinsClient Credentials Or ApiToken- Throws:
CredentialsNotFoundException
-
toString
-
toString
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
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-