Package org.openstack4j.model.identity
Interface AuthStore
-
- All Known Implementing Classes:
Credentials,Credentials,KeystoneAuth,RaxApiKeyCredentials
public interface AuthStoreAn entity which holds enough information in store to re-authenticate at any given time during a session. This is a generic mapping which provides the common information needed for authentication. Version dependent attributes can be found via the#unwrap()call returning the real typed object- Author:
- Jeremy Unruh
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetId()If this is aAuthVersion.V2then this is the tenantId.StringgetName()If this is aAuthVersion.V2then this is the tenant name.StringgetPassword()StringgetUsername()AuthVersiongetVersion()
-
-
-
Method Detail
-
getVersion
AuthVersion getVersion()
- Returns:
- the version of this authentication store type
-
getUsername
String getUsername()
- Returns:
- the username used to authenticate
-
getPassword
String getPassword()
- Returns:
- the password used to authenticate
-
getId
String getId()
If this is aAuthVersion.V2then this is the tenantId. IfAuthVersion.V3then this maps to the projectId- Returns:
- the tenantId (V2) or projectId for V3
-
getName
String getName()
If this is aAuthVersion.V2then this is the tenant name. IfAuthVersion.V3then this maps to the project name- Returns:
- the tenant name (V2) or project name for V3
-
-