Class AuthenticationTokenContext.Builder<T>
java.lang.Object
jenkins.authentication.tokens.api.AuthenticationTokenContext.Builder<T>
- Type Parameters:
T
- the token type.
- Enclosing class:
- AuthenticationTokenContext<T>
A non-thread safe builder of
AuthenticationTokenContext
instances.- Since:
- 1.2
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Instantiates theAuthenticationTokenContext
.Specifies the supplied purpose (with valueBoolean.TRUE
).Specifies the supplied purpose with the specified value.
-
Method Details
-
with
Specifies the supplied purpose (with valueBoolean.TRUE
).- Parameters:
purpose
- the purpose.- Returns:
this
for method chaining.
-
with
@NonNull public AuthenticationTokenContext.Builder<T> with(@NonNull Object purpose, @CheckForNull Object value) Specifies the supplied purpose with the specified value.- Parameters:
purpose
- the purpose.value
- the value.- Returns:
this
for method chaining.
-
build
Instantiates theAuthenticationTokenContext
.- Returns:
- the
AuthenticationTokenContext
.
-