01: package ru.emdev.EmForge.wiki.security;
02:
03: import java.security.Principal;
04: import java.util.Properties;
05:
06: import com.ecyrd.jspwiki.WikiEngine;
07: import com.ecyrd.jspwiki.WikiSession;
08: import com.ecyrd.jspwiki.auth.Authorizer;
09: import com.ecyrd.jspwiki.auth.WikiSecurityException;
10:
11: /** Authorizer Implementation
12: *
13: * @note I'm not 100% sure it is really required. We can use this class as wrapper from
14: * Roles, used in EmForge and Roles, used in JspWiki
15: *
16: */
17: public class AuthorizerImpl implements Authorizer {
18: public void initialize(WikiEngine engine, Properties props)
19: throws WikiSecurityException {
20: // TODO Auto-generated method stub
21: }
22:
23: public Principal findRole(String role) {
24: // TODO Auto-generated method stub
25: return null;
26: }
27:
28: public Principal[] getRoles() {
29: // TODO Auto-generated method stub
30: return null;
31: }
32:
33: public boolean isUserInRole(WikiSession session, Principal role) {
34: // TODO Auto-generated method stub
35: return false;
36: }
37: }
|