public class Credentials extends Object
| Constructor and Description |
|---|
Credentials(String username,
char[] password)
Constructs new Credentials.
|
Credentials(String username,
char[] password,
String preferredRole)
Constructs new credentials with fields set to the provided values.
|
Credentials(String username,
char[] password,
String preferredRole,
String ip)
Constructs new credentials with fields set to the provided values.
|
Credentials(String username,
char[] password,
String preferredRole,
String ip,
int port)
Deprecated.
the port number is no longer used. This constructor is only available for backward compatibility.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getIP()
Returns IP address that will be used for authentication.
|
char[] |
getPassword()
Returns password that will be used for authentication.
|
String |
getPreferredRole()
Returns the name of the role the user would prefer to have.
|
String |
getUsername()
Returns username that will be used for authentication.
|
public Credentials(String username, char[] password)
username - the username used for authenticationpassword - the password used for authenticationpublic Credentials(String username, char[] password, String preferredRole)
username - that will be used for authentication.password - that will be used for authentication.preferredRole - the user would prefer to have.public Credentials(String username, char[] password, String preferredRole, String ip)
username - that will be used for authentication.password - that will be used for authentication.preferredRole - the user would prefer to have.ip - address that will be used for authentication.@Deprecated public Credentials(String username, char[] password, String preferredRole, String ip, int port)
username - that will be used for authentication.password - that will be used for authentication.preferredRole - the user would prefer to have.ip - address that will be used for authentication.port - the port numberpublic String getUsername()
public char[] getPassword()
public String getPreferredRole()
public String getIP()
Copyright © 2023 European Spallation Source. All rights reserved.