Wildfire 3.2.4 Javadoc

org.jivesoftware.wildfire.sasl
Interface AuthorizationProvider

All Known Implementing Classes:
AbstractAuthorizationPolicy, AbstractAuthorizationProvider, DefaultAuthorizationPolicy, DefaultAuthorizationProvider, LazyAuthorizationPolicy, LdapAuthorizationProvider, StrictAuthorizationPolicy, UnixK5LoginProvider

public interface AuthorizationProvider

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 Wildfire in the wildfire.xml file. An entry in that file would look like the following:

   <provider>
     <authorizationpolicy>
       <classlist>com.foo.auth.CustomPolicyProvider</classlist>
     </authorizationpolicy>
   </provider>

Author:
Jay Kline

Method Summary
 boolean authorize(String username, String principal)
          Returns true if the principal is explicity authorized to the JID
 

Method Detail

authorize

boolean authorize(String username,
                  String principal)
Returns true if the principal is explicity authorized to the JID

Parameters:
username - The username requested.
principal - The principal requesting the username.
Returns:
true is the user is authorized to be principal

Wildfire 3.2.4 Javadoc

Copyright © 2003-2007 Jive Software.