org.ow2.jonas.lib.security.jacc.handlers
Class JPolicyContextHandler

java.lang.Object
  extended by org.ow2.jonas.lib.security.jacc.handlers.JPolicyContextHandler
All Implemented Interfaces:
PolicyContextHandler

public class JPolicyContextHandler
extends Object
implements PolicyContextHandler

JOnAS class which contains all Context Handler to register inside the PolicyContext

Author:
Florent Benoit
See Also:
Section 4.6.1

Constructor Summary
JPolicyContextHandler()
          Default constructor
 
Method Summary
 Object getContext(String key, Object data)
           
 String[] getKeys()
          Supported keys by this JOnAS Context Handler
 boolean supports(String key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JPolicyContextHandler

public JPolicyContextHandler()
Default constructor

Method Detail

supports

public boolean supports(String key)
                 throws PolicyContextException
Specified by:
supports in interface PolicyContextHandler
Parameters:
key - the supported key
Returns:
true if the key is supported, else false.
Throws:
PolicyContextException - (never used here)
See Also:
PolicyContextHandler.supports(java.lang.String)

getKeys

public String[] getKeys()
                 throws PolicyContextException
Supported keys by this JOnAS Context Handler

Specified by:
getKeys in interface PolicyContextHandler
Throws:
PolicyContextException
See Also:
PolicyContextHandler.getKeys()

getContext

public Object getContext(String key,
                         Object data)
                  throws PolicyContextException
Specified by:
getContext in interface PolicyContextHandler
Parameters:
key - the key for the object that we want to retrieve
data - the handler data given by PolicyContext class
Returns:
the object for the specified key and with the given data object
Throws:
PolicyContextException - (never used)
See Also:
PolicyContextHandler.getContext(java.lang.String, java.lang.Object)


Copyright © 2010 OW2 Consortium. All Rights Reserved.