Class RolesAllowedSignEncryptTest
java.lang.Object
org.jboss.arquillian.testng.Arquillian
org.eclipse.microprofile.jwt.tck.container.jaxrs.jwe.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`.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jboss.arquillian.testng.Arquillian
org.jboss.arquillian.testng.Arquillian.UpdateResultListener -
Field Summary
Fields inherited from class org.jboss.arquillian.testng.Arquillian
ARQUILLIAN_DATA_PROVIDER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidstatic org.jboss.shrinkwrap.api.spec.WebArchiveCreate a CDI aware base web application archivevoidvoidstatic voidvoidvoidvoidThis test requires that the server provide a mapping from the group1 grant in the token to a Group1MappedRole application declared role.Methods inherited from class org.jboss.arquillian.testng.Arquillian
arquillianAfterClass, arquillianAfterSuite, arquillianAfterTest, arquillianArgumentProvider, arquillianBeforeClass, arquillianBeforeSuite, arquillianBeforeTest, run
-
Constructor Details
-
RolesAllowedSignEncryptTest
public RolesAllowedSignEncryptTest()
-
-
Method Details
-
createDeployment
@Deployment(testable=true) public static org.jboss.shrinkwrap.api.spec.WebArchive createDeployment() throws IOExceptionCreate a CDI aware base web application archive- Returns:
- the base base web application archive
- Throws:
IOException- - on resource failure
-
generateToken
- Throws:
Exception
-
callEchoNoAuth
@RunAsClient public void callEchoNoAuth() -
callEchoBASIC
@RunAsClient public void callEchoBASIC() -
callEchoRsaOaep
@RunAsClient public void callEchoRsaOaep() -
callEchoWithoutCty
- Throws:
Exception
-
callEchoSignToken
- Throws:
Exception
-
callEchoSignEncryptToken
- Throws:
Exception
-
callEcho2
@RunAsClient public void callEcho2() -
checkIsUserInRole
@RunAsClient public void checkIsUserInRole() -
checkIsUserInRoleToken2
- Throws:
Exception
-
echoNeedsToken2Role
- Throws:
Exception
-
echoWithToken2
- 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()
-