public class AuthenticationToken extends Object
| Constructor and Description |
|---|
AuthenticationToken(String sharedSecretKey)
Instantiates a new authentication token.
|
AuthenticationToken(String username,
String password)
Instantiates a new authentication token.
|
| Modifier and Type | Method and Description |
|---|---|
AuthenticationMode |
getAuthMode()
Gets the auth mode.
|
String |
getPassword()
Gets the password.
|
String |
getSharedSecretKey()
Gets the shared secret key.
|
String |
getUsername()
Gets the username.
|
void |
setAuthMode(AuthenticationMode authMode)
Sets the auth mode.
|
void |
setPassword(String password)
Sets the password.
|
void |
setSharedSecretKey(String sharedSecretKey)
Sets the shared secret key.
|
void |
setUsername(String username)
Sets the username.
|
public AuthenticationToken(String username, String password)
username - the usernamepassword - the passwordpublic AuthenticationToken(String sharedSecretKey)
sharedSecretKey - the shared secret keypublic AuthenticationMode getAuthMode()
public void setAuthMode(AuthenticationMode authMode)
authMode - the new auth modepublic String getUsername()
public void setUsername(String username)
username - the new usernamepublic String getPassword()
public void setPassword(String password)
password - the new passwordpublic String getSharedSecretKey()
public void setSharedSecretKey(String sharedSecretKey)
sharedSecretKey - the new shared secret keyCopyright © 2019. All rights reserved.