Class CertRolesLoginModule

  • All Implemented Interfaces:
    LoginModule

    public class CertRolesLoginModule
    extends BaseCertLoginModule
    Certificate Login Module that uses a properties file to store role information. This works just like the UsersRolesLoginModule, only without the users.properties file. In fact, all the role handling code was borrowed directly from that class.
    Version:
    $Revision$
    Author:
    Jason Essington, Scott.Stark@jboss.org
    See Also:
    BaseCertLoginModule
    • Constructor Detail

      • CertRolesLoginModule

        public CertRolesLoginModule()
    • Method Detail

      • initialize

        public void initialize​(Subject subject,
                               CallbackHandler callbackHandler,
                               Map<String,​?> sharedState,
                               Map<String,​?> options)
        Initialize this LoginModule.
        Specified by:
        initialize in interface LoginModule
        Overrides:
        initialize in class BaseCertLoginModule
        Parameters:
        options - - the login module option map. Supported options include: rolesProperties: The name of the properties resource containing user/roles the default is "roles.properties". roleGroupSeperator: The character used to seperate the role group name from the username e.g., '.' in jduke.CallerPrincipal=... . The default = '.'. defaultRolesProperties=string: The name of the properties resource containing the username to roles mappings that will be used as the defaults Properties passed to the usersProperties Properties. This defaults to defaultRoles.properties.
        subject - the Subject to update after a successful login.
        callbackHandler - the CallbackHandler that will be used to obtain the the user identity and credentials.
        sharedState - a Map shared between all configured login module instances
        See Also:
        SecurityDomain, X509CertificateVerifier