Class GoogleTOTPAuthenticatorTest
java.lang.Object
org.opensaml.core.testing.OpenSAMLInitBaseTestCase
net.shibboleth.idp.plugin.authn.totp.impl.BaseAuthenticationContextTest
net.shibboleth.idp.plugin.authn.totp.impl.GoogleTOTPAuthenticatorTest
Unit test for
GoogleTOTPAuthenticator.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate net.shibboleth.idp.authn.impl.ValidateCredentialsprivate net.shibboleth.idp.plugin.authn.totp.impl.GoogleTOTPAuthenticatorprivate net.shibboleth.idp.plugin.authn.totp.impl.TOTPCredentialValidatorFields inherited from class net.shibboleth.idp.plugin.authn.totp.impl.BaseAuthenticationContextTest
authenticationFlows, prc, src -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.shibboleth.idp.plugin.authn.totp.impl.BaseAuthenticationContextTest
getMockHttpServletRequest, initializeMembersMethods inherited from class org.opensaml.core.testing.OpenSAMLInitBaseTestCase
initOpenSAML
-
Field Details
-
authenticator
private net.shibboleth.idp.plugin.authn.totp.impl.GoogleTOTPAuthenticator authenticator -
validator
private net.shibboleth.idp.plugin.authn.totp.impl.TOTPCredentialValidator validator -
action
private net.shibboleth.idp.authn.impl.ValidateCredentials action
-
-
Constructor Details
-
GoogleTOTPAuthenticatorTest
public GoogleTOTPAuthenticatorTest()
-
-
Method Details
-
setUp
- Overrides:
setUpin classBaseAuthenticationContextTest- Throws:
ComponentInitializationException
-
testMissingContext
- Throws:
ComponentInitializationException
-
testMissingUser
- Throws:
ComponentInitializationException
-
testMissingCode
- Throws:
ComponentInitializationException
-
testMissingSeeds
- Throws:
ComponentInitializationException
-
testUnmatchedUser
- Throws:
Exception
-
testInvalidSeed
- Throws:
ComponentInitializationException
-
testInvalidCode
-
testSuccess
-