Class SecretServerCredentials

java.lang.Object
com.cloudbees.plugins.credentials.BaseCredentials
com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl
com.delinea.secrets.jenkins.global.cred.SecretServerCredentials
All Implemented Interfaces:
com.cloudbees.plugins.credentials.common.IdCredentials, com.cloudbees.plugins.credentials.common.PasswordCredentials, com.cloudbees.plugins.credentials.common.StandardCredentials, com.cloudbees.plugins.credentials.common.StandardUsernameCredentials, com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials, com.cloudbees.plugins.credentials.common.UsernameCredentials, com.cloudbees.plugins.credentials.common.UsernamePasswordCredentials, com.cloudbees.plugins.credentials.Credentials, ExtensionPoint, Describable<com.cloudbees.plugins.credentials.Credentials>, Serializable

public class SecretServerCredentials extends com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl implements com.cloudbees.plugins.credentials.common.StandardCredentials
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     

    Nested classes/interfaces inherited from class com.cloudbees.plugins.credentials.impl.BaseStandardCredentials

    com.cloudbees.plugins.credentials.impl.BaseStandardCredentials.BaseStandardCredentialsDescriptor

    Nested classes/interfaces inherited from interface hudson.ExtensionPoint

    ExtensionPoint.LegacyInstancesAreScopedToHudson

    Nested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.IdCredentials

    com.cloudbees.plugins.credentials.common.IdCredentials.Helpers

    Nested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.StandardCredentials

    com.cloudbees.plugins.credentials.common.StandardCredentials.NameProvider

    Nested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials

    com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials.NameProvider
  • Constructor Summary

    Constructors
    Constructor
    Description
    SecretServerCredentials(com.cloudbees.plugins.credentials.CredentialsScope scope, String id, String description, String vaultUrl, String credentialId, String secretId, String usernameSlug, String passwordSlugName, String proxyHost, String proxyPort, String proxyUsername, Secret proxyPassword, String noProxyHosts, boolean useProxy)
    Constructor to initialize the SecretServerCredentials object.
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    Fetches the password from the Secret Server.
     
     
     
     
     
     
    Fetches the username from the Secret Server.
     
     
    boolean
     

    Methods inherited from class com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl

    isUsernameSecret, setUsernameSecret

    Methods inherited from class com.cloudbees.plugins.credentials.impl.BaseStandardCredentials

    equals, getDescription, getId, hashCode

    Methods inherited from class com.cloudbees.plugins.credentials.BaseCredentials

    getDescriptor, getScope

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.cloudbees.plugins.credentials.Credentials

    forRun, getDescriptor, getScope

    Methods inherited from interface com.cloudbees.plugins.credentials.common.IdCredentials

    getId

    Methods inherited from interface com.cloudbees.plugins.credentials.common.StandardCredentials

    getDescription
  • Constructor Details

    • SecretServerCredentials

      @DataBoundConstructor public SecretServerCredentials(com.cloudbees.plugins.credentials.CredentialsScope scope, String id, String description, String vaultUrl, String credentialId, String secretId, String usernameSlug, String passwordSlugName, String proxyHost, String proxyPort, String proxyUsername, Secret proxyPassword, String noProxyHosts, boolean useProxy) throws Descriptor.FormException
      Constructor to initialize the SecretServerCredentials object.
      Parameters:
      scope - - The scope of the credentials (GLOBAL, SYSTEM, etc.).
      id - - The unique ID for the credentials.
      description - - A description for the credentials.
      vaultUrl - - The URL of the Secret Server.
      credentialId - - The ID of the credentials stored in Jenkins.
      secretId - - The ID of the secret stored in the Secret Server.
      Throws:
      Descriptor.FormException
  • Method Details

    • isUseProxy

      public boolean isUseProxy()
    • getProxyHost

      public String getProxyHost()
    • getProxyPort

      public String getProxyPort()
    • getProxyUsername

      public String getProxyUsername()
    • getProxyPassword

      public Secret getProxyPassword()
    • getNoProxyHosts

      public String getNoProxyHosts()
    • getVaultUrl

      public String getVaultUrl()
    • getCredentialId

      public String getCredentialId()
    • getSecretId

      public String getSecretId()
    • getUsernameSlug

      public String getUsernameSlug()
    • getPasswordSlugName

      public String getPasswordSlugName()
    • getUsername

      public String getUsername()
      Fetches the username from the Secret Server.
      Specified by:
      getUsername in interface com.cloudbees.plugins.credentials.common.UsernameCredentials
      Overrides:
      getUsername in class com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl
      Returns:
      The username fetched from the Secret Server.
    • getPassword

      public Secret getPassword()
      Fetches the password from the Secret Server.
      Specified by:
      getPassword in interface com.cloudbees.plugins.credentials.common.PasswordCredentials
      Overrides:
      getPassword in class com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl
      Returns:
      The password fetched from the Secret Server, wrapped in a Secret object.