org.openpermis.examples.simple
Class AuthorizedHelloWorldService
java.lang.Object
org.openpermis.examples.simple.AuthorizedHelloWorldService
- All Implemented Interfaces:
- HelloWorldService
public class AuthorizedHelloWorldService
- extends Object
- implements HelloWorldService
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.
- Since:
- 0.1.0
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TARGET_RESOURCE_URI
protected static final URI TARGET_RESOURCE_URI
- Since:
- 0.1.0
ACTION_NAME
protected static final String ACTION_NAME
- Constant Field Value:
"collectLetters"
- Since:
- 0.1.0
AuthorizedHelloWorldService
public 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.
- Parameters:
authorizationService
- a AuthorizationService
.delegate
- the real service implementation to which authorized requests are forwarded.- Since:
- 0.1.0
getHelloMessage
public String getHelloMessage(String name)
throws HelloWorldException
- Description copied from interface:
HelloWorldService
- Returns a welcome message for the specified person.
- Specified by:
getHelloMessage
in interface HelloWorldService
- Parameters:
name
- the name of the person to greet.
- Returns:
- a suitable welcome message.
- Throws:
HelloWorldException
- if the service fails to determine a suitable welcome message.- Since:
- 0.1.0
PERMIS Role Based Access Control 0.3.0 (Build 14)
2009/05/08 09:07:10
Copyright (c) 2002-2007 Ergon Informatik AG