Openfire 3.3.0 Javadoc

org.jivesoftware.openfire.sasl
Interface AuthorizationPolicyProvider


public interface AuthorizationPolicyProvider

Provider interface for authorization policy. Users that wish to integrate with their own authorization system must implement this class and then register the implementation with Openfire in the openfire.xml file. An entry in that file would look like the following:

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

Author:
Jay Kline

Method Summary
 void authorize(String username, String principal)
          Returns if the principal is explicity authorized to the JID, throws an UnauthorizedException otherwise
 

Method Detail

authorize

void authorize(String username,
               String principal)
               throws UnauthorizedException
Returns if the principal is explicity authorized to the JID, throws an UnauthorizedException otherwise

Parameters:
username - The username requested.
principal - The principal requesting the username.
Throws:
UnauthorizedException

Openfire 3.3.0 Javadoc

Copyright © 2003-2007 Jive Software.