Class DefaultBasicAuthenticationFacade
java.lang.Object
com.sap.cloud.sdk.cloudplatform.security.DefaultBasicAuthenticationFacade
- All Implemented Interfaces:
BasicAuthenticationFacade
Default implementation of the
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionio.vavr.control.Try<BasicCredentials>
Retrieves the username password pair and returns them asTry.Success
.
-
Constructor Details
-
DefaultBasicAuthenticationFacade
public DefaultBasicAuthenticationFacade()
-
-
Method Details
-
tryGetBasicCredentials
Description copied from interface:BasicAuthenticationFacade
Retrieves the username password pair and returns them asTry.Success
. If they could not be retrieved or an error occurred while parsing them aTry.Failure
containing the exception will be returned.- Specified by:
tryGetBasicCredentials
in interfaceBasicAuthenticationFacade
- Returns:
- A
Try
containing either the retrievedBasicCredentials
or anException
.
-