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`.
-
-
Constructor Summary
Constructors Constructor Description RolesAllowedSignEncryptTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
callEcho2()
void
callEchoBASIC()
void
callEchoNoAuth()
void
callEchoRsaOaep()
void
callEchoSignEncryptToken()
void
callEchoSignToken()
void
callEchoWithoutCty()
void
callHeartbeat()
void
checkIsUserInRole()
void
checkIsUserInRoleToken2()
static org.jboss.shrinkwrap.api.spec.WebArchive
createDeployment()
Create a CDI aware base web application archivevoid
echoNeedsToken2Role()
void
echoWithToken2()
static void
generateToken()
void
getInjectedPrincipal()
void
getPrincipalClass()
void
testNeedsGroup1Mapping()
This test requires that the server provide a mapping from the group1 grant in the token to a Group1MappedRole application declared role.
-
-
-
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()
-
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
-
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()
-
-