Record Class OAuthAuthentication
java.lang.Object
java.lang.Record
io.camunda.connector.http.base.model.auth.OAuthAuthentication
- All Implemented Interfaces:
Authentication
public record OAuthAuthentication(@NotEmpty @Pattern(regexp="^(=|(http://|https://|secrets|\\{\\{).*$)",message="Must be a http(s) URL") String oauthTokenEndpoint, @NotEmpty String clientId, @NotEmpty String clientSecret, String audience, @NotEmpty String clientAuthentication, String scopes)
extends Record
implements Authentication
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOAuthAuthentication(@NotEmpty @Pattern(regexp="^(=|(http://|https://|secrets|\\{\\{).*$)",message="Must be a http(s) URL") String oauthTokenEndpoint, @NotEmpty String clientId, @NotEmpty String clientSecret, String audience, @NotEmpty String clientAuthentication, String scopes) Creates an instance of aOAuthAuthenticationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaudience()Returns the value of theaudiencerecord component.@NotEmpty StringReturns the value of theclientAuthenticationrecord component.@NotEmpty StringclientId()Returns the value of theclientIdrecord component.@NotEmpty StringReturns the value of theclientSecretrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotEmpty @Pattern(regexp="^(=|(http://|https://|secrets|\\{\\{).*$)",message="Must be a http(s) URL") StringReturns the value of theoauthTokenEndpointrecord component.scopes()Returns the value of thescopesrecord component.toString()Returns a string representation of this record class.
-
Field Details
-
TYPE
- See Also:
-
GRANT_TYPE
- See Also:
-
-
Constructor Details
-
OAuthAuthentication
public OAuthAuthentication(@NotEmpty @Pattern(regexp="^(=|(http://|https://|secrets|\\{\\{).*$)",message="Must be a http(s) URL") @NotEmpty @Pattern(regexp="^(=|(http://|https://|secrets|\\{\\{).*$)",message="Must be a http(s) URL") String oauthTokenEndpoint, @NotEmpty @NotEmpty String clientId, @NotEmpty @NotEmpty String clientSecret, String audience, @NotEmpty @NotEmpty String clientAuthentication, String scopes) Creates an instance of aOAuthAuthenticationrecord class.- Parameters:
oauthTokenEndpoint- the value for theoauthTokenEndpointrecord componentclientId- the value for theclientIdrecord componentclientSecret- the value for theclientSecretrecord componentaudience- the value for theaudiencerecord componentclientAuthentication- the value for theclientAuthenticationrecord componentscopes- the value for thescopesrecord component
-
-
Method Details
-
getDataForAuthRequestBody
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
oauthTokenEndpoint
@NotEmpty @Pattern(regexp="^(=|(http://|https://|secrets|\\{\\{).*$)", message="Must be a http(s) URL") public @NotEmpty @Pattern(regexp="^(=|(http://|https://|secrets|\\{\\{).*$)",message="Must be a http(s) URL") String oauthTokenEndpoint()Returns the value of theoauthTokenEndpointrecord component.- Returns:
- the value of the
oauthTokenEndpointrecord component
-
clientId
Returns the value of theclientIdrecord component.- Returns:
- the value of the
clientIdrecord component
-
clientSecret
Returns the value of theclientSecretrecord component.- Returns:
- the value of the
clientSecretrecord component
-
audience
Returns the value of theaudiencerecord component.- Returns:
- the value of the
audiencerecord component
-
clientAuthentication
Returns the value of theclientAuthenticationrecord component.- Returns:
- the value of the
clientAuthenticationrecord component
-
scopes
Returns the value of thescopesrecord component.- Returns:
- the value of the
scopesrecord component
-