public class StandardUsernameCredentialsCredentialItem extends CredentialItem
CredentialItem.CharArrayType, CredentialItem.InformationalMessage, CredentialItem.Password, CredentialItem.StringType, CredentialItem.Username, CredentialItem.YesNoType| Constructor and Description |
|---|
StandardUsernameCredentialsCredentialItem(String promptText,
boolean maskValue)
Initialize a prompt for a single
StandardCredentials item. |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
com.cloudbees.plugins.credentials.common.StandardUsernameCredentials |
getValue()
Returns the current value.
|
void |
setValue(com.cloudbees.plugins.credentials.common.StandardUsernameCredentials newValue)
Sets the current value.
|
getPromptText, isValueSecurepublic StandardUsernameCredentialsCredentialItem(String promptText, boolean maskValue)
StandardCredentials item.promptText - prompt to display to the user alongside of the input field.
Should be sufficient text to indicate what to supply for this
item.maskValue - true if the value should be masked from displaying during
input. This should be true for passwords and other secrets,
false for names and other public data.public void clear()
clear in class CredentialItempublic com.cloudbees.plugins.credentials.common.StandardUsernameCredentials getValue()
public void setValue(com.cloudbees.plugins.credentials.common.StandardUsernameCredentials newValue)
newValue - the new value.Copyright © 2013–2020. All rights reserved.