public class Credentials extends Auth implements AuthStore
| Constructor and Description |
|---|
Credentials() |
Credentials(String username,
String password) |
Credentials(String username,
String password,
String tenantName) |
Credentials(String username,
String password,
String tenantName,
String tenantId) |
| Modifier and Type | Method and Description |
|---|---|
String |
getId()
If this is a
AuthVersion.V2 then this is the tenantId. |
String |
getName()
If this is a
AuthVersion.V2 then this is the tenant name. |
String |
getPassword() |
String |
getUsername() |
AuthVersion |
getVersion() |
<T> T |
unwrap() |
getTenantId, getTenantName, setTenantId, setTenantNamepublic String getUsername()
getUsername in interface AuthStorepublic String getPassword()
getPassword in interface AuthStorepublic <T> T unwrap()
unwrap in interface AuthStoreAuthStore.getVersion()public String getId()
AuthStoreAuthVersion.V2 then this is the tenantId. If AuthVersion.V3 then this maps to the domainIdpublic String getName()
AuthStoreAuthVersion.V2 then this is the tenant name. If AuthVersion.V3 then this maps to the domain namepublic AuthVersion getVersion()
getVersion in interface AuthStore