Package io.hawt.web.tomcat
Class TomcatAuthenticationContainerDiscovery
java.lang.Object
io.hawt.web.tomcat.TomcatAuthenticationContainerDiscovery
- All Implemented Interfaces:
AuthenticationContainerDiscovery
public class TomcatAuthenticationContainerDiscovery
extends Object
implements AuthenticationContainerDiscovery
To use Apache Tomcat using its conf/tomcat-users.xml for authentication.
To use this, then the
AuthenticationConfiguration.getRealm() must be empty or "*". Otherwise,
if an explicit configured realm has been set, then regular JAAS authentication is in use.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanAuthenticate(AuthenticationConfiguration configuration) Whether the container can/should be used for authenticationGets the container name such as Apache Tomcat, used for logging purpose
-
Constructor Details
-
TomcatAuthenticationContainerDiscovery
public TomcatAuthenticationContainerDiscovery()
-
-
Method Details
-
getContainerName
Description copied from interface:AuthenticationContainerDiscoveryGets the container name such as Apache Tomcat, used for logging purpose- Specified by:
getContainerNamein interfaceAuthenticationContainerDiscovery
-
canAuthenticate
Description copied from interface:AuthenticationContainerDiscoveryWhether the container can/should be used for authentication- Specified by:
canAuthenticatein interfaceAuthenticationContainerDiscovery- Parameters:
configuration- the configuration option (muteable)- Returns:
- true if the container is being used for authentication.
-