Package net.shibboleth.idp.authn.impl
Class HTPasswdCredentialValidatorTest
- java.lang.Object
-
- org.opensaml.core.OpenSAMLInitBaseTestCase
-
- net.shibboleth.idp.authn.impl.BaseAuthenticationContextTest
-
- net.shibboleth.idp.authn.impl.HTPasswdCredentialValidatorTest
-
public class HTPasswdCredentialValidatorTest extends BaseAuthenticationContextTest
Unit test for htpasswd file validation.
-
-
Field Summary
Fields Modifier and Type Field Description private net.shibboleth.idp.authn.impl.ValidateCredentialsactionprivate static StringDATA_PATHprivate net.shibboleth.idp.authn.impl.HTPasswdCredentialValidatorvalidator-
Fields inherited from class net.shibboleth.idp.authn.impl.BaseAuthenticationContextTest
authenticationFlows, prc, src
-
-
Constructor Summary
Constructors Constructor Description HTPasswdCredentialValidatorTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voiddoExtract()voidsetUp()voidtestAuthorizedAndKeep()voidtestAuthorizedCrypt()voidtestAuthorizedMD5()voidtestAuthorizedMD5WithFile()voidtestAuthorizedSHA()voidtestBadPassword()voidtestBadUsername()voidtestMissingFlow()voidtestMissingUser()voidtestMissingUser2()voidtestSupported()voidtestUnmatchedUser()voidtestUnsupported()-
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
-
validator
private net.shibboleth.idp.authn.impl.HTPasswdCredentialValidator validator
-
action
private net.shibboleth.idp.authn.impl.ValidateCredentials action
-
-
Method Detail
-
setUp
@BeforeMethod public void setUp() throws Exception
- Overrides:
setUpin classBaseAuthenticationContextTest- Throws:
Exception
-
testAuthorizedMD5WithFile
public void testAuthorizedMD5WithFile() throws Exception- Throws:
Exception
-
-