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 Summary
ConstructorsConstructorDescriptionBasicAuthSpec(Consumer<BasicAuthSpec> spec) Constructs a validated implementation ofBasicAuthSpec. -
Method Summary
Modifier and TypeMethodDescriptionprotected 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
-
Constructor Details
-
BasicAuthSpec
Constructs a validated implementation ofBasicAuthSpec.- 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 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)- Returns:
this.
-
valueTemplate
template for the basic auth value, use {base64} as placeholder for the value- Returns:
this.
-
username
username- Returns:
this.
-
password
password- Returns:
this.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
headerMap
- Specified by:
headerMapin interfaceio.github.primelib.primecodegenlib.java.feign.common.api.AuthMethod
-
queryMap
- Specified by:
queryMapin interfaceio.github.primelib.primecodegenlib.java.feign.common.api.AuthMethod
-
cookieMap
- Specified by:
cookieMapin interfaceio.github.primelib.primecodegenlib.java.feign.common.api.AuthMethod
-