Class BasicAuthUtils
java.lang.Object
io.micronaut.security.authentication.BasicAuthUtils
Utility class for Basic Auth.
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull Optional<UsernamePasswordCredentials>
parseCredentials
(@NonNull String authorization)
-
Method Details
-
parseCredentials
@NonNull public static @NonNull Optional<UsernamePasswordCredentials> parseCredentials(@NonNull @NonNull String authorization) - Parameters:
authorization
- Authorization HTTP Header value- Returns:
- Extracted Credentials as a
UsernamePasswordCredentials
or an empty optional if not possible.
-