Class CumulocityOAuthCredentials
- java.lang.Object
-
- com.cumulocity.model.authentication.CumulocityOAuthCredentials
-
- All Implemented Interfaces:
CumulocityCredentials
public class CumulocityOAuthCredentials extends Object implements CumulocityCredentials
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCumulocityOAuthCredentials.CumulocityOAuthCredentialsBuilder-
Nested classes/interfaces inherited from interface com.cumulocity.model.authentication.CumulocityCredentials
CumulocityCredentials.CumulocityCredentialsVisitor<T>
-
-
Field Summary
Fields Modifier and Type Field Description static StringCUMULOCITY_USER_ID_CLAIMstatic StringTENANT_ID_CLAIM
-
Constructor Summary
Constructors Constructor Description CumulocityOAuthCredentials(String oAuthAccessToken, String xsrfToken, String applicationKey, String requestOrigin, AuthenticationMethod authenticationMethod)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Taccept(CumulocityCredentials.CumulocityCredentialsVisitor<T> visitor)static CumulocityOAuthCredentials.CumulocityOAuthCredentialsBuilderbuilder()protected booleancanEqual(Object other)CumulocityCredentialscopy()booleanequals(Object o)StringgetAccessToken()StringgetApplicationKey()AuthenticationMethodgetAuthenticationMethod()StringgetAuthenticationString()StringgetRequestOrigin()StringgetTenantId()StringgetUsername()StringgetXsrfToken()inthashCode()voidsetApplicationKey(String applicationKey)voidsetAuthenticationMethod(AuthenticationMethod authenticationMethod)voidsetRequestOrigin(String requestOrigin)StringtoString()
-
-
-
Field Detail
-
CUMULOCITY_USER_ID_CLAIM
public static final String CUMULOCITY_USER_ID_CLAIM
- See Also:
- Constant Field Values
-
TENANT_ID_CLAIM
public static final String TENANT_ID_CLAIM
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CumulocityOAuthCredentials
public CumulocityOAuthCredentials(String oAuthAccessToken, String xsrfToken, String applicationKey, String requestOrigin, AuthenticationMethod authenticationMethod)
-
-
Method Detail
-
getAuthenticationString
public String getAuthenticationString()
- Specified by:
getAuthenticationStringin interfaceCumulocityCredentials
-
getUsername
public String getUsername()
- Specified by:
getUsernamein interfaceCumulocityCredentials
-
getTenantId
public String getTenantId()
- Specified by:
getTenantIdin interfaceCumulocityCredentials
-
copy
public CumulocityCredentials copy()
- Specified by:
copyin interfaceCumulocityCredentials
-
accept
public <T> T accept(CumulocityCredentials.CumulocityCredentialsVisitor<T> visitor)
- Specified by:
acceptin interfaceCumulocityCredentials
-
getAccessToken
public String getAccessToken()
-
builder
public static CumulocityOAuthCredentials.CumulocityOAuthCredentialsBuilder builder()
-
canEqual
protected boolean canEqual(Object other)
-
getXsrfToken
public String getXsrfToken()
-
setApplicationKey
public void setApplicationKey(String applicationKey)
- Specified by:
setApplicationKeyin interfaceCumulocityCredentials
-
getApplicationKey
public String getApplicationKey()
- Specified by:
getApplicationKeyin interfaceCumulocityCredentials
-
setRequestOrigin
public void setRequestOrigin(String requestOrigin)
- Specified by:
setRequestOriginin interfaceCumulocityCredentials
-
getRequestOrigin
public String getRequestOrigin()
- Specified by:
getRequestOriginin interfaceCumulocityCredentials
-
setAuthenticationMethod
public void setAuthenticationMethod(AuthenticationMethod authenticationMethod)
-
getAuthenticationMethod
public AuthenticationMethod getAuthenticationMethod()
- Specified by:
getAuthenticationMethodin interfaceCumulocityCredentials
-
-