Package net.shibboleth.idp.authn.impl
Class ValidateCredentialsTest
- java.lang.Object
-
- org.opensaml.core.OpenSAMLInitBaseTestCase
-
- net.shibboleth.idp.authn.impl.BaseAuthenticationContextTest
-
- net.shibboleth.idp.authn.impl.ValidateCredentialsTest
-
public class ValidateCredentialsTest extends BaseAuthenticationContextTest
Unit test for multiple credential validation.
-
-
Field Summary
Fields Modifier and Type Field Description private net.shibboleth.idp.authn.impl.ValidateCredentialsactionprivate Authenticatorauthenticatorprivate BindAuthenticationHandlerauthHandlerprivate static StringDATA_PATHprivate com.unboundid.ldap.listener.InMemoryDirectoryServerdirectoryServerprivate net.shibboleth.idp.authn.TemplateSearchDnResolverdnResolver-
Fields inherited from class net.shibboleth.idp.authn.impl.BaseAuthenticationContextTest
authenticationFlows, prc, src
-
-
Constructor Summary
Constructors Constructor Description ValidateCredentialsTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voiddoExtract()voidsetUp()voidsetupAuthenticator()Creates an Authenticator configured to use the in-memory directory server.voidsetupDirectoryServer()Creates an UnboundID in-memory directory server.voidteardownDirectoryServer()Shutdown the in-memory directory server.voidtestAuthorized()voidtestAuthorized2()voidtestAuthorizedAll()voidtestBadPassword()voidtestBadPassword2()voidtestBadUsername()voidtestEmptyPassword()-
Methods inherited from class net.shibboleth.idp.authn.impl.BaseAuthenticationContextTest
initializeMembers
-
-
-
-
Field Detail
-
DATA_PATH
private static final String DATA_PATH
- See Also:
- Constant Field Values
-
action
private net.shibboleth.idp.authn.impl.ValidateCredentials action
-
directoryServer
private com.unboundid.ldap.listener.InMemoryDirectoryServer directoryServer
-
dnResolver
private net.shibboleth.idp.authn.TemplateSearchDnResolver dnResolver
-
authHandler
private BindAuthenticationHandler authHandler
-
authenticator
private Authenticator authenticator
-
-
Method Detail
-
setupDirectoryServer
@BeforeClass public void setupDirectoryServer() throws com.unboundid.ldap.sdk.LDAPException
Creates an UnboundID in-memory directory server. Leverages LDIF found in test resources.- Throws:
com.unboundid.ldap.sdk.LDAPException- if the in-memory directory server cannot be created
-
setupAuthenticator
@BeforeClass public void setupAuthenticator()
Creates an Authenticator configured to use the in-memory directory server.
-
teardownDirectoryServer
@AfterClass public void teardownDirectoryServer()
Shutdown the in-memory directory server.
-
setUp
@BeforeMethod public void setUp() throws Exception
- Overrides:
setUpin classBaseAuthenticationContextTest- Throws:
Exception
-
-