Class BasicAuthenticationBase
- java.lang.Object
-
- org.wildfly.elytron.web.undertow.common.AbstractHttpServerMechanismTest
-
- org.wildfly.elytron.web.undertow.common.BasicAuthenticationBase
-
public abstract class BasicAuthenticationBase extends AbstractHttpServerMechanismTest
Test case to test HTTP BASIC authentication where authentication is backed by Elytron.- Author:
- Darran Lofthouse
-
-
Field Summary
Fields Modifier and Type Field Description UndertowServerserver
-
Constructor Summary
Constructors Modifier Constructor Description protectedBasicAuthenticationBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract UndertowServercreateUndertowServer()protected org.wildfly.security.auth.server.SecurityDomaindoCreateSecurityDomain()protected StringgetMechanismName()voidtestFailedAuthentication()voidtestSuccessfulAuthentication()voidtestUnauthorized()voidtestUnconstrainedAccessWithCorrectPassword()voidtestUnconstrainedAccessWithIncorrectPassword()voidtestUnconstrainedAccessWithoutPassword()-
Methods inherited from class org.wildfly.elytron.web.undertow.common.AbstractHttpServerMechanismTest
assertLoginPage, assertSuccessfulResponse, assertSuccessfulUnconstraintResponse, getHttpServerAuthenticationMechanismFactory, getSecurityDomain, installProvider, removeProvider
-
-
-
-
Field Detail
-
server
public UndertowServer server
-
-
Method Detail
-
testSuccessfulAuthentication
public void testSuccessfulAuthentication() throws Exception- Throws:
Exception
-
testUnconstrainedAccessWithCorrectPassword
public void testUnconstrainedAccessWithCorrectPassword() throws Exception- Throws:
Exception
-
testUnconstrainedAccessWithIncorrectPassword
public void testUnconstrainedAccessWithIncorrectPassword() throws Exception- Throws:
Exception
-
testUnconstrainedAccessWithoutPassword
public void testUnconstrainedAccessWithoutPassword() throws Exception- Throws:
Exception
-
getMechanismName
protected String getMechanismName()
- Specified by:
getMechanismNamein classAbstractHttpServerMechanismTest
-
doCreateSecurityDomain
protected org.wildfly.security.auth.server.SecurityDomain doCreateSecurityDomain() throws Exception- Specified by:
doCreateSecurityDomainin classAbstractHttpServerMechanismTest- Throws:
Exception
-
createUndertowServer
protected abstract UndertowServer createUndertowServer() throws Exception
- Throws:
Exception
-
-