@Generated(value="OracleSDKGenerator", comments="API Version: v1") public final class AppThreeLeggedOAuthCredential extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
The value of this attribute persists any OAuth access token that the system uses to connect to this ManagedApp. The system obtains this access token using an OAuth protocol flow that could be two-legged or three-legged. A two-legged flow involves only the requester and the server. A three-legged flow also requires the consent of a user – in this case the consent of an administrator.
*SCIM++ Properties:** - idcsSearchable: true - multiValued: false - mutability: readWrite -
required: false - returned: default - type: complex
Note: Objects should always be created or deserialized using the AppThreeLeggedOAuthCredential.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the AppThreeLeggedOAuthCredential.Builder
, which maintain a
set of all explicitly set fields called AppThreeLeggedOAuthCredential.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
AppThreeLeggedOAuthCredential.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
AppThreeLeggedOAuthCredential(String accessToken,
String refreshToken,
String accessTokenExpiry)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static AppThreeLeggedOAuthCredential.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
String |
getAccessToken()
Access Token
|
String |
getAccessTokenExpiry()
Access token expiry
|
String |
getRefreshToken()
Refresh Token
|
int |
hashCode() |
AppThreeLeggedOAuthCredential.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"accessToken","refreshToken","accessTokenExpiry"}) public AppThreeLeggedOAuthCredential(String accessToken, String refreshToken, String accessTokenExpiry)
public static AppThreeLeggedOAuthCredential.Builder builder()
Create a new builder.
public AppThreeLeggedOAuthCredential.Builder toBuilder()
public String getAccessToken()
Access Token
*SCIM++ Properties:** - caseExact: true - idcsSearchable: false - idcsSensitive: encrypt - multiValued: false - mutability: readWrite - required: false - returned: default - type: string - uniqueness: none
public String getRefreshToken()
Refresh Token
*SCIM++ Properties:** - caseExact: true - idcsSearchable: true - idcsSensitive: encrypt - multiValued: false - mutability: readWrite - required: false - returned: default - type: string - uniqueness: none
public String getAccessTokenExpiry()
Access token expiry
*SCIM++ Properties:** - caseExact: true - idcsSearchable: true - multiValued: false - mutability: readWrite - required: false - returned: default - type: dateTime - uniqueness: none
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.