Interface UsernameCredentials
- All Superinterfaces:
Credentials
,Describable<Credentials>
,ExtensionPoint
,Serializable
- All Known Subinterfaces:
StandardUsernameCredentials
,StandardUsernamePasswordCredentials
,UsernamePasswordCredentials
- All Known Implementing Classes:
UsernamePasswordCredentialsImpl
@LegacyMixIn(preferred=StandardUsernameCredentials.class)
@NameWith(NameProvider.class)
public interface UsernameCredentials
extends Credentials
Credentials that have a username.
- Since:
- 1.5
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
Our name provider.Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Method Summary
Modifier and TypeMethodDescriptionReturns the username.default boolean
WhethergetUsername()
should be considered a secret for purposes of behaviors like masking in build logs.Methods inherited from interface com.cloudbees.plugins.credentials.Credentials
forRun, getDescriptor, getScope
-
Method Details
-
getUsername
Returns the username.- Returns:
- the username.
-
isUsernameSecret
default boolean isUsernameSecret()WhethergetUsername()
should be considered a secret for purposes of behaviors like masking in build logs.- Returns:
- true by default
- Since:
- 2.4
-