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 boolean
boolean
int
hashCode()
@Nullable String
password()
passwordpassword@NotNull String
key 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 String
username()
usernameusernamevoid
validate()
Validates the Spec, will throw a exception if required parameters are missing@NotNull String
template 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:
headerMap
in SchnittstelleAuthMethod
-
queryMap
- Angegeben von:
queryMap
in SchnittstelleAuthMethod
-
cookieMap
- Angegeben von:
cookieMap
in SchnittstelleAuthMethod
-