Class BaseStandardCredentials

java.lang.Object
com.cloudbees.plugins.credentials.BaseCredentials
com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
All Implemented Interfaces:
IdCredentials, StandardCredentials, Credentials, ExtensionPoint, Describable<Credentials>, Serializable
Direct Known Subclasses:
CertificateCredentialsImpl, UsernamePasswordCredentialsImpl

@ExportedBean public abstract class BaseStandardCredentials extends BaseCredentials implements StandardCredentials
Base class for StandardCredentials.
See Also:
  • Constructor Details

    • BaseStandardCredentials

      public BaseStandardCredentials(@CheckForNull String id, @CheckForNull String description)
      Constructor.
      Parameters:
      id - the id.
      description - the description.
    • BaseStandardCredentials

      public BaseStandardCredentials(@CheckForNull CredentialsScope scope, @CheckForNull String id, @CheckForNull String description)
      Constructor.
      Parameters:
      scope - the scope.
      id - the id.
      description - the description.
  • Method Details

    • getDescription

      @NonNull @Exported public String getDescription()
      Returns the Description.
      Specified by:
      getDescription in interface StandardCredentials
      Returns:
      the Description.
    • getId

      @NonNull @Exported public String getId()
      Returns the ID.
      Specified by:
      getId in interface IdCredentials
      Returns:
      the ID.
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object