org.jbpm.identity.security
Interface IdentityService

All Known Implementing Classes:
IdentitySession

public interface IdentityService

decouples the IdentityLoginModule from the underlying medium that stores the users, groups, memberships and permissions.


Method Summary
 User getUserById(java.lang.Object userId)
           
 java.lang.Object verify(java.lang.String userName, java.lang.String pwd)
          verifies if the userName matches the password and in case of success, returns the userId.
 

Method Detail

verify

java.lang.Object verify(java.lang.String userName,
                        java.lang.String pwd)
verifies if the userName matches the password and in case of success, returns the userId. the userId can be an implementation specific id.

Returns:
userId if verification succeeded or null otherwise.

getUserById

User getUserById(java.lang.Object userId)