|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nbi.xmlsec.PEP
This class implements a Policy Enforcement Point. The implementation bases on the Jetty HttpServer implementation. The PEP acts like an Filter between a client and a resource server. The configuration is done in the config.xml file, according to the Jakarta Commons Configuration API.
Field Summary | |
private Configuration |
configuration
The PEP's configuration |
private HttpServer |
filter
The PEP's filter |
(package private) static Logger |
logger
|
Constructor Summary | |
PEP(Configuration config)
Inits the PEP based on the given configuration. |
Method Summary | |
static String |
getClassName(Configuration config)
Get the PEP's class name from the configuration. |
Configuration |
getConfiguration()
Gets the configuration |
HttpServer |
getFilter()
Gets the filter |
protected Object |
getFilterInstance(Configuration config)
Sets up the PEP filter based on the given configuration. |
static void |
main(String[] args)
|
void |
setConfiguration(Configuration configuration)
Sets configuration |
void |
setFilter(HttpServer filter)
Sets filter |
(package private) void |
start()
Starts the PEP. |
(package private) void |
stop()
Stops the PEP. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static Logger logger
private Configuration configuration
private HttpServer filter
Constructor Detail |
public PEP(Configuration config) throws Exception
config
- PEP's configuration.
Exception
Method Detail |
protected Object getFilterInstance(Configuration config) throws UnknownHostException, ClassNotFoundException, NoSuchMethodException, InvocationTargetException, InstantiationException, IllegalAccessException
config
- PEP's configuration.
Exception
UnknownHostException
ClassNotFoundException
NoSuchMethodException
InvocationTargetException
InstantiationException
IllegalAccessException
void start() throws Exception
Exception
void stop() throws InterruptedException
Exception
InterruptedException
public Configuration getConfiguration()
public void setConfiguration(Configuration configuration)
configuration
- The configuration to set.public void setFilter(HttpServer filter)
filter
- The filter to set.public HttpServer getFilter()
public static String getClassName(Configuration config)
config
- PEP's configuration
public static void main(String[] args) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |