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 Details

    • RequiredClaimsTest

      public RequiredClaimsTest()
  • Method Details

    • 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
    • verifyIssuerClaim

      @RunAsClient public void verifyIssuerClaim() throws Exception
      Throws:
      Exception
    • verifySubClaim

      @RunAsClient public void verifySubClaim() throws Exception
      Throws:
      Exception
    • verifyJTI

      @RunAsClient public void verifyJTI() throws Exception
      Throws:
      Exception
    • verifyUPN

      @RunAsClient public void verifyUPN() throws Exception
      Throws:
      Exception
    • verifyAudience

      @RunAsClient public void verifyAudience() throws Exception
      Throws:
      Exception
    • verifyOptionalAudience

      @RunAsClient public void verifyOptionalAudience() throws Exception
      Throws:
      Exception
    • verifyIssuedAt

      @RunAsClient public void verifyIssuedAt() throws Exception
      Throws:
      Exception
    • verifyExpiration

      @RunAsClient public void verifyExpiration() throws Exception
      Throws:
      Exception
    • verifyTokenWithoutExpiration

      @RunAsClient public void verifyTokenWithoutExpiration() throws Exception
      Throws:
      Exception
    • verifyTokenWithoutName

      @RunAsClient public void verifyTokenWithoutName() throws Exception
      Throws:
      Exception
    • verifyTokenWithIatOlderThanExp

      @RunAsClient public void verifyTokenWithIatOlderThanExp() throws Exception
      Throws:
      Exception