public final class AuthenticationHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
authenticate(String userName,
String userPassword)
Tries authenticating a given credentials and returns
true if the credentials were valid. |
static boolean |
changePassword(String userName,
String newPassword)
Changes the password for the given user to the new password
|
static byte[] |
hashData(String userName,
String password) |
public static boolean authenticate(String userName, String userPassword)
true if the credentials were valid.userName - userPassword - true if the credentials were valid.public static boolean changePassword(String userName, String newPassword)
userName - newPassword - true if the password was successfully changed.public static byte[] hashData(String userName, String password) throws NoSuchAlgorithmException
NoSuchAlgorithmExceptionCopyright © 2016 PayPal Open Source. All rights reserved.