Package com.atlan.model.admin
Class OAuthClient
java.lang.Object
com.atlan.model.core.AtlanObject
com.atlan.model.admin.OAuthClient
- All Implemented Interfaces:
Serializable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
OAuthClient.OAuthClientBuilder<C extends OAuthClient,
B extends OAuthClient.OAuthClientBuilder<C, B>> Nested classes/interfaces inherited from class com.atlan.model.core.AtlanObject
AtlanObject.AtlanObjectBuilder<C extends AtlanObject,
B extends AtlanObject.AtlanObjectBuilder<C, B>> -
Field Summary
FieldsFields inherited from class com.atlan.model.core.AtlanObject
rawJsonObject
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OAuthClient.OAuthClientBuilder
<?, ?> builder()
protected boolean
static OAuthClient
create
(AtlanClient client, String displayName, String role) Create a new OAuth client that is not assigned to any personas.static OAuthClient
create
(AtlanClient client, String displayName, String description, Set<String> personas, String role) Create a new OAuth client with the provided details.static void
delete
(AtlanClient client, String clientId) Delete (purge) the OAuth client with the provided clientId.boolean
Unique client identifier (prefixed GUID) of the OAuth client.Unique secret used to authorize exchanging for bearer tokens.Epoch time, in milliseconds, at which the OAuth client was created.User who created the OAuth client.Explanation of the OAuth client.Human-readable name provided when creating the client.getId()
Unique identifier (GUID) of the OAuth credential.Unique names (qualifiedNames) of personas associated with the OAuth client.getRole()
Name of the workspace role to which the OAuth client is bound.Lifespan of each exchanged token for the OAuth client.Epoch time, in milliseconds, at which the OAuth client was last updated.User who last updated the OAuth client.int
hashCode()
static OAuthClient
retrieveByName
(AtlanClient client, String displayName) Retrieves the OAuth client with a name that exactly matches the provided string.toString()
update
(AtlanClient client) Sends this OAuth client to Atlan to update it in Atlan.Methods inherited from class com.atlan.model.core.AtlanObject
getRawJsonObject, setRawJsonObject, toJson
-
Field Details
-
OAUTH_CLIENT_PREFIX
- See Also:
-
-
Constructor Details
-
OAuthClient
-
-
Method Details
-
create
public static OAuthClient create(AtlanClient client, String displayName, String role) throws AtlanException Create a new OAuth client that is not assigned to any personas.- Parameters:
client
- connectivity to the Atlan tenant on which to create the new OAuth clientdisplayName
- readable name for the OAuth clientrole
- workspace role the client should be bound to- Returns:
- the OAuth client details
- Throws:
AtlanException
- on any API communication issues
-
create
public static OAuthClient create(AtlanClient client, String displayName, String description, Set<String> personas, String role) throws AtlanException Create a new OAuth client with the provided details.- Parameters:
client
- connectivity to the Atlan tenant on which to create the new OAuth clientdisplayName
- readable name for the OAuth clientdescription
- explanation of the OAuth clientpersonas
- unique names (qualifiedNames) of personas that should be linked to the clientrole
- workspace role the client should be bound to- Returns:
- the OAuth client details
- Throws:
AtlanException
- on any API communication issues
-
retrieveByName
public static OAuthClient retrieveByName(AtlanClient client, String displayName) throws AtlanException Retrieves the OAuth client with a name that exactly matches the provided string.- Parameters:
client
- connectivity to the Atlan tenant from which to retrieve the OAuth clientdisplayName
- name (as it appears in the UI) by which to retrieve the OAuth client- Returns:
- the OAuth client whose name (in the UI) contains the provided string, or null if there is none
- Throws:
AtlanException
- on any error during API invocation
-
update
Sends this OAuth client to Atlan to update it in Atlan. Note: only the displayName and description can currently be updated (for anything else, you need to create a new OAuth client).- Parameters:
client
- connectivity to the Atlan tenant on which to update the OAuth client- Returns:
- the updated OAuth client
- Throws:
AtlanException
- on any error during API invocation
-
delete
Delete (purge) the OAuth client with the provided clientId.- Parameters:
client
- connectivity to the Atlan tenant from which to remove the OAuth clientclientId
- unique identifier of the OAuth client to hard-delete- Throws:
AtlanException
- on any API communication issues
-
builder
-
toBuilder
-
getId
Unique identifier (GUID) of the OAuth credential. -
getClientId
Unique client identifier (prefixed GUID) of the OAuth client. -
getClientSecret
Unique secret used to authorize exchanging for bearer tokens. -
getDisplayName
Human-readable name provided when creating the client. -
getCreatedAt
Epoch time, in milliseconds, at which the OAuth client was created. -
getCreatedBy
User who created the OAuth client. -
getDescription
Explanation of the OAuth client. -
getPersonaQNs
Unique names (qualifiedNames) of personas associated with the OAuth client. -
getRole
Name of the workspace role to which the OAuth client is bound. -
getTokenExpirySeconds
Lifespan of each exchanged token for the OAuth client. -
getUpdatedAt
Epoch time, in milliseconds, at which the OAuth client was last updated. -
getUpdatedBy
User who last updated the OAuth client. -
equals
- Overrides:
equals
in classAtlanObject
-
canEqual
- Overrides:
canEqual
in classAtlanObject
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAtlanObject
-
toString
Description copied from class:AtlanObject
- Overrides:
toString
in classAtlanObject
-