public class BasicAuthHeaderEncoder extends Object
Constructor and Description |
---|
BasicAuthHeaderEncoder() |
Modifier and Type | Method and Description |
---|---|
static String |
encodeUserPasswordBase64(BasicCredentials credentials)
Encodes the given user credentials in Base64.
|
static String |
encodeUserPasswordBase64(String username,
String password)
Encodes the given username and password in Base64
|
@Nonnull public static String encodeUserPasswordBase64(@Nonnull String username, @Nonnull String password)
username
- The username to encode.password
- The password to encode.@Nonnull public static String encodeUserPasswordBase64(@Nonnull BasicCredentials credentials)
credentials
- The credentials to encode.Copyright © 2018 SAP SE. All rights reserved.