Class BearerAuthenticationChallenge.Builder
java.lang.Object
com.soklet.BearerAuthenticationChallenge.Builder
- Enclosing class:
BearerAuthenticationChallenge
Mutable builder for one immutable Bearer challenge.
- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionbuild()errorDescription(@NonNull String errorDescription) requiredScopes(@NonNull List<@NonNull String> requiredScopes)
-
Method Details
-
error
public @NonNull BearerAuthenticationChallenge.Builder error(@NonNull BearerAuthenticationError error) - Returns:
- this builder
-
requiredScopes
public @NonNull BearerAuthenticationChallenge.Builder requiredScopes(@NonNull List<@NonNull String> requiredScopes) - Returns:
- this builder
-
realm
- Returns:
- this builder
-
errorDescription
public @NonNull BearerAuthenticationChallenge.Builder errorDescription(@NonNull String errorDescription) - Returns:
- this builder
-
errorUri
- Returns:
- this builder
-
build
- Returns:
- one immutable, validated challenge
-