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
Constructors -
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:BasicAuthenticationFacadeRetrieves 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.- Specified by:
tryGetBasicCredentialsin interfaceBasicAuthenticationFacade- Returns:
- A
Trycontaining either the retrievedBasicCredentialsor anException.
-