public final class BasicAuthEncoder extends Object
| Constructor and Description |
|---|
BasicAuthEncoder(ConnectionData connectionData)
Creates a new instance of
BasicAuthEncoder with the provided connection data. |
BasicAuthEncoder(String username,
String password)
Creates a new instance of
BasicAuthEncoder with the provided credentials. |
| Modifier and Type | Method and Description |
|---|---|
String |
encode()
Returns a basic auth encoded
String of the user/password credentials. |
public BasicAuthEncoder(String username, String password)
BasicAuthEncoder with the provided credentials.username - the username to be used for authenticationpassword - the password to be used for authenticationpublic BasicAuthEncoder(ConnectionData connectionData)
BasicAuthEncoder with the provided connection data.connectionData - the ConnectionData to be used during basic authenticationpublic String encode()
String of the user/password credentials.String of the user/password credentialsCopyright © 2016 SAP. All Rights Reserved.