org.apache.jackrabbit.api.security.user
Interface User

All Superinterfaces:
Authorizable

public interface User
extends Authorizable

User is a special Authorizable that can be authenticated and impersonated.

See Also:
getCredentials(), getImpersonation()

Method Summary
 void changePassword(String password)
          Change the password of this user.
 Credentials getCredentials()
          Returns Credentials for this user.
 Impersonation getImpersonation()
           
 boolean isAdmin()
           
 
Methods inherited from interface org.apache.jackrabbit.api.security.user.Authorizable
addReferee, declaredMemberOf, getID, getPrincipal, getPrincipals, getProperty, getPropertyNames, hasProperty, isGroup, memberOf, remove, removeProperty, removeReferee, setProperty, setProperty
 

Method Detail

isAdmin

boolean isAdmin()
Returns:
true if the current user represents the administrator.

getCredentials

Credentials getCredentials()
                           throws RepositoryException
Returns Credentials for this user.

Returns:
Credentials for this user.
Throws:
RepositoryException

getImpersonation

Impersonation getImpersonation()
                               throws RepositoryException
Returns:
Impersonation for this User.
Throws:
RepositoryException

changePassword

void changePassword(String password)
                    throws RepositoryException
Change the password of this user.

Parameters:
password - The new password.
Throws:
RepositoryException


Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.