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 StringgetCredentials()Returns the password.StringgetPrincipal()Returns the username.
-
-
-
Method Detail
-
getPrincipal
public String getPrincipal()
Returns the username.- Specified by:
getPrincipalin interfaceAuthentication- Returns:
- username
-
getCredentials
public String getCredentials()
Returns the password.- Specified by:
getCredentialsin interfaceAuthentication- Returns:
- password
-
-