Class RequiredClaimsTest
- java.lang.Object
-
- org.jboss.arquillian.testng.Arquillian
-
- org.eclipse.microprofile.jwt.tck.container.jaxrs.RequiredClaimsTest
-
- All Implemented Interfaces:
org.testng.IHookable
,org.testng.ITestNGListener
public class RequiredClaimsTest extends org.jboss.arquillian.testng.Arquillian
Test to ensure that a MP-JWT containing only the minimum set of claims required by the specification can deploy and be used safely without a validation error
-
-
Constructor Summary
Constructors Constructor Description RequiredClaimsTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.jboss.shrinkwrap.api.spec.WebArchive
createDeployment()
Create a CDI aware base web application archivestatic void
generateToken()
void
verifyAudience()
void
verifyExpiration()
void
verifyIssuedAt()
void
verifyIssuerClaim()
void
verifyJTI()
void
verifyOptionalAudience()
void
verifySubClaim()
void
verifyTokenWithIatOlderThanExp()
void
verifyTokenWithoutExpiration()
void
verifyTokenWithoutName()
void
verifyUPN()
-
-
-
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
-
verifyOptionalAudience
@RunAsClient public void verifyOptionalAudience() throws Exception
- Throws:
Exception
-
verifyTokenWithoutExpiration
@RunAsClient public void verifyTokenWithoutExpiration() throws Exception
- Throws:
Exception
-
verifyTokenWithoutName
@RunAsClient public void verifyTokenWithoutName() throws Exception
- Throws:
Exception
-
-