Class CredentialsNameProvider<C extends Credentials>

java.lang.Object
com.cloudbees.plugins.credentials.CredentialsNameProvider<C>
Direct Known Subclasses:
StandardCertificateCredentials.NameProvider, StandardCredentials.NameProvider, StandardUsernameCredentials.NameProvider, StandardUsernamePasswordCredentials.NameProvider, UsernameCredentials.NameProvider, UsernamePasswordCredentials.NameProvider

public abstract class CredentialsNameProvider<C extends Credentials> extends Object
Provides names for credentials.
Since:
1.7
See Also:
  • Constructor Details

    • CredentialsNameProvider

      public CredentialsNameProvider()
  • Method Details

    • name

      @NonNull public static String name(@NonNull Credentials credentials)
      Name the credential.
      Parameters:
      credentials - the credential to name.
      Returns:
      the name.
    • getName

      @NonNull public abstract String getName(@NonNull C credentials)
      Name the credential.
      Parameters:
      credentials - the credential to name.
      Returns:
      the name.