Package org.jivesoftware.openfire.auth
Class DefaultAuthorizationMapping
- java.lang.Object
-
- org.jivesoftware.openfire.auth.DefaultAuthorizationMapping
-
- All Implemented Interfaces:
AuthorizationMapping
public class DefaultAuthorizationMapping extends Object implements AuthorizationMapping
This is the interface the used to provide default default authorization ID's when none was selected by the client. This class simply removes the realm (if any) from the principal if and only if the realm matches the server's realm, the server's xmpp domain name, or- Author:
- Jay Kline
-
-
Constructor Summary
Constructors Constructor Description DefaultAuthorizationMapping()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
description()
Returns a description of the PolicyString
map(String principal)
Returns true if the principal is explicity authorized to the JIDString
name()
Returns the short name of the Policy
-
-
-
Method Detail
-
map
public String map(String principal)
Returns true if the principal is explicity authorized to the JID- Specified by:
map
in interfaceAuthorizationMapping
- Parameters:
principal
- The autheticated principal requesting authorization.- Returns:
- The name of the default username to use.
-
name
public String name()
Returns the short name of the Policy- Specified by:
name
in interfaceAuthorizationMapping
- Returns:
- The short name of the Policy
-
description
public String description()
Returns a description of the Policy- Specified by:
description
in interfaceAuthorizationMapping
- Returns:
- The description of the Policy.
-
-