Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
+1
person also asked this
people also asked this
Replies
1 reply
Subscribers
8 subscribers
Views
1142 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Administration
I am using following API "UserPasswordValid" for user password validat
ankitb0003
over 12 years ago
I am using following API "UserPasswordValid" for user password validation but even i provide correct password its returning me false. I am not sure with the code i am using.
forum.appian.com/.../UserService.html
, byte[])
try {
MessageDigest messageDigest = MessageDigest.getInstance("SHA-512");
byte[] passwordBytes = plainTextPassword.getBytes("UTF-8");
byte[] hashBytes = messageDigest.digest(passwordBytes);
byte[] base64EncodedHashedPasswordBytes = Base64.encodeBase64(hashBytes);
UserService us = ServiceLocator.getUserService(sc);
UserProfile userProfileObj=new UserProfile();
userProfileObj=us.authenticate(username,base64EncodedHashedPasswordBytes);
System.out.println("isUserAuthenticated :: "+isUserAuthenticated);
}
Can someone help me with proper code for using this API.
Its working fine for changeUserPassword(Userna...
OriginalPostID-60993
OriginalPostID-60993
Discussion posts and replies are publicly visible
0
ankitb0003
over 12 years ago
...me, base64EncodedHashedPasswordBytes, true) but not for
authenticate(java.lang.String, byte[]) and isUserPasswordValid(java.lang.String, byte[])
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel