org.apache.felix.useradmin.impl
Class RoleCredentials

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable
          extended by org.apache.felix.useradmin.impl.RoleProperties
              extended by org.apache.felix.useradmin.impl.RoleCredentials
All Implemented Interfaces:
Serializable, Cloneable, Map

public class RoleCredentials
extends RoleProperties

This class RoleCredentials represents role credentials hashtable. User of this class needs to have proper permissions UserAdminPermission#CHANGE_CREDENTIAL to modify credentials and UserAdminPermission#GET_CREDENTIAL to get credentials. Inherits methods from RoleProperties.

Version:
$Rev$ $Date$
See Also:
RoleProperties, Serialized Form

Field Summary
 
Fields inherited from class org.apache.felix.useradmin.impl.RoleProperties
role
 
Constructor Summary
RoleCredentials(RoleImpl role)
          Constructs new RoleCredentials.
 
Method Summary
 Object get(Object key)
          Gets credential for specified key.
protected  String getChangeAction()
          The permission need to modify the credentials.
 String toString()
           
 
Methods inherited from class org.apache.felix.useradmin.impl.RoleProperties
clear, put, remove
 
Methods inherited from class java.util.Hashtable
clone, contains, containsKey, containsValue, elements, entrySet, equals, hashCode, isEmpty, keys, keySet, putAll, rehash, size, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RoleCredentials

public RoleCredentials(RoleImpl role)
Constructs new RoleCredentials.

Parameters:
role - Role instance.
Method Detail

getChangeAction

protected String getChangeAction()
The permission need to modify the credentials.

Overrides:
getChangeAction in class RoleProperties

get

public Object get(Object key)
Gets credential for specified key. User of this method needs to have UserAdminPermission#GET_CREDENTIAL permissions.

Specified by:
get in interface Map
Overrides:
get in class RoleProperties

toString

public String toString()
Overrides:
toString in class RoleProperties


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