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.

@FunctionalInterface public interface BasicAuthenticationFacade
Facade for retrieving the current BasicCredentials.
  • Method Summary

    Modifier and Type
    Method
    Description
    io.vavr.control.Try<BasicCredentials>
    Retrieves the username password pair and returns them as Try.Success.
  • Method Details

    • tryGetBasicCredentials

      @Nonnull io.vavr.control.Try<BasicCredentials> tryGetBasicCredentials()
      Retrieves the username password pair and returns them as Try.Success. If they could not be retrieved or an error occurred while parsing them a Try.Failure containing the exception will be returned.
      Returns:
      A Try containing either the retrieved BasicCredentials or an Exception.