|
Wildfire 3.2.4 Javadoc | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jivesoftware.wildfire.sasl.AbstractAuthorizationPolicy
org.jivesoftware.wildfire.sasl.LazyAuthorizationPolicy
public class LazyAuthorizationPolicy
This policy will authorize any principal who's username matches exactly the username of the JID. This means when cross realm authentication is allowed, user@REALM_A.COM and user@REALM_B.COM could both authorize as user@servername, so there is some risk here. But if usernames across the
| Constructor Summary | |
|---|---|
LazyAuthorizationPolicy()
|
|
| 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 LazyAuthorizationPolicy()
| Method Detail |
|---|
public boolean authorize(String username,
String principal)
authorize in interface AuthorizationProviderauthorize in class AbstractAuthorizationPolicyusername - The username requested.principal - The principal requesting the username.
public String name()
name in class AbstractAuthorizationPolicypublic 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 | ||||||||