1 package org.jbpm.identity.security; 2 3 import org.jbpm.identity.*; 4 5 /** 6 * decouples the IdentityLoginModule from the underlying medium that stores the users, groups, memberships and permissions. 7 */ 8 public interface IdentityService { 9 10 /** 11 * verifies if the userName matches the password and 12 * in case of success, returns the userId. the userId can be 13 * an implementation specific id. 14 * @return userId if verification succeeded or null otherwise. 15 */ 16 Object verify(String userName, String pwd); 17 18 User getUserById(Object userId); 19 } 20