|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jgit.transport.CredentialItem
org.eclipse.jgit.transport.CredentialItem.CharArrayType
public static class CredentialItem.CharArrayType
An item whose value is stored as a char[] and is therefore clearable.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.eclipse.jgit.transport.CredentialItem |
|---|
CredentialItem.CharArrayType, CredentialItem.InformationalMessage, CredentialItem.Password, CredentialItem.StringType, CredentialItem.Username, CredentialItem.YesNoType |
| Constructor Summary | |
|---|---|
CredentialItem.CharArrayType(String promptText,
boolean maskValue)
Initialize a prompt for a secure value stored in a character array. |
|
| Method Summary | |
|---|---|
void |
clear()
Destroys the current value, clearing the internal array. |
char[] |
getValue()
Get the current value. |
void |
setValue(char[] newValue)
Set the new value, clearing the old value array. |
void |
setValueNoCopy(char[] newValue)
Set the new value, clearing the old value array. |
| Methods inherited from class org.eclipse.jgit.transport.CredentialItem |
|---|
getPromptText, isValueSecure |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CredentialItem.CharArrayType(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.| Method Detail |
|---|
public void clear()
clear in class CredentialItempublic char[] getValue()
clear() is
called. Callers that need the array elements to survive should delay
invoking clear() until the value is no longer necessary.
public void setValue(char[] newValue)
newValue - if not null, the array is copied.public void setValueNoCopy(char[] newValue)
newValue - the new internal array. The array is NOT copied.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||