Class JwtAuthenticatorTest
java.lang.Object
media.pepperpot.tca.authenticator.JwtAuthenticatorTest
Test cases for the JwtAuthenticator.
These test cases are sourced from the JOSE RFCs.
- Author:
- minfrin
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Test an encrypted JWT as per https://tools.ietf.org/html/rfc7519#appendix-A.1void
Test a nested JWT as per https://tools.ietf.org/html/rfc7519#appendix-A.2void
Test a plain JWT as per https://tools.ietf.org/html/rfc7519#section-6.1void
Test a plain JWT with a given subject.void
Test a signed JWT as per https://tools.ietf.org/html/rfc7519#section-3.1void
Test a signed JWT with a given subject.
-
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.JOSEExceptionTest 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, ParseExceptionTest a signed JWT with a given subject.- Throws:
com.nimbusds.jose.JOSEException
- Test fails if this exception is thrownParseException
- Test fails if this exception is thrownIOException
- Test fails if this exception is thrown
-