Package net.shibboleth.idp.authn.config
Class LDAPAuthenticationFactoryBeanTest
java.lang.Object
net.shibboleth.idp.authn.config.LDAPAuthenticationFactoryBeanTest
Unit test for LDAP authentication factory bean.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Authenticatorprivate static final Stringprivate InMemoryDirectoryprivate net.shibboleth.idp.authn.config.LDAPAuthenticationFactoryBean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate AuthenticationRequestcreateAuthenticationRequest(String username, String password) voidvoidCreates an UnboundID in-memory directory server.voidvoidShutdown the in-memory directory server.voidvoid
-
Field Details
-
DATA_PATH
- See Also:
-
directoryServer
-
factoryBean
private net.shibboleth.idp.authn.config.LDAPAuthenticationFactoryBean factoryBean -
authenticator
-
-
Constructor Details
-
LDAPAuthenticationFactoryBeanTest
public LDAPAuthenticationFactoryBeanTest()
-
-
Method Details
-
setupDirectoryServer
@BeforeClass public void setupDirectoryServer()Creates an UnboundID in-memory directory server. Leverages LDIF found in test resources. -
teardownDirectoryServer
Shutdown the in-memory directory server.- Throws:
Exception
-
setupAuthenticator
- Throws:
Exception
-
teardownAuthenticator
- Throws:
Exception
-
testAuthnSuccess
- Throws:
Exception
-
testAuthnFailure
- Throws:
Exception
-
createAuthenticationRequest
-