Class BasicAuthSpec

java.lang.Object
io.github.primelib.jira4j.restv3.auth.BasicAuthSpec
All Implemented Interfaces:
io.github.primelib.primecodegenlib.java.feign.common.api.AuthMethod

public class BasicAuthSpec extends Object implements io.github.primelib.primecodegenlib.java.feign.common.api.AuthMethod
  • Constructor Details

    • BasicAuthSpec

      @Internal public BasicAuthSpec(Consumer<BasicAuthSpec> spec)
      Constructs a validated implementation of BasicAuthSpec.
      Parameters:
      spec - the specification to process
  • Method Details

    • validate

      public void validate()
      Validates the Spec, will throw a exception if required parameters are missing
      Throws:
      NullPointerException - if a required parameter is missing
      IllegalArgumentException - if a parameter has an invalid value
    • propertyKey

      @NotNull public @NotNull String propertyKey()
      key of the property that holds the API key (header key or query param key)
    • valueTemplate

      @NotNull public @NotNull String valueTemplate()
      template for the basic auth value, use {base64} as placeholder for the value
    • username

      @Nullable public @Nullable String username()
      username
    • password

      @Nullable public @Nullable String password()
      password
    • propertyKey

      public BasicAuthSpec propertyKey(@NotNull @NotNull String propertyKey)
      key of the property that holds the API key (header key or query param key)
      Returns:
      this.
    • valueTemplate

      public BasicAuthSpec valueTemplate(@NotNull @NotNull String valueTemplate)
      template for the basic auth value, use {base64} as placeholder for the value
      Returns:
      this.
    • username

      public BasicAuthSpec username(@Nullable @Nullable String username)
      username
      Returns:
      this.
    • password

      public BasicAuthSpec password(@Nullable @Nullable String password)
      password
      Returns:
      this.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • headerMap

      public Map<String,String> headerMap()
      Specified by:
      headerMap in interface io.github.primelib.primecodegenlib.java.feign.common.api.AuthMethod
    • queryMap

      public Map<String,String> queryMap()
      Specified by:
      queryMap in interface io.github.primelib.primecodegenlib.java.feign.common.api.AuthMethod
    • cookieMap

      public Map<String,String> cookieMap()
      Specified by:
      cookieMap in interface io.github.primelib.primecodegenlib.java.feign.common.api.AuthMethod