Openfire 3.9.3 Javadoc

org.jivesoftware.openfire.auth
Class DefaultAuthorizationPolicy

java.lang.Object
  extended by org.jivesoftware.openfire.auth.DefaultAuthorizationPolicy
All Implemented Interfaces:
AuthorizationPolicy

public class DefaultAuthorizationPolicy
extends Object
implements AuthorizationPolicy

Different clients perform authentication differently, so this policy will authorize any principal to a requested user that match specific conditions that are considered secure defaults for most installations. Keep in mind if a client does not request any username Java copies the authenticated ID to the requested username.

Author:
Jay Kline
See Also:
AuthorizationManager

Constructor Summary
DefaultAuthorizationPolicy()
           
 
Method Summary
 boolean authorize(String username, String authenID)
          Returns true if the principal is explicitly authorized to the JID
 String description()
          Returns a description of the Policy
 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

DefaultAuthorizationPolicy

public DefaultAuthorizationPolicy()
Method Detail

authorize

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

Specified by:
authorize in interface AuthorizationPolicy
Parameters:
username - The username requested.
authenID - The authenticated ID (principal) requesting the username.
Returns:
true if the authenticated ID is authorized to the requested user.

name

public String name()
Returns the short name of the Policy

Specified by:
name in interface AuthorizationPolicy
Returns:
The short name of the Policy

description

public String description()
Returns a description of the Policy

Specified by:
description in interface AuthorizationPolicy
Returns:
The description of the Policy.

Openfire 3.9.3 Javadoc

Copyright © 2003-2008 Jive Software.