org.objectweb.jonas.security.jacc
Class JPolicyContextHandler
java.lang.Object
org.objectweb.jonas.security.jacc.JPolicyContextHandler
- All Implemented Interfaces:
- javax.security.jacc.PolicyContextHandler
- public class JPolicyContextHandler
- extends java.lang.Object
- implements javax.security.jacc.PolicyContextHandler
JOnAS class which contains all Context Handler to register inside the
PolicyContext
- Author:
- Florent Benoit
- See Also:
Section 4.6.1
Method Summary |
java.lang.Object |
getContext(java.lang.String key,
java.lang.Object data)
|
java.lang.String[] |
getKeys()
Supported keys by this JOnAS Context Handler |
boolean |
supports(java.lang.String key)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JPolicyContextHandler
public JPolicyContextHandler()
- Default constructor
supports
public boolean supports(java.lang.String key)
throws javax.security.jacc.PolicyContextException
- Specified by:
supports
in interface javax.security.jacc.PolicyContextHandler
- Parameters:
key
- the supported key
- Returns:
- true if the key is supported, else false.
- Throws:
javax.security.jacc.PolicyContextException
- (never used here)- See Also:
PolicyContextHandler.supports(java.lang.String)
getKeys
public java.lang.String[] getKeys()
throws javax.security.jacc.PolicyContextException
- Supported keys by this JOnAS Context Handler
- Specified by:
getKeys
in interface javax.security.jacc.PolicyContextHandler
- Throws:
javax.security.jacc.PolicyContextException
- See Also:
PolicyContextHandler.getKeys()
getContext
public java.lang.Object getContext(java.lang.String key,
java.lang.Object data)
throws javax.security.jacc.PolicyContextException
- Specified by:
getContext
in interface javax.security.jacc.PolicyContextHandler
- Parameters:
key
- the key for the object that we want to retrievedata
- the handler data given by PolicyContext class
- Returns:
- the object for the specified key and with the given data object
- Throws:
javax.security.jacc.PolicyContextException
- (never used)- See Also:
PolicyContextHandler.getContext(java.lang.String,
java.lang.Object)