public final class UsernamePasswordStore extends Object
Modifier and Type | Method and Description |
---|---|
static char[] |
getPassword()
Returns the password, that was previously stored.
|
static String |
getUsername()
Returns the username, that was previously stored.
|
static void |
reset()
Clears the username and password, that might have been previously stored, either globally or locally to each thread.
|
static void |
resetThreadLocalOnly()
Clears the username and password only is they were stored locally to each thread
|
static void |
set(String username,
char[] password)
This method sets the username and password as thread-local or global variable
|
public static void set(String username, char[] password)
username
- password
- public static void reset()
public static void resetThreadLocalOnly()
public static String getUsername()
public static char[] getPassword()
Copyright © 2019. All rights reserved.