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 |
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
Copyright © 2003-2007 Jive Software.