Class BearerAuthSpec
java.lang.Object
io.github.primelib.jira4j.restv2.auth.BearerAuthSpec
- All Implemented Interfaces:
io.github.primelib.primecodegenlib.java.feign.common.api.AuthMethod
public class BearerAuthSpec
extends Object
implements io.github.primelib.primecodegenlib.java.feign.common.api.AuthMethod
-
Constructor Summary
ConstructorsConstructorDescriptionBearerAuthSpec(Consumer<BearerAuthSpec> spec) Constructs a validated implementation ofBearerAuthSpec. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleaninthashCode()@NotNull StringpropertyKey(@NotNull String propertyKey) queryMap()@NotNull Stringtoken()the tokenthe tokentoString()voidvalidate()Validates the Spec, will throw a exception if required parameters are missingtemplate for the property value, use {token} as placeholdervalueTemplate(String valueTemplate) template for the property value, use {token} as placeholder
-
Constructor Details
-
BearerAuthSpec
Constructs a validated implementation ofBearerAuthSpec.- 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
-
valueTemplate
template for the property value, use {token} as placeholder -
token
the token -
propertyKey
- Returns:
this.
-
valueTemplate
template for the property value, use {token} as placeholder- Returns:
this.
-
token
the token- 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
-