All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.hawt.web.auth.AuthenticationContainerDiscovery Maven / Gradle / Ivy

The newest version!
package io.hawt.web.auth;

/**
 * SPI to allow various containers to discover and hook up needed configuration
 * changes to {@link AuthenticationConfiguration} so hawtio {@link AuthenticationFilter}
 * can integrate with the container easily.
 */
public interface AuthenticationContainerDiscovery {

    /**
     * Gets the container name such as Apache Tomcat, used for logging purpose
     */
    String getContainerName();

    /**
     * Whether the container can/should be used for authentication. If given discovery can be used,
     * {@link AuthenticationConfiguration} may be changed (for example by setting JAAS
     * {@link javax.security.auth.login.Configuration}).
     *
     * @param configuration the configuration option (mutable)
     * @return true if the container is being used for authentication.
     */
    boolean canAuthenticate(AuthenticationConfiguration configuration);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy