Package io.hawt.web.tomcat
Class TomcatAuthenticationContainerDiscovery
- java.lang.Object
-
- io.hawt.web.tomcat.TomcatAuthenticationContainerDiscovery
-
- All Implemented Interfaces:
AuthenticationContainerDiscovery
public class TomcatAuthenticationContainerDiscovery extends java.lang.Object implements AuthenticationContainerDiscovery
To use Apache Tomcat using its conf/tomcat-users.xml for authentication. To use this, then theAuthenticationConfiguration.getRealm()must be empty or "*". Otherwise, if an explicit configured realm has been set, then regular JAAS authentication is in use.
-
-
Constructor Summary
Constructors Constructor Description TomcatAuthenticationContainerDiscovery()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanAuthenticate(AuthenticationConfiguration configuration)Whether the container can/should be used for authenticationjava.lang.StringgetContainerName()Gets the container name such as Apache Tomcat, used for logging purpose
-
-
-
Method Detail
-
getContainerName
public java.lang.String getContainerName()
Description copied from interface:AuthenticationContainerDiscoveryGets the container name such as Apache Tomcat, used for logging purpose- Specified by:
getContainerNamein interfaceAuthenticationContainerDiscovery
-
canAuthenticate
public boolean canAuthenticate(AuthenticationConfiguration configuration)
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.
-
-