|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openpermis.examples.ldap.AuthorizedHelloWorldService
public class AuthorizedHelloWorldService
An implementation of the HelloWorld service that controls access with the help of a policy decision point (PDP). It serves as a policy enforcement point for the HelloWorld application.
Field Summary | |
---|---|
protected static String |
ACTION_NAME
|
private org.openpermis.AuthorizationService |
authorizationService
The injected authorization service. |
private HelloWorldService |
delegate
The actual service implementation to which we forward authorized requests. |
protected static URI |
TARGET_RESOURCE_URI
|
Constructor Summary | |
---|---|
AuthorizedHelloWorldService(org.openpermis.AuthorizationService authorizationService,
HelloWorldService delegate)
Creates an authorized HelloWorld service that uses the specified policy decision context for retrieving roles and making access decisions. |
Method Summary | |
---|---|
String |
getHelloMessage(String name)
Returns a welcome message for the specified person. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final URI TARGET_RESOURCE_URI
protected static final String ACTION_NAME
"collectLetters"
private final org.openpermis.AuthorizationService authorizationService
private final HelloWorldService delegate
Constructor Detail |
---|
public AuthorizedHelloWorldService(org.openpermis.AuthorizationService authorizationService, HelloWorldService delegate)
authorizationService
- a AuthorizationService
.delegate
- the real service implementation to which authorized requests are forwarded.Method Detail |
---|
public String getHelloMessage(String name) throws HelloWorldException
HelloWorldService
getHelloMessage
in interface HelloWorldService
name
- the name of the person to greet.
HelloWorldException
- if the service fails to determine a suitable welcome message.
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
PERMIS Role Based Access Control 0.4.0 (Build 15)
2009/05/20 08:15:56
Copyright (c) 2002-2007 Ergon Informatik AG