|
Wildfire 3.2.4 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.wildfire.sasl.AbstractAuthorizationPolicy org.jivesoftware.wildfire.sasl.DefaultAuthorizationPolicy
public class DefaultAuthorizationPolicy
This policy will authorize any principal that matches exactly the full JID (REALM and server name must be the same if using GSSAPI) or any principal that matches exactly the username (without REALM or server name). This does exactly what users expect if not supplying a seperate principal for authentication.
Constructor Summary | |
---|---|
DefaultAuthorizationPolicy()
|
Method Summary | |
---|---|
boolean |
authorize(String username,
String principal)
Returns true if the principal is explicity 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 |
---|
public DefaultAuthorizationPolicy()
Method Detail |
---|
public boolean authorize(String username, String principal)
authorize
in interface AuthorizationProvider
authorize
in class AbstractAuthorizationPolicy
username
- The username requested.principal
- The principal requesting the username.
public String name()
name
in class AbstractAuthorizationPolicy
public String description()
description
in class AbstractAuthorizationPolicy
|
Wildfire 3.2.4 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |