Class MicroserviceCredentials
- java.lang.Object
-
- com.cumulocity.microservice.context.credentials.MicroserviceCredentials
-
- All Implemented Interfaces:
Credentials
public class MicroserviceCredentials extends Object implements Credentials
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MicroserviceCredentials.MicroserviceCredentialsBuilder
-
Constructor Summary
Constructors Constructor Description MicroserviceCredentials()
MicroserviceCredentials(String tenant, String username, String password, String oAuthAccessToken, String xsrfToken, String tfaToken, String appKey)
-
Method Summary
-
-
-
Constructor Detail
-
MicroserviceCredentials
@ConstructorProperties({"tenant","username","password","oAuthAccessToken","xsrfToken","tfaToken","appKey"}) public MicroserviceCredentials(String tenant, String username, String password, String oAuthAccessToken, String xsrfToken, String tfaToken, String appKey)
-
MicroserviceCredentials
public MicroserviceCredentials()
-
-
Method Detail
-
builder
public static MicroserviceCredentials.MicroserviceCredentialsBuilder builder()
-
copyOf
public static MicroserviceCredentials.MicroserviceCredentialsBuilder copyOf(MicroserviceCredentials source)
-
withIdentifier
public UserCredentials withIdentifier(String identifier)
-
getTenant
public String getTenant()
- Specified by:
getTenant
in interfaceCredentials
-
getUsername
public String getUsername()
- Specified by:
getUsername
in interfaceCredentials
-
getPassword
public String getPassword()
- Specified by:
getPassword
in interfaceCredentials
-
getOAuthAccessToken
public String getOAuthAccessToken()
- Specified by:
getOAuthAccessToken
in interfaceCredentials
-
getXsrfToken
public String getXsrfToken()
- Specified by:
getXsrfToken
in interfaceCredentials
-
getTfaToken
public String getTfaToken()
- Specified by:
getTfaToken
in interfaceCredentials
-
getAppKey
public String getAppKey()
- Specified by:
getAppKey
in interfaceCredentials
-
toCumulocityCredentials
public com.cumulocity.model.authentication.CumulocityCredentials toCumulocityCredentials()
-
setTenant
public void setTenant(String tenant)
-
setUsername
public void setUsername(String username)
-
setOAuthAccessToken
public void setOAuthAccessToken(String oAuthAccessToken)
-
setXsrfToken
public void setXsrfToken(String xsrfToken)
-
setPassword
public void setPassword(String password)
-
setTfaToken
public void setTfaToken(String tfaToken)
-
setAppKey
public void setAppKey(String appKey)
-
canEqual
protected boolean canEqual(Object other)
-
withTenant
public MicroserviceCredentials withTenant(String tenant)
-
withUsername
public MicroserviceCredentials withUsername(String username)
-
withPassword
public MicroserviceCredentials withPassword(String password)
-
withOAuthAccessToken
public MicroserviceCredentials withOAuthAccessToken(String oAuthAccessToken)
-
withXsrfToken
public MicroserviceCredentials withXsrfToken(String xsrfToken)
-
withTfaToken
public MicroserviceCredentials withTfaToken(String tfaToken)
-
withAppKey
public MicroserviceCredentials withAppKey(String appKey)
-
-