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
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    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)
    Creates an instance of a OAuthAuthentication record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the audience record component.
    @NotEmpty String
    Returns the value of the clientAuthentication record component.
    @NotEmpty String
    Returns the value of the clientId record component.
    @NotEmpty String
    Returns the value of the clientSecret record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
     
    final int
    Returns a hash code value for this object.
    @NotEmpty @Pattern(regexp="^(=|(http://|https://|secrets|\\{\\{).*$)",message="Must be a http(s) URL") String
    Returns the value of the oauthTokenEndpoint record component.
    Returns the value of the scopes record component.
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

  • 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 a OAuthAuthentication record class.
      Parameters:
      oauthTokenEndpoint - the value for the oauthTokenEndpoint record component
      clientId - the value for the clientId record component
      clientSecret - the value for the clientSecret record component
      audience - the value for the audience record component
      clientAuthentication - the value for the clientAuthentication record component
      scopes - the value for the scopes record component
  • Method Details

    • getDataForAuthRequestBody

      public Map<String,String> getDataForAuthRequestBody()
    • toString

      public String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • 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 the oauthTokenEndpoint record component.
      Returns:
      the value of the oauthTokenEndpoint record component
    • clientId

      @NotEmpty public @NotEmpty String clientId()
      Returns the value of the clientId record component.
      Returns:
      the value of the clientId record component
    • clientSecret

      @NotEmpty public @NotEmpty String clientSecret()
      Returns the value of the clientSecret record component.
      Returns:
      the value of the clientSecret record component
    • audience

      public String audience()
      Returns the value of the audience record component.
      Returns:
      the value of the audience record component
    • clientAuthentication

      @NotEmpty public @NotEmpty String clientAuthentication()
      Returns the value of the clientAuthentication record component.
      Returns:
      the value of the clientAuthentication record component
    • scopes

      public String scopes()
      Returns the value of the scopes record component.
      Returns:
      the value of the scopes record component