Class UsernamePasswordAuthentication
- java.lang.Object
-
- de.fraunhofer.iese.mydata.component.connector.UsernamePasswordAuthentication
-
- All Implemented Interfaces:
Authentication
public class UsernamePasswordAuthentication extends Object implements Authentication
Authentication Object that takes username and password.
-
-
Constructor Summary
Constructors Constructor Description UsernamePasswordAuthentication(String username, String password)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCredentials()
Returns the password.String
getPrincipal()
Returns the username.
-
-
-
Method Detail
-
getPrincipal
public String getPrincipal()
Returns the username.- Specified by:
getPrincipal
in interfaceAuthentication
- Returns:
- username
-
getCredentials
public String getCredentials()
Returns the password.- Specified by:
getCredentials
in interfaceAuthentication
- Returns:
- password
-
-