Class EncryptJWTHandlerTest


  • public class EncryptJWTHandlerTest
    extends AbstractHandlerTest
    Tests for the EncryptJWTHandler message handler.

    Note, These tests encrypt a RequestObject.

    • Field Detail

      • encrypter

        private net.shibboleth.oidc.security.impl.EncryptJWTHandler encrypter
        The signer to test.
      • request

        private net.shibboleth.oidc.profile.core.OIDCAuthenticationRequest request
        The authn request.
    • Constructor Detail

      • EncryptJWTHandlerTest

        public EncryptJWTHandlerTest()
    • Method Detail

      • assertStandardClaimsExist

        private void assertStandardClaimsExist​(com.nimbusds.jwt.EncryptedJWT jwt)
      • testEncryptRSA_Success

        public void testEncryptRSA_Success()
                                    throws Exception
        Throws:
        Exception
      • testEncryptEC_Success

        public void testEncryptEC_Success()
                                   throws Exception
        Throws:
        Exception
      • testEncryptDirect_Success

        public void testEncryptDirect_Success()
                                       throws Exception
        Throws:
        Exception
      • testKeyWrap_Success

        public void testKeyWrap_Success()
                                 throws Exception
        Throws:
        Exception
      • testEncryptDirect_Fail_WrongAlgorithmForCredential

        public void testEncryptDirect_Fail_WrongAlgorithmForCredential()
                                                                throws Exception
        Throws:
        Exception
      • testFail_NoEncryptionContext

        public void testFail_NoEncryptionContext()
                                          throws Exception
        Throws:
        Exception
      • testFail_NoEncryptionParams

        public void testFail_NoEncryptionParams()
                                         throws Exception
        Throws:
        Exception
      • testFail_IncorrectParamState

        public void testFail_IncorrectParamState()
                                          throws Exception
        Throws:
        Exception
      • testEncryptWithUnsupportedAlgorithm

        public void testEncryptWithUnsupportedAlgorithm()
                                                 throws Exception
        Throws:
        Exception