public class CredentialsEntry
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static CredentialsEntry |
CANCELLED
A canceled credential set.
|
static CredentialsEntry |
EMPTY
An empty credential set.
|
| Constructor and Description |
|---|
CredentialsEntry(java.lang.String login,
char[] password)
Initializes a new instance of the
CredentialsEntry class |
| Modifier and Type | Method and Description |
|---|---|
void |
clearPassword()
Overwrites the array backing the principle's password property.
|
static CredentialsEntry |
copyOf(CredentialsEntry credentials)
Creates a deep clone of the provided
CredentialsEntry instance. |
java.lang.String |
getLogin()
Returns the principle's login
|
char[] |
getPwd()
Returns the principle's password
|
boolean |
isFilled()
Returns true if the current set of credentials have been filled-in, false otherwise.
|
public static final CredentialsEntry EMPTY
This specific credential set should be used to intend that no credentials where explicitly provided
public static final CredentialsEntry CANCELLED
This specific credential set should be used to intend that the query for explicit credentials was initiated but canceled
public CredentialsEntry(java.lang.String login,
char[] password)
CredentialsEntry classlogin - the principle's loginpassword - the principle's passwordpublic static CredentialsEntry copyOf(CredentialsEntry credentials)
CredentialsEntry instance.credentials - the CredentialsEntry instance to copy.CredentialsEntry instance.public char[] getPwd()
public java.lang.String getLogin()
public boolean isFilled()
public void clearPassword()
Copyright © 2018 Frederic Thevenet. All rights reserved.