Uses of Class
hudson.util.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
Modifier and TypeMethodDescriptionPasswordParameterDefinition.getDefaultValueAsSecret()
PasswordParameterValue.getValue()
ModifierConstructorDescriptionPasswordParameterDefinition
(String name, Secret defaultValueAsSecret, String description) PasswordParameterValue
(String name, Secret value, String description) -
Uses of Secret in hudson.util
Modifier 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.Modifier and TypeMethodDescriptionstatic String
Works just liketoString()
but avoids NPE when the secret is null. -
Uses of Secret in jenkins.security.apitoken
Modifier 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.