public class DefaultBasicAuthenticationFacade extends Object implements BasicAuthenticationFacade
BasicAuthenticationAccessor
reading the username and password from the current
ThreadContext
or, after that, from the currently incoming request and returning it as a
BasicCredentials
object.Constructor and Description |
---|
DefaultBasicAuthenticationFacade() |
Modifier and Type | Method and Description |
---|---|
io.vavr.control.Try<BasicCredentials> |
tryGetBasicCredentials()
Retrieves the username password pair and returns them as
Try.Success . |
@Nonnull public io.vavr.control.Try<BasicCredentials> tryGetBasicCredentials()
Try.Success
. If they could not be retrieved or
an error occurred while parsing them a Try.Failure
containing the exception will be returned.tryGetBasicCredentials
in interface BasicAuthenticationFacade
Try
containing either the retrieved BasicCredentials
or an Exception
.Copyright © 2020 SAP SE. All rights reserved.