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 ClassesNested classes/interfaces inherited from class com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
com.cloudbees.plugins.credentials.impl.BaseStandardCredentials.BaseStandardCredentialsDescriptorNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudsonNested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.IdCredentials
com.cloudbees.plugins.credentials.common.IdCredentials.HelpersNested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.StandardCredentials
com.cloudbees.plugins.credentials.common.StandardCredentials.NameProviderNested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials
com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials.NameProvider -
Constructor Summary
ConstructorsConstructorDescriptionSecretServerCredentials(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 TypeMethodDescriptionFetches the password from the Secret Server.Fetches the username from the Secret Server.booleanMethods inherited from class com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl
isUsernameSecret, setUsernameSecretMethods inherited from class com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
equals, getDescription, getId, hashCodeMethods inherited from class com.cloudbees.plugins.credentials.BaseCredentials
getDescriptor, getScopeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cloudbees.plugins.credentials.Credentials
forRun, getDescriptor, getScopeMethods inherited from interface com.cloudbees.plugins.credentials.common.IdCredentials
getIdMethods 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
-
getProxyPort
-
getProxyUsername
-
getProxyPassword
-
getNoProxyHosts
-
getVaultUrl
-
getCredentialId
-
getSecretId
-
getUsernameSlug
-
getPasswordSlugName
-
getUsername
Fetches the username from the Secret Server.- Specified by:
getUsernamein interfacecom.cloudbees.plugins.credentials.common.UsernameCredentials- Overrides:
getUsernamein classcom.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl- Returns:
- The username fetched from the Secret Server.
-
getPassword
Fetches the password from the Secret Server.- Specified by:
getPasswordin interfacecom.cloudbees.plugins.credentials.common.PasswordCredentials- Overrides:
getPasswordin classcom.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl- Returns:
- The password fetched from the Secret Server, wrapped in a Secret object.
-