Package org.jivesoftware.openfire.auth
Class DefaultAuthorizationMapping
java.lang.Object
org.jivesoftware.openfire.auth.DefaultAuthorizationMapping
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptionReturns a description of the PolicyReturns the default authorization identity (the identity to act as) for a provided authentication identity (or 'principal' - whose password is used).name()Returns the short name of the Policy
-
Constructor Details
-
DefaultAuthorizationMapping
public DefaultAuthorizationMapping()
-
-
Method Details
-
map
Returns the default authorization identity (the identity to act as) for a provided authentication identity (or 'principal' - whose password is used).- Specified by:
mapin interfaceAuthorizationMapping- Parameters:
authcid- authentication identity (or 'principal' whose password is used)- Returns:
- The name of the default authorization identity to use.
-
name
Returns the short name of the Policy- Specified by:
namein interfaceAuthorizationMapping- Returns:
- The short name of the Policy
-
description
Returns a description of the Policy- Specified by:
descriptionin interfaceAuthorizationMapping- Returns:
- The description of the Policy.
-