org.apache.felix.useradmin.impl
Class UserImpl

java.lang.Object
  extended by org.apache.felix.useradmin.impl.RoleImpl
      extended by org.apache.felix.useradmin.impl.UserImpl
All Implemented Interfaces:
Serializable, Version, Role, User
Direct Known Subclasses:
GroupImpl

public class UserImpl
extends RoleImpl
implements User

This UserImplclass represents User role. A User can be configured with credentials, password,properties etc.

Version:
$Rev$ $Date$
See Also:
Role, User, Serialized Form

Field Summary
 
Fields inherited from class org.apache.felix.useradmin.impl.RoleImpl
name, userAdmin
 
Fields inherited from interface org.osgi.service.useradmin.Role
GROUP, ROLE, USER, USER_ANYONE
 
Constructor Summary
UserImpl()
          Constructs new User.
 
Method Summary
 Dictionary getCredentials()
           
 int getType()
           
 boolean hasCredential(String key, Object value)
           
protected  boolean impliedBy(AuthorizationImpl authorization)
          Checks if this role is implied by provided Authorization object.
 
Methods inherited from class org.apache.felix.useradmin.impl.RoleImpl
getName, getProperties, getVersion, increaseVersion, setName, setUserAdmin
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.osgi.service.useradmin.Role
getName, getProperties
 

Constructor Detail

UserImpl

public UserImpl()
Constructs new User.

Method Detail

getCredentials

public Dictionary getCredentials()
Specified by:
getCredentials in interface User
See Also:
User.getCredentials()

hasCredential

public boolean hasCredential(String key,
                             Object value)
Specified by:
hasCredential in interface User
See Also:
User.hasCredential(String, Object)

getType

public int getType()
Specified by:
getType in interface Role
Overrides:
getType in class RoleImpl
See Also:
Role.getType()

impliedBy

protected boolean impliedBy(AuthorizationImpl authorization)
Checks if this role is implied by provided Authorization object.

Overrides:
impliedBy in class RoleImpl
Parameters:
authorization - Authorization instance.
Returns:
true if is implied false if not.
See Also:
Autorization


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.