Class DatabaseCertLoginModule

    • Field Detail

      • txManagerJndiName

        protected String txManagerJndiName
        The JNDI name of the transaction manager
      • suspendResume

        protected boolean suspendResume
        Whether to suspend resume transactions during database operations
    • Constructor Detail

      • DatabaseCertLoginModule

        public DatabaseCertLoginModule()
    • Method Detail

      • initialize

        public void initialize​(Subject subject,
                               CallbackHandler callbackHandler,
                               Map<String,​?> sharedState,
                               Map<String,​?> options)
        Description copied from class: BaseCertLoginModule
        Override the super version to pickup the following options after first calling the super method. option: securityDomain - the name of the SecurityDomain to obtain the trust and keystore from. option: verifier - the class name of the X509CertificateVerifier to use for verification of the login certificate
        Specified by:
        initialize in interface LoginModule
        Overrides:
        initialize in class BaseCertLoginModule
        Parameters:
        options - - dsJndiName: The name of the DataSource of the database containing the Principals, Roles tables rolesQuery: The prepared statement query, equivalent to: "select Role, RoleGroup from Roles where PrincipalID=?"
        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