Package com.mypurecloud.sdk.v2.model
Class OAuthClientRequest
java.lang.Object
com.mypurecloud.sdk.v2.model.OAuthClientRequest
- All Implemented Interfaces:
Serializable
OAuthClientRequest
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe OAuth Grant/Client type supported by this client.static enumThe state of the OAuth client. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessTokenValiditySeconds(Long accessTokenValiditySeconds) The number of seconds, between 5mins and 48hrs, until tokens created with this client expire.authorizedGrantType(OAuthClientRequest.AuthorizedGrantTypeEnum authorizedGrantType) The OAuth Grant/Client type supported by this client.dateToDelete(Date dateToDelete) The time at which this client will be deleted.description(String description) booleangetName()getScope()getState()inthashCode()The name of the OAuth client.registeredRedirectUri(List<String> registeredRedirectUri) List of allowed callbacks for this client.roleDivisions(List<RoleDivision> roleDivisions) Set of roles and their corresponding divisions associated with this client.Deprecated.The scope requested by this client.voidsetAccessTokenValiditySeconds(Long accessTokenValiditySeconds) voidsetAuthorizedGrantType(OAuthClientRequest.AuthorizedGrantTypeEnum authorizedGrantType) voidsetDateToDelete(Date dateToDelete) voidsetDescription(String description) voidvoidsetRegisteredRedirectUri(List<String> registeredRedirectUri) voidsetRoleDivisions(List<RoleDivision> roleDivisions) voidsetRoleIds(List<String> roleIds) voidvoidThe state of the OAuth client.toString()
-
Constructor Details
-
OAuthClientRequest
public OAuthClientRequest() -
OAuthClientRequest
-
-
Method Details
-
name
The name of the OAuth client. -
getName
-
setName
-
accessTokenValiditySeconds
The number of seconds, between 5mins and 48hrs, until tokens created with this client expire. If this field is omitted, a default of 24 hours will be applied. -
getAccessTokenValiditySeconds
-
setAccessTokenValiditySeconds
-
description
-
getDescription
-
setDescription
-
registeredRedirectUri
List of allowed callbacks for this client. For example: https://myap.example.com/auth/callback -
getRegisteredRedirectUri
-
setRegisteredRedirectUri
-
roleIds
Deprecated. Use roleDivisions instead. -
getRoleIds
-
setRoleIds
-
authorizedGrantType
public OAuthClientRequest authorizedGrantType(OAuthClientRequest.AuthorizedGrantTypeEnum authorizedGrantType) The OAuth Grant/Client type supported by this client. Code Authorization Grant/Client type - Preferred client type where the Client ID and Secret are required to create tokens. Used where the secret can be secured. PKCE-Enabled Code Authorization grant type - Code grant type which requires PKCE challenge and verifier to create tokens. Used in public clients for increased security. Implicit grant type - Client ID only is required to create tokens. Used in browser and mobile apps where the secret can not be secured. SAML2-Bearer extension grant type - SAML2 assertion provider for user authentication at the token endpoint. Client Credential grant type - Used to created access tokens that are tied only to the client. -
getAuthorizedGrantType
-
setAuthorizedGrantType
-
scope
The scope requested by this client. Scopes only apply to clients not using the client_credential grant -
getScope
-
setScope
-
roleDivisions
Set of roles and their corresponding divisions associated with this client. Roles and divisions only apply to clients using the client_credential grant -
getRoleDivisions
-
setRoleDivisions
-
state
The state of the OAuth client. Active: The OAuth client can be used to create access tokens. This is the default state. Disabled: Access tokens created by the client are invalid and new ones cannot be created. Inactive: Access tokens cannot be created with this OAuth client and it will be deleted. -
getState
-
setState
-
dateToDelete
The time at which this client will be deleted. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z -
getDateToDelete
-
setDateToDelete
-
equals
-
hashCode
public int hashCode() -
toString
-