com.opensymphony.user.provider.crowd
Class EmbeddedCrowdCredentialsProvider

java.lang.Object
  extended by com.opensymphony.user.provider.crowd.EmbeddedCrowdAbstractProvider
      extended by com.opensymphony.user.provider.crowd.EmbeddedCrowdCredentialsProvider
All Implemented Interfaces:
CredentialsProvider, UserProvider, Serializable

public class EmbeddedCrowdCredentialsProvider
extends EmbeddedCrowdAbstractProvider
implements CredentialsProvider

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.opensymphony.user.provider.crowd.EmbeddedCrowdAbstractProvider
logger
 
Constructor Summary
EmbeddedCrowdCredentialsProvider()
           
 
Method Summary
 boolean authenticate(String name, String password)
          Check password supplied matches that of User.
 boolean changePassword(String name, String password)
          Change password of user.
 boolean create(String name)
          Create new Entity with given name.
 boolean handles(String name)
          Determine whether this UserProvider implementation is responsible for handling this Entity.
 List<String> list()
          Returns List of names (Strings) of all Entities that can be accessed by this UserProvider If this UserProvider cannot retrieve a list of names, null is to be returned.
 boolean remove(String name)
          Remove Entity with given name.
 
Methods inherited from class com.opensymphony.user.provider.crowd.EmbeddedCrowdAbstractProvider
flushCaches, getCrowdService, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.opensymphony.user.provider.UserProvider
flushCaches, init
 

Constructor Detail

EmbeddedCrowdCredentialsProvider

public EmbeddedCrowdCredentialsProvider()
Method Detail

authenticate

public boolean authenticate(String name,
                            String password)
Description copied from interface: CredentialsProvider
Check password supplied matches that of User.

Specified by:
authenticate in interface CredentialsProvider

changePassword

public boolean changePassword(String name,
                              String password)
Description copied from interface: CredentialsProvider
Change password of user.

Specified by:
changePassword in interface CredentialsProvider

create

public boolean create(String name)
Description copied from interface: UserProvider
Create new Entity with given name.

Specified by:
create in interface UserProvider
Overrides:
create in class EmbeddedCrowdAbstractProvider
Returns:
Whether entity was successfully created.

handles

public boolean handles(String name)
Description copied from interface: UserProvider
Determine whether this UserProvider implementation is responsible for handling this Entity.

Specified by:
handles in interface UserProvider

list

public List<String> list()
Description copied from interface: UserProvider
Returns List of names (Strings) of all Entities that can be accessed by this UserProvider If this UserProvider cannot retrieve a list of names, null is to be returned. If there are no current Entities stored by this provider, an empty List is to be returned. The order of names returned can be determined by the UserProvider (it may or may not be relevant). This List should be immutable.

Specified by:
list in interface UserProvider
Overrides:
list in class EmbeddedCrowdAbstractProvider

remove

public boolean remove(String name)
Description copied from interface: UserProvider
Remove Entity with given name.

Specified by:
remove in interface UserProvider
Overrides:
remove in class EmbeddedCrowdAbstractProvider
Returns:
Whether entity was successfully removed.


Copyright © 2002-2011 Atlassian. All Rights Reserved.