Class CumulocityBasicCredentials
- java.lang.Object
-
- com.cumulocity.model.authentication.CumulocityBasicCredentials
-
- All Implemented Interfaces:
CumulocityCredentials
public class CumulocityBasicCredentials extends Object implements CumulocityCredentials
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CumulocityBasicCredentials.CumulocityBasicCredentialsBuilder
-
Nested classes/interfaces inherited from interface com.cumulocity.model.authentication.CumulocityCredentials
CumulocityCredentials.CumulocityCredentialsVisitor<T>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
accept(CumulocityCredentials.CumulocityCredentialsVisitor<T> visitor)
static CumulocityBasicCredentials.CumulocityBasicCredentialsBuilder
builder()
protected boolean
canEqual(Object other)
CumulocityCredentials
copy()
boolean
equals(Object o)
static CumulocityBasicCredentials
from(String loginString)
String
getApplicationKey()
AuthenticationMethod
getAuthenticationMethod()
String
getAuthenticationString()
String
getLoginWithTenant()
String
getPassword()
String
getRequestOrigin()
String
getTenantId()
String
getUsername()
int
hashCode()
void
setApplicationKey(String applicationKey)
void
setPassword(String password)
void
setRequestOrigin(String requestOrigin)
void
setTenantId(String tenantId)
String
toString()
-
-
-
Method Detail
-
from
public static CumulocityBasicCredentials from(String loginString)
-
getAuthenticationString
public String getAuthenticationString()
- Specified by:
getAuthenticationString
in interfaceCumulocityCredentials
-
getAuthenticationMethod
public AuthenticationMethod getAuthenticationMethod()
- Specified by:
getAuthenticationMethod
in interfaceCumulocityCredentials
-
copy
public CumulocityCredentials copy()
- Specified by:
copy
in interfaceCumulocityCredentials
-
getLoginWithTenant
public String getLoginWithTenant()
-
accept
public <T> T accept(CumulocityCredentials.CumulocityCredentialsVisitor<T> visitor)
- Specified by:
accept
in interfaceCumulocityCredentials
-
builder
public static CumulocityBasicCredentials.CumulocityBasicCredentialsBuilder builder()
-
getUsername
public String getUsername()
- Specified by:
getUsername
in interfaceCumulocityCredentials
-
getTenantId
public String getTenantId()
- Specified by:
getTenantId
in interfaceCumulocityCredentials
-
getPassword
public String getPassword()
-
getApplicationKey
public String getApplicationKey()
- Specified by:
getApplicationKey
in interfaceCumulocityCredentials
-
getRequestOrigin
public String getRequestOrigin()
- Specified by:
getRequestOrigin
in interfaceCumulocityCredentials
-
canEqual
protected boolean canEqual(Object other)
-
setTenantId
public void setTenantId(String tenantId)
-
setPassword
public void setPassword(String password)
-
setApplicationKey
public void setApplicationKey(String applicationKey)
- Specified by:
setApplicationKey
in interfaceCumulocityCredentials
-
setRequestOrigin
public void setRequestOrigin(String requestOrigin)
- Specified by:
setRequestOrigin
in interfaceCumulocityCredentials
-
-