Package org.jivesoftware.openfire.auth
Interface AuthorizationMapping
- All Known Implementing Classes:
DefaultAuthorizationMapping
,LdapAuthorizationMapping
public interface AuthorizationMapping
This is the interface the used to provide default authorization identity 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.
Users that wish to integrate with their own authorization system must implement this interface. Register the class
with Openfire in the
openfire.xml
file.
An entry in that file would look like the following:
<provider> <authorizationMapping> <classlist>com.foo.auth.CustomProvider</classlist> </authorizationMapping> </provider>
- Author:
- Jay Kline
-
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
-
Method Details
-
map
Returns the default authorization identity (the identity to act as) for a provided authentication identity (or 'principal' - whose password is used).- Parameters:
authcid
- authentication identity (or 'principal' whose password is used)- Returns:
- The name of the default authorization identity to use.
-
name
String name()Returns the short name of the Policy- Returns:
- The short name of the Policy
-
description
String description()Returns a description of the Policy- Returns:
- The description of the Policy.
-