|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wso2.solutions.identity.UserStore
public class UserStore
Interface to the user store.
This is a wrapper around the WSO2 Usermanager
library. The UserStore will maintain a singleton instance of a
org.wso2.usermanager.Realm
implementation.
Method Summary | |
---|---|
boolean |
authenticate(java.lang.String username,
java.lang.String password)
Authenticate the given user credentials. |
void |
changeRalm(java.lang.String realmConfigName)
Update the realm used to the given instance |
java.util.List<java.lang.String> |
getAllUserNames()
Access the names of all users in the store. |
java.util.Map<java.lang.String,java.lang.String> |
getClaimValues(java.lang.String username,
java.util.List<java.lang.String> propertyNames)
Return the list of claim values of the given user. |
java.util.Map<java.lang.String,java.lang.String> |
getClaimValues(java.lang.String username,
java.lang.String profileName,
java.util.List<java.lang.String> propertyNames)
|
static UserStore |
getInstance()
|
java.util.List<java.lang.String> |
getPropertyNames()
Access the name of user properties in the store. |
org.wso2.usermanager.Realm |
getRealm()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static UserStore getInstance() throws IdentityProviderException
IdentityProviderException
public void changeRalm(java.lang.String realmConfigName) throws IdentityProviderException
realmConfigName
-
IdentityProviderException
public boolean authenticate(java.lang.String username, java.lang.String password)
username
- password
-
public java.util.Map<java.lang.String,java.lang.String> getClaimValues(java.lang.String username, java.util.List<java.lang.String> propertyNames) throws IdentityProviderException
username
- Name of the userpropertyNames
- Names of the claims required.
IdentityProviderException
public java.util.List<java.lang.String> getPropertyNames() throws IdentityProviderException
java.util.List
of all user property names.
IdentityProviderException
public java.util.List<java.lang.String> getAllUserNames() throws IdentityProviderException
java.util.List
of all user names.
IdentityProviderException
public org.wso2.usermanager.Realm getRealm()
public java.util.Map<java.lang.String,java.lang.String> getClaimValues(java.lang.String username, java.lang.String profileName, java.util.List<java.lang.String> propertyNames) throws IdentityProviderException
username
- profileName
- propertyNames
-
IdentityProviderException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |