Uses of Class
hudson.util.Secret
Packages that use Secret
Package
Description
Core object model that are bound to URLs via stapler, rooted at
Jenkins
.Other miscellaneous utility code
-
Uses of Secret in hudson
Modifier and TypeMethodDescriptionProxyConfiguration.DescriptorImpl.doValidateProxy
(String testUrl, String name, int port, String userName, Secret password, String noProxyHost) void
ProxyConfiguration.setSecretPassword
(Secret secretPassword) -
Uses of Secret in hudson.model
Methods in hudson.model that return SecretModifier and TypeMethodDescriptionPasswordParameterDefinition.getDefaultValueAsSecret()
PasswordParameterValue.getValue()
Constructors in hudson.model with parameters of type SecretModifierConstructorDescriptionPasswordParameterDefinition
(String name, Secret defaultValueAsSecret, String description) PasswordParameterValue
(String name, Secret value, String description) -
Uses of Secret in hudson.util
Methods in hudson.util that return SecretModifier and TypeMethodDescriptionstatic Secret
Reverse operation ofgetEncryptedValue()
.static Secret
Secret.fromString
(String data) Attempts to treat the given string first as a cipher text, and if it doesn't work, treat the given string as the unencrypted secret value.Methods in hudson.util with parameters of type SecretModifier and TypeMethodDescriptionstatic String
Works just liketoString()
but avoids NPE when the secret is null. -
Uses of Secret in jenkins.security.apitoken
Methods in jenkins.security.apitoken with parameters of type SecretModifier and TypeMethodDescriptionvoid
ApiTokenStore.regenerateTokenFromLegacy
(Secret newLegacyApiToken) Remove the legacy token present and generate a new one using the given secret.void
ApiTokenStore.regenerateTokenFromLegacyIfRequired
(Secret newLegacyApiToken) Same asApiTokenStore.regenerateTokenFromLegacy(Secret)
but only applied if there is an existing legacy token.