Wildfire 3.2.4 Javadoc

org.jivesoftware.wildfire.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 Wildfire in the wildfire.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

Wildfire 3.2.4 Javadoc

Copyright © 2003-2007 Jive Software.