|
Openfire 3.4.3 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.openfire.ldap.LdapAuthorizationPolicy
public class LdapAuthorizationPolicy
Provider for authorization using LDAP. Checks if the authenticated principal is in the user's LDAP object using the authorizeField from the openfire.xml file. An entry in that file would look like the following:
<ldap> <authorizeField> k5login </authorizeField> </ldap>This implementation requires that LDAP be configured, obviously.
Constructor Summary | |
---|---|
LdapAuthorizationPolicy()
|
Method Summary | |
---|---|
boolean |
authorize(String username,
String principal)
Returns if the principal is explicity authorized to the JID, throws an UnauthorizedException otherwise |
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 |
---|
public LdapAuthorizationPolicy()
Method Detail |
---|
public boolean authorize(String username, String principal)
authorize
in interface AuthorizationPolicy
username
- The username requested.import org.jivesoftware.openfire.ldap.*;principal
- The principal requesting the username.
public String name()
name
in interface AuthorizationPolicy
public String description()
description
in interface AuthorizationPolicy
|
Openfire 3.4.3 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |