Klasse BasicAuthSpec

java.lang.Object
io.github.primelib.webmethodsapigateway4j.auth.BasicAuthSpec
Alle implementierten Schnittstellen:
AuthMethod

public class BasicAuthSpec extends Object implements AuthMethod
  • Konstruktordetails

    • BasicAuthSpec

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

    • validate

      public void validate()
      Validates the Spec, will throw a exception if required parameters are missing
      Löst aus:
      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)
      Gibt zurück:
      this.
    • valueTemplate

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

      public BasicAuthSpec username(@Nullable @Nullable String username)
      username
      Gibt zurück:
      this.
    • password

      public BasicAuthSpec password(@Nullable @Nullable String password)
      password
      Gibt zurück:
      this.
    • equals

      public boolean equals(Object o)
      Setzt außer Kraft:
      equals in Klasse Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse Object
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object
    • headerMap

      public Map<String,String> headerMap()
      Angegeben von:
      headerMap in Schnittstelle AuthMethod
    • queryMap

      public Map<String,String> queryMap()
      Angegeben von:
      queryMap in Schnittstelle AuthMethod
    • cookieMap

      public Map<String,String> cookieMap()
      Angegeben von:
      cookieMap in Schnittstelle AuthMethod