public class Credential extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
static Credential |
from(String username,
String password)
Gets a
Credential configured with a username and password. |
String |
getPassword()
Gets the password.
|
String |
getUsername()
Gets the username.
|
int |
hashCode() |
boolean |
isOAuth2RefreshToken()
Check whether this credential is an OAuth 2.0 refresh token.
|
String |
toString() |
public static Credential from(String username, String password)
Credential
configured with a username and password.username
- the usernamepassword
- the passwordCredential
public String getUsername()
public String getPassword()
public boolean isOAuth2RefreshToken()
Copyright © 2019. All rights reserved.