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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String description()
      Returns a description of the Policy
      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).
      String name()
      Returns the short name of the Policy
    • Method Detail

      • map

        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).
        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.