Package com.atlan.model.admin
Class Credential
java.lang.Object
com.atlan.model.core.AtlanObject
com.atlan.model.admin.Credential
- All Implemented Interfaces:
Serializable
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Credential.CredentialBuilder<C extends Credential,
B extends Credential.CredentialBuilder<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
Fields inherited from class com.atlan.model.core.AtlanObject
rawJsonObject
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Credential.CredentialBuilder<?,
?> builder()
protected boolean
boolean
static CredentialResponse
get
(AtlanClient client, String guid) Retrieves a credential by its unique identifier (GUID).static CredentialResponse
Retrieves a credential by its unique identifier (GUID).Authentication mechanism represented by the credential.Name of the connector configuration responsible for managing the credential.Type of connector used by the credential.Additional details about the credential.getHost()
Hostname the for which connectivity is defined by the credential.getId()
Unique identifier (GUID) of the credential.getName()
Name of the credential.More sensitive portion of the credential, typically used for a password for basic authentication or client secrets for other forms of authentication.getPort()
Port number on which connectivity should be done.Less sensitive portion of the credential, typically used for a username for basic authentication or client IDs for other forms of authentication.int
hashCode()
toMap()
Convert this credential into a map, for embedding within a package (crawler).toString()
update()
Sends this credential to Atlan to update it in Atlan, after first testing it to confirm it works.update
(AtlanClient client) Sends this credential to Atlan to update it in Atlan, after first testing it to confirm it works.Methods inherited from class com.atlan.model.core.AtlanObject
getRawJsonObject, setRawJsonObject, toJson
-
Constructor Details
-
Credential
-
-
Method Details
-
get
Retrieves a credential by its unique identifier (GUID).- Parameters:
guid
- unique identifier (GUID) of the credential to retrieve- Returns:
- the credential, or null if none exists
- Throws:
AtlanException
- on any error during API invocation
-
get
Retrieves a credential by its unique identifier (GUID).- Parameters:
client
- connectivity to the Atlan tenant from which to retrieve the credentialguid
- unique identifier (GUID) of the credential to retrieve- Returns:
- the credential, or null if none exists
- Throws:
AtlanException
- on any error during API invocation
-
update
Sends this credential to Atlan to update it in Atlan, after first testing it to confirm it works.- Returns:
- the updated credential
- Throws:
InvalidRequestException
- if the provided credentials cannot be validated successfullyAtlanException
- on any error during API invocation
-
update
Sends this credential to Atlan to update it in Atlan, after first testing it to confirm it works.- Parameters:
client
- connectivity to the Atlan tenant on which to update the credential- Returns:
- the updated credential
- Throws:
InvalidRequestException
- if the provided credentials cannot be validated successfullyAtlanException
- on any error during API invocation
-
toMap
Convert this credential into a map, for embedding within a package (crawler).- Returns:
- map representation of the credential
-
builder
-
toBuilder
-
getId
Unique identifier (GUID) of the credential. -
getName
Name of the credential. -
getHost
Hostname the for which connectivity is defined by the credential. -
getPort
Port number on which connectivity should be done. -
getAuthType
Authentication mechanism represented by the credential. -
getConnectorType
Type of connector used by the credential. -
getUsername
Less sensitive portion of the credential, typically used for a username for basic authentication or client IDs for other forms of authentication. -
getPassword
More sensitive portion of the credential, typically used for a password for basic authentication or client secrets for other forms of authentication. -
getExtras
Additional details about the credential. This can capture, for example, a secondary secret for particular forms of authentication and / or additional details about the scope of the connectivity (a specific database, role, warehouse, etc). -
getConnectorConfigName
Name of the connector configuration responsible for managing the credential. -
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
-