KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jbpm > identity > security > IdentityService


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 JavaDoc verify(String JavaDoc userName, String JavaDoc pwd);
17   
18   User getUserById(Object JavaDoc userId);
19 }
20
Popular Tags