Class CumulocityOAuthCredentials
java.lang.Object
com.cumulocity.model.authentication.CumulocityOAuthCredentials
- All Implemented Interfaces:
CumulocityCredentials
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Nested classes/interfaces inherited from interface com.cumulocity.model.authentication.CumulocityCredentials
CumulocityCredentials.CumulocityCredentialsVisitor<T>
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCumulocityOAuthCredentials
(String oAuthAccessToken, String xsrfToken, String applicationKey, String requestOrigin, AuthenticationMethod authenticationMethod) -
Method Summary
Modifier and TypeMethodDescription<T> T
builder()
protected boolean
copy()
boolean
int
hashCode()
void
setApplicationKey
(String applicationKey) void
setAuthenticationMethod
(AuthenticationMethod authenticationMethod) void
setRequestOrigin
(String requestOrigin) toString()
-
Field Details
-
CUMULOCITY_USER_ID_CLAIM
- See Also:
-
TENANT_ID_CLAIM
- See Also:
-
-
Constructor Details
-
CumulocityOAuthCredentials
public CumulocityOAuthCredentials(String oAuthAccessToken, String xsrfToken, String applicationKey, String requestOrigin, AuthenticationMethod authenticationMethod)
-
-
Method Details
-
getAuthenticationString
- Specified by:
getAuthenticationString
in interfaceCumulocityCredentials
-
getUsername
- Specified by:
getUsername
in interfaceCumulocityCredentials
-
getTenantId
- Specified by:
getTenantId
in interfaceCumulocityCredentials
-
copy
- Specified by:
copy
in interfaceCumulocityCredentials
-
accept
- Specified by:
accept
in interfaceCumulocityCredentials
-
getAccessToken
-
builder
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
getXsrfToken
-
setApplicationKey
- Specified by:
setApplicationKey
in interfaceCumulocityCredentials
-
getApplicationKey
- Specified by:
getApplicationKey
in interfaceCumulocityCredentials
-
setRequestOrigin
- Specified by:
setRequestOrigin
in interfaceCumulocityCredentials
-
getRequestOrigin
- Specified by:
getRequestOrigin
in interfaceCumulocityCredentials
-
setAuthenticationMethod
-
getAuthenticationMethod
- Specified by:
getAuthenticationMethod
in interfaceCumulocityCredentials
-