Class ValidateCodeChallengeTest
- java.lang.Object
-
- org.opensaml.core.testing.OpenSAMLInitBaseTestCase
-
- net.shibboleth.idp.plugin.oidc.op.profile.impl.BaseOIDCResponseActionTest
-
- net.shibboleth.idp.plugin.oidc.op.profile.impl.ValidateCodeChallengeTest
-
public class ValidateCodeChallengeTest extends BaseOIDCResponseActionTest
ValidateCodeChallengeunit test.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.shibboleth.idp.plugin.oidc.op.profile.impl.BaseOIDCResponseActionTest
BaseOIDCResponseActionTest.MockRevocationCache
-
-
Field Summary
Fields Modifier and Type Field Description private net.shibboleth.idp.plugin.oidc.op.profile.impl.ValidateCodeChallengeactionprivate booleanallowPlainprivate booleanforcePkce-
Fields inherited from class net.shibboleth.idp.plugin.oidc.op.profile.impl.BaseOIDCResponseActionTest
clientId, credentialEC256, credentialEC384, credentialEC521, credentialHMAC, credentialRSA, idGenerator, metadataCtx, profileRequestCtx, request, requestCtx, respCtx, rpCtx, subject
-
-
Constructor Summary
Constructors Constructor Description ValidateCodeChallengeTest()
-
Method Summary
-
Methods inherited from class net.shibboleth.idp.plugin.oidc.op.profile.impl.BaseOIDCResponseActionTest
addEntryToMap, getDataSealer, initializeDataSealer, setAuthenticationRequest, setIdTokenToResponseContext, setTokenRequest, setUp, setUserInfoRequest, setUserInfoResponseToResponseContext, signIdTokenInResponseContext, signUserInfoResponseInResponseContext
-
-
-
-
Method Detail
-
init
@BeforeMethod private void init() throws ComponentInitializationException, URISyntaxException, com.nimbusds.oauth2.sdk.ParseException
- Throws:
ComponentInitializationExceptionURISyntaxExceptioncom.nimbusds.oauth2.sdk.ParseException
-
testUnforcedAllowMissingChallenge
public void testUnforcedAllowMissingChallenge() throws ComponentInitializationException- Throws:
ComponentInitializationException
-
testForcedFailsWhenMissingChallenge
public void testForcedFailsWhenMissingChallenge() throws ComponentInitializationException- Throws:
ComponentInitializationException
-
testForcedFailsWhenEmptyChallenge
public void testForcedFailsWhenEmptyChallenge() throws ComponentInitializationException, com.nimbusds.oauth2.sdk.ParseException- Throws:
ComponentInitializationExceptioncom.nimbusds.oauth2.sdk.ParseException
-
testUnforcedPNolainAllowedFailsWithUnknownMethod
public void testUnforcedPNolainAllowedFailsWithUnknownMethod() throws com.nimbusds.oauth2.sdk.ParseException- Throws:
com.nimbusds.oauth2.sdk.ParseException
-
testUnforcedNoPlainAllowedFailsWithDefaultMethod
public void testUnforcedNoPlainAllowedFailsWithDefaultMethod() throws com.nimbusds.oauth2.sdk.ParseException- Throws:
com.nimbusds.oauth2.sdk.ParseException
-
testUnforcedNoPlainAllowedFailsWithEmptyMethod
public void testUnforcedNoPlainAllowedFailsWithEmptyMethod() throws com.nimbusds.oauth2.sdk.ParseException- Throws:
com.nimbusds.oauth2.sdk.ParseException
-
testUnforcedNoPlainAllowedFailsWithPlainMethod
public void testUnforcedNoPlainAllowedFailsWithPlainMethod() throws com.nimbusds.oauth2.sdk.ParseException- Throws:
com.nimbusds.oauth2.sdk.ParseException
-
testUnforcedNoPlainAllowedSuccessWithS256Method
public void testUnforcedNoPlainAllowedSuccessWithS256Method() throws com.nimbusds.oauth2.sdk.ParseException- Throws:
com.nimbusds.oauth2.sdk.ParseException
-
testForcedNoPlainAllowedFailsWithUnknownMethod
public void testForcedNoPlainAllowedFailsWithUnknownMethod() throws com.nimbusds.oauth2.sdk.ParseException- Throws:
com.nimbusds.oauth2.sdk.ParseException
-
testForcedNoPlainAllowedFailsWithDefaultMethod
public void testForcedNoPlainAllowedFailsWithDefaultMethod() throws com.nimbusds.oauth2.sdk.ParseException- Throws:
com.nimbusds.oauth2.sdk.ParseException
-
testForcedNoPlainAllowedFailsWithEmptyMethod
public void testForcedNoPlainAllowedFailsWithEmptyMethod() throws com.nimbusds.oauth2.sdk.ParseException- Throws:
com.nimbusds.oauth2.sdk.ParseException
-
testForcedNoPlainAllowedFailsWithPlainMethod
public void testForcedNoPlainAllowedFailsWithPlainMethod() throws com.nimbusds.oauth2.sdk.ParseException- Throws:
com.nimbusds.oauth2.sdk.ParseException
-
testForcedNoPlainAllowedSuccessWithS256Method
public void testForcedNoPlainAllowedSuccessWithS256Method() throws com.nimbusds.oauth2.sdk.ParseException- Throws:
com.nimbusds.oauth2.sdk.ParseException
-
testUnforcedPlainAllowedFailsWithUnknownMethod
public void testUnforcedPlainAllowedFailsWithUnknownMethod() throws com.nimbusds.oauth2.sdk.ParseException- Throws:
com.nimbusds.oauth2.sdk.ParseException
-
testUnforcedPlainAllowedSuccessWithDefaultMethod
public void testUnforcedPlainAllowedSuccessWithDefaultMethod() throws com.nimbusds.oauth2.sdk.ParseException- Throws:
com.nimbusds.oauth2.sdk.ParseException
-
testUnforcedPlainAllowedSuccessWithEmptyMethod
public void testUnforcedPlainAllowedSuccessWithEmptyMethod() throws com.nimbusds.oauth2.sdk.ParseException- Throws:
com.nimbusds.oauth2.sdk.ParseException
-
testUnforcedPlainAllowedSuccesssWithPlainMethod
public void testUnforcedPlainAllowedSuccesssWithPlainMethod() throws com.nimbusds.oauth2.sdk.ParseException- Throws:
com.nimbusds.oauth2.sdk.ParseException
-
testUnforcedPlainAllowedSuccessWithS256Method
public void testUnforcedPlainAllowedSuccessWithS256Method() throws com.nimbusds.oauth2.sdk.ParseException- Throws:
com.nimbusds.oauth2.sdk.ParseException
-
testForcedPlainAllowedFailsWithUnknownMethod
public void testForcedPlainAllowedFailsWithUnknownMethod() throws com.nimbusds.oauth2.sdk.ParseException- Throws:
com.nimbusds.oauth2.sdk.ParseException
-
testForcedPlainAllowedSuccessWithDefaultMethod
public void testForcedPlainAllowedSuccessWithDefaultMethod() throws com.nimbusds.oauth2.sdk.ParseException- Throws:
com.nimbusds.oauth2.sdk.ParseException
-
testForcedPlainAllowedSuccessWithEmptyMethod
public void testForcedPlainAllowedSuccessWithEmptyMethod() throws com.nimbusds.oauth2.sdk.ParseException- Throws:
com.nimbusds.oauth2.sdk.ParseException
-
testForcedPlainAllowedSuccessWithPlainMethod
public void testForcedPlainAllowedSuccessWithPlainMethod() throws com.nimbusds.oauth2.sdk.ParseException- Throws:
com.nimbusds.oauth2.sdk.ParseException
-
testForceoPlainAllowedSuccessWithS256Method
public void testForceoPlainAllowedSuccessWithS256Method() throws com.nimbusds.oauth2.sdk.ParseException- Throws:
com.nimbusds.oauth2.sdk.ParseException
-
-