Class RolesAllowedSignEncryptTest

  • All Implemented Interfaces:
    org.testng.IHookable, org.testng.ITestNGListener

    public class RolesAllowedSignEncryptTest
    extends org.jboss.arquillian.testng.Arquillian
    Test that decryption of an inner signed JWT token encrypted using RSA-OAEP algorithm succeeds without having to configure `mp.jwt.decrypt.key.algorithm=RSA-OAEP`.
    • Constructor Detail

      • RolesAllowedSignEncryptTest

        public RolesAllowedSignEncryptTest()
    • Method Detail

      • createDeployment

        @Deployment(testable=true)
        public static org.jboss.shrinkwrap.api.spec.WebArchive createDeployment()
                                                                         throws IOException
        Create a CDI aware base web application archive
        Returns:
        the base base web application archive
        Throws:
        IOException - - on resource failure
      • generateToken

        @BeforeClass(alwaysRun=true)
        public static void generateToken()
                                  throws Exception
        Throws:
        Exception
      • callEchoNoAuth

        @RunAsClient
        public void callEchoNoAuth()
      • callEchoBASIC

        @RunAsClient
        public void callEchoBASIC()
      • callEchoRsaOaep

        @RunAsClient
        public void callEchoRsaOaep()
      • callEchoWithoutCty

        @RunAsClient
        public void callEchoWithoutCty()
                                throws Exception
        Throws:
        Exception
      • callEchoSignToken

        @RunAsClient
        public void callEchoSignToken()
                               throws Exception
        Throws:
        Exception
      • callEchoSignEncryptToken

        @RunAsClient
        public void callEchoSignEncryptToken()
                                      throws Exception
        Throws:
        Exception
      • callEcho2

        @RunAsClient
        public void callEcho2()
      • checkIsUserInRole

        @RunAsClient
        public void checkIsUserInRole()
      • checkIsUserInRoleToken2

        @RunAsClient
        public void checkIsUserInRoleToken2()
                                     throws Exception
        Throws:
        Exception
      • echoNeedsToken2Role

        @RunAsClient
        public void echoNeedsToken2Role()
                                 throws Exception
        Throws:
        Exception
      • echoWithToken2

        @RunAsClient
        public void echoWithToken2()
                            throws Exception
        Throws:
        Exception
      • getPrincipalClass

        @RunAsClient
        public void getPrincipalClass()
      • testNeedsGroup1Mapping

        @RunAsClient
        public void testNeedsGroup1Mapping()
        This test requires that the server provide a mapping from the group1 grant in the token to a Group1MappedRole application declared role.
      • getInjectedPrincipal

        @RunAsClient
        public void getInjectedPrincipal()
      • callHeartbeat

        @RunAsClient
        public void callHeartbeat()