Class ValidateCodeChallengeTest

    • Field Detail

      • action

        private net.shibboleth.idp.plugin.oidc.op.profile.impl.ValidateCodeChallenge action
      • forcePkce

        private boolean forcePkce
      • allowPlain

        private boolean allowPlain
    • Constructor Detail

      • ValidateCodeChallengeTest

        public ValidateCodeChallengeTest()
    • Method Detail

      • 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
      • populateCodeChallenge

        protected com.nimbusds.openid.connect.sdk.AuthenticationRequest populateCodeChallenge​(String challenge,
                                                                                              String challengeMethod)
                                                                                       throws com.nimbusds.oauth2.sdk.ParseException
        Throws:
        com.nimbusds.oauth2.sdk.ParseException