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 Classes Modifier and Type Interface Description static class
UsernameCredentials.NameProvider
Our name provider.-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description String
getUsername()
Returns the username.default boolean
isUsernameSecret()
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 Detail
-
getUsername
@NonNull String 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
-
-