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
The default implementation that defines the default authorization identity to be used, when none was selected by the client. This class simply removes the realm (if any) from the authentication identity (or 'principal') if and only if the realm matches the server's realm, the server's xmpp domain name, or any of the pre-approved realm names.- 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 authcid)
Returns the default authorization identity (the identity to act as) for a provided authentication identity (or 'principal' - whose password is used).String
name()
Returns the short name of the Policy
-
-
-
Method Detail
-
map
public String map(String authcid)
Returns the default authorization identity (the identity to act as) for a provided authentication identity (or 'principal' - whose password is used).- Specified by:
map
in interfaceAuthorizationMapping
- Parameters:
authcid
- authentication identity (or 'principal' whose password is used)- Returns:
- The name of the default authorization identity 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.
-
-