Klasse BasicAuthSpec
java.lang.Object
io.github.primelib.webmethodsapigateway4j.auth.BasicAuthSpec
- Alle implementierten Schnittstellen:
AuthMethod
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungBasicAuthSpec(Consumer<BasicAuthSpec> spec) Constructs a validated implementation ofBasicAuthSpec. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected booleanbooleaninthashCode()@Nullable Stringpassword()passwordpassword@NotNull Stringkey of the property that holds the API key (header key or query param key)propertyKey(@NotNull String propertyKey) key of the property that holds the API key (header key or query param key)queryMap()toString()@Nullable Stringusername()usernameusernamevoidvalidate()Validates the Spec, will throw a exception if required parameters are missing@NotNull Stringtemplate for the basic auth value, use {base64} as placeholder for the valuevalueTemplate(@NotNull String valueTemplate) template for the basic auth value, use {base64} as placeholder for the value
-
Konstruktordetails
-
BasicAuthSpec
Constructs a validated implementation ofBasicAuthSpec.- 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 missingIllegalArgumentException- if a parameter has an invalid value
-
propertyKey
key of the property that holds the API key (header key or query param key) -
valueTemplate
template for the basic auth value, use {base64} as placeholder for the value -
username
username -
password
password -
propertyKey
key of the property that holds the API key (header key or query param key)- Gibt zurück:
this.
-
valueTemplate
template for the basic auth value, use {base64} as placeholder for the value- Gibt zurück:
this.
-
username
username- Gibt zurück:
this.
-
password
password- Gibt zurück:
this.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
headerMap
- Angegeben von:
headerMapin SchnittstelleAuthMethod
-
queryMap
- Angegeben von:
queryMapin SchnittstelleAuthMethod
-
cookieMap
- Angegeben von:
cookieMapin SchnittstelleAuthMethod
-