Class Credentials
- java.lang.Object
-
- org.openstack4j.openstack.identity.v3.domain.Auth
-
- org.openstack4j.openstack.identity.v3.domain.Credentials
-
- All Implemented Interfaces:
Serializable,AuthStore,ModelEntity,Auth
public class Credentials extends Auth implements AuthStore
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Credentials()Credentials(String username, String password)Credentials(String username, String password, String domainId)
-
Method Summary
All Methods Instance Methods Concrete 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()-
Methods inherited from class org.openstack4j.openstack.identity.v3.domain.Auth
getDomainId, getDomainName, getProjectId, getProjectName, getType, setDomainId, setDomainName, setProjectId, setProjectName
-
-
-
-
Method Detail
-
getUsername
public String getUsername()
- Specified by:
getUsernamein interfaceAuthStore- Returns:
- the username used to authenticate
-
getPassword
public String getPassword()
- Specified by:
getPasswordin interfaceAuthStore- Returns:
- the password used to authenticate
-
getId
public String getId()
Description copied from interface:AuthStoreIf this is aAuthVersion.V2then this is the tenantId. IfAuthVersion.V3then this maps to the projectId
-
getName
public String getName()
Description copied from interface:AuthStoreIf this is aAuthVersion.V2then this is the tenant name. IfAuthVersion.V3then this maps to the project name
-
getVersion
public AuthVersion getVersion()
- Specified by:
getVersionin interfaceAuthStore- Returns:
- the version of this authentication store type
-
-