public static class CredentialItem.StringType extends CredentialItem
CredentialItem.CharArrayType
instead, as
the internal members of the array can be cleared, reducing the chances
that the password is left in memory after authentication is completed.CredentialItem.CharArrayType, CredentialItem.InformationalMessage, CredentialItem.Password, CredentialItem.StringType, CredentialItem.Username, CredentialItem.YesNoType
Constructor and Description |
---|
CredentialItem.StringType(String promptText,
boolean maskValue)
Initialize a prompt for a single string.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear the stored value, destroying it as much as possible.
|
String |
getValue() |
void |
setValue(String newValue) |
getPromptText, isValueSecure
public CredentialItem.StringType(String promptText, boolean maskValue)
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()
CredentialItem
clear
in class CredentialItem
public String getValue()
public void setValue(String newValue)
newValue
- Copyright © 2015 Eclipse JGit Project. All rights reserved.