|
Openfire 3.3.0 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jivesoftware.openfire.sasl.AbstractAuthorizationPolicy
public abstract class AbstractAuthorizationPolicy
Provider for authorization policies. Policy decisions are not based on any storage or specific options. They are ment to be broad sweeping policies, and are often implemented with a simple pattern matching algorithm. For a large majority of sites, a policy will be all that is required. Users that wish to integrate with their own authorization system must extend this class and implement the AuthorizationProvider interface then register the class with Openfire in the openfire.xml file. An entry in that file would look like the following:
<provider> <authorizationpolicy> <classlist>com.foo.auth.CustomPolicyProvider</classlist> </authorizationpolicy> </provider>
Constructor Summary | |
---|---|
AbstractAuthorizationPolicy()
|
Method Summary | |
---|---|
abstract boolean |
authorize(String username,
String principal)
Returns true if the principal is explicity authorized to the JID |
abstract String |
description()
Returns a description of the Policy |
abstract String |
name()
Returns the short name of the Policy |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractAuthorizationPolicy()
Method Detail |
---|
public abstract boolean authorize(String username, String principal)
authorize
in interface AuthorizationProvider
username
- The username requested.principal
- The principal requesting the username.
public abstract String name()
public abstract String description()
|
Openfire 3.3.0 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |