Class BasicSignatureSigningParametersResolverTest


  • public class BasicSignatureSigningParametersResolverTest
    extends Object
    Tests for the BasicSignatureSigningParametersResolver.
    • Field Detail

      • resolver

        private net.shibboleth.oidc.security.jose.impl.BasicSignatureSigningParametersResolver resolver
        The resolver to test.
    • Constructor Detail

      • BasicSignatureSigningParametersResolverTest

        public BasicSignatureSigningParametersResolverTest()
    • Method Detail

      • buildCriteria

        private CriteriaSet buildCriteria​(List<String> supportedSigningAlgos,
                                          List<Credential> credentials)
                                   throws com.nimbusds.oauth2.sdk.ParseException
        Throws:
        com.nimbusds.oauth2.sdk.ParseException
      • testResolveSuccess_HS256

        public void testResolveSuccess_HS256()
                                      throws Exception
        Throws:
        Exception
      • testResolveFail_HS512_KeySizeToSmall

        public void testResolveFail_HS512_KeySizeToSmall()
                                                  throws Exception
        Throws:
        Exception
      • testResolveSuccess_PS256

        public void testResolveSuccess_PS256()
                                      throws Exception
        Throws:
        Exception
      • testResolveSuccess_RS256

        public void testResolveSuccess_RS256()
                                      throws Exception
        Throws:
        Exception
      • testResolveSuccess_ES256

        public void testResolveSuccess_ES256()
                                      throws Exception
        Throws:
        Exception
      • testResolveSuccess_Two_ES512_ChooseCorrectCurve

        public void testResolveSuccess_Two_ES512_ChooseCorrectCurve()
                                                             throws Exception
        Choose the correct ES signing credential when there are two to choose from and the first has the wrong curve.
        Throws:
        Exception - on error.
      • testResolveFail_NoSupportedAlgs

        public void testResolveFail_NoSupportedAlgs()
                                             throws Exception
        Throws:
        Exception