Module io.inverno.mod.http.base
Class AuthorizationCodec.Authorization.TokenBuilder
java.lang.Object
io.inverno.mod.http.base.internal.header.AuthorizationCodec.Authorization.TokenBuilder
- All Implemented Interfaces:
HeaderBuilder<AuthorizationCodec.Authorization,AuthorizationCodec.Authorization.TokenBuilder>
- Enclosing class:
AuthorizationCodec.Authorization
public static final class AuthorizationCodec.Authorization.TokenBuilder
extends Object
implements HeaderBuilder<AuthorizationCodec.Authorization,AuthorizationCodec.Authorization.TokenBuilder>
An authorization token builder.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the header.headerName(String name) Sets the specified header name.headerValue(String value) Sets the specified raw header value.
-
Constructor Details
-
TokenBuilder
Creates a token builder.
- Parameters:
authScheme- the authorization scheme
-
-
Method Details
-
headerName
Description copied from interface:HeaderBuilderSets the specified header name.
- Specified by:
headerNamein interfaceHeaderBuilder<AuthorizationCodec.Authorization,AuthorizationCodec.Authorization.TokenBuilder> - Parameters:
name- a header name- Returns:
- the header builder
-
headerValue
Description copied from interface:HeaderBuilderSets the specified raw header value.
- Specified by:
headerValuein interfaceHeaderBuilder<AuthorizationCodec.Authorization,AuthorizationCodec.Authorization.TokenBuilder> - Parameters:
value- a raw header value- Returns:
- the header builder
-
build
Description copied from interface:HeaderBuilderBuilds the header.
- Specified by:
buildin interfaceHeaderBuilder<AuthorizationCodec.Authorization,AuthorizationCodec.Authorization.TokenBuilder> - Returns:
- a header instance
-