|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.jbi.messaging.routing.module.AuthorizationModule
public class AuthorizationModule
A router module for authorizing routing. The accessible endpoint/service/operation are defined as accessible in a configuration file (authorization.cfg). This file must be available in the petals classpath(generally under the conf directory). The incoming message must contains a security subject where principals match with the defined ones.
| Field Summary | |
|---|---|
static java.lang.String |
CONFIGURATION
|
protected org.ow2.petals.util.LoggingUtil |
log
Logger wrapper. |
| Constructor Summary | |
|---|---|
AuthorizationModule()
|
|
| Method Summary | |
|---|---|
protected void |
authorizeSend(org.ow2.petals.jbi.messaging.exchange.MessageExchangeWrapper exchange)
Authorize to send the message. |
void |
electEndpoints(java.util.Map<ServiceEndpoint,TransportSendContext> electedEndpoints,
ComponentContext sourceComponentContext,
org.ow2.petals.jbi.messaging.exchange.MessageExchangeWrapper exchangeDecorator)
Elect a list of candidate endpoints to be destination of the exchange. |
protected void |
start()
Start the Fractal component |
protected void |
stop()
Stop the Fractal component |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.ow2.petals.util.LoggingUtil log
public static final java.lang.String CONFIGURATION
| Constructor Detail |
|---|
public AuthorizationModule()
| Method Detail |
|---|
protected void start()
throws java.io.IOException,
java.net.URISyntaxException,
AuthorizationException
java.io.IOException
java.net.URISyntaxException
AuthorizationException
protected void stop()
throws RoutingException
RoutingException
public void electEndpoints(java.util.Map<ServiceEndpoint,TransportSendContext> electedEndpoints,
ComponentContext sourceComponentContext,
org.ow2.petals.jbi.messaging.exchange.MessageExchangeWrapper exchangeDecorator)
throws RoutingException
SenderModule
electEndpoints in interface SenderModuleexchangeDecorator - the exchange decorator to send
RoutingException
protected void authorizeSend(org.ow2.petals.jbi.messaging.exchange.MessageExchangeWrapper exchange)
throws RoutingException
source - exchange - timeOut -
RoutingException - if the subject is null or if the user is not authorized to
send message to the JBI service (ie not found in
authorization map).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||