|
Openfire 3.6.1 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AuthorizationPolicy
This is the interface the AuthorizationManager uses to conduct authorizations.
Users that wish to integrate with their own authorization system must implement this interface, and are strongly encouraged to extend either the AbstractAuthoriationPolicy or the AbstractAuthorizationProvider classes which allow the admin console manage the classes more effectively. Register the class with Openfire in the openfire.xml file. An entry in that file would look like the following:<provider> <authorization> <classlist>com.foo.auth.CustomPolicyProvider</classlist> </authorization> </provider>
Method Summary | |
---|---|
boolean |
authorize(String username,
String principal)
Returns true if the principal is explicity authorized to the JID |
String |
description()
Returns a description of the Policy |
String |
name()
Returns the short name of the Policy |
Method Detail |
---|
boolean authorize(String username, String principal)
username
- The username requested.principal
- The principal requesting the username.
String name()
String description()
|
Openfire 3.6.1 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |