Class JwtAuthenticatorTest

java.lang.Object
media.pepperpot.tca.authenticator.JwtAuthenticatorTest

public class JwtAuthenticatorTest extends Object
Test cases for the JwtAuthenticator. These test cases are sourced from the JOSE RFCs.
Author:
minfrin
  • Constructor Details

    • JwtAuthenticatorTest

      public JwtAuthenticatorTest()
      Default constructor.
  • Method Details

    • getPlainISSTest

      public void getPlainISSTest()
      Test a plain JWT as per https://tools.ietf.org/html/rfc7519#section-6.1
    • getSignedISSTest

      public void getSignedISSTest()
      Test a signed JWT as per https://tools.ietf.org/html/rfc7519#section-3.1
    • getEncryptedISSTest

      public void getEncryptedISSTest()
      Test an encrypted JWT as per https://tools.ietf.org/html/rfc7519#appendix-A.1
    • getNestedISSTest

      public void getNestedISSTest()
      Test a nested JWT as per https://tools.ietf.org/html/rfc7519#appendix-A.2
    • getPlainSubjectTest

      public void getPlainSubjectTest() throws com.nimbusds.jose.JOSEException
      Test a plain JWT with a given subject.
      Throws:
      com.nimbusds.jose.JOSEException - Test fails if this exception is thrown
    • getSignedSubjectTest

      public void getSignedSubjectTest() throws com.nimbusds.jose.JOSEException, IOException, ParseException
      Test a signed JWT with a given subject.
      Throws:
      com.nimbusds.jose.JOSEException - Test fails if this exception is thrown
      ParseException - Test fails if this exception is thrown
      IOException - Test fails if this exception is thrown