Interface BasicAuthenticationFacade
- All Known Implementing Classes:
DefaultBasicAuthenticationFacade
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Facade for retrieving the current
BasicCredentials.-
Method Summary
Modifier and TypeMethodDescriptionio.vavr.control.Try<BasicCredentials>Retrieves the username password pair and returns them asTry.Success.
-
Method Details
-
tryGetBasicCredentials
Retrieves the username password pair and returns them asTry.Success. If they could not be retrieved or an error occurred while parsing them aTry.Failurecontaining the exception will be returned.- Returns:
- A
Trycontaining either the retrievedBasicCredentialsor anException.
-