Class ClientInformationSignatureSigningParametersResolverTest


  • public class ClientInformationSignatureSigningParametersResolverTest
    extends Object
    • Field Detail

      • CLIENT_INFORMATION_SECRET

        private static final ClassPathResource CLIENT_INFORMATION_SECRET
      • CLIENT_INFORMATION_SECRET_512

        private static final ClassPathResource CLIENT_INFORMATION_SECRET_512
      • resolver

        private net.shibboleth.oidc.security.jose.impl.ClientInformationSignatureSigningParametersResolver resolver
    • Constructor Detail

      • ClientInformationSignatureSigningParametersResolverTest

        public ClientInformationSignatureSigningParametersResolverTest()
    • Method Detail

      • readJsonFromFile

        protected String readJsonFromFile​(@Nonnull
                                          Resource location)
        Read a file into a string.
        Parameters:
        location - the location of the file to read
        Returns:
        the file as a string
      • buildCriteria

        private CriteriaSet buildCriteria​(List<String> supportedSigningAlgos,
                                          ClassPathResource resource)
                                   throws com.nimbusds.oauth2.sdk.ParseException
        Throws:
        com.nimbusds.oauth2.sdk.ParseException
      • testResolveSuccess_ClientSecretCredential256

        public void testResolveSuccess_ClientSecretCredential256()
                                                          throws Exception
        Throws:
        Exception
      • testResolveSuccess_ClientSecretCredential256_tooStrongAlg

        public void testResolveSuccess_ClientSecretCredential256_tooStrongAlg()
                                                                       throws Exception
        Throws:
        Exception
      • testResolveSuccess_ClientSecretCredential256_algNotEnabled

        public void testResolveSuccess_ClientSecretCredential256_algNotEnabled()
                                                                        throws Exception
        Throws:
        Exception
      • testResolveSuccess_ClientSecretCredential512

        public void testResolveSuccess_ClientSecretCredential512()
                                                          throws Exception
        Throws:
        Exception