Class JWETokenDecrypterTest


  • public class JWETokenDecrypterTest
    extends Object
    Tests for the JWETokenDecrypter.
    • Field Detail

      • decrypter

        private net.shibboleth.oidc.security.impl.JWETokenDecrypter decrypter
    • Constructor Detail

      • JWETokenDecrypterTest

        public JWETokenDecrypterTest()
    • Method Detail

      • createClaims

        private com.nimbusds.jwt.JWTClaimsSet createClaims()
      • createdSignedJWT

        private com.nimbusds.jwt.SignedJWT createdSignedJWT()
                                                     throws com.nimbusds.jose.KeyLengthException,
                                                            com.nimbusds.jose.JOSEException
        Throws:
        com.nimbusds.jose.KeyLengthException
        com.nimbusds.jose.JOSEException
      • setup

        @BeforeMethod
        public void setup()
      • testDecryptionByKeyWrapping

        void testDecryptionByKeyWrapping()
                                  throws Exception
        Throws:
        Exception
      • testDecryptionByKeyWrapping_Using_EvaluableCriteriaFiltering

        void testDecryptionByKeyWrapping_Using_EvaluableCriteriaFiltering()
                                                                   throws Exception
        Throws:
        Exception
      • testDecryptionByKeyWrapping_WrongCredentialType

        void testDecryptionByKeyWrapping_WrongCredentialType()
                                                      throws Exception
        Throws:
        Exception
      • testDecryptionByDirectEncryption

        void testDecryptionByDirectEncryption()
                                       throws Exception
        Throws:
        Exception
      • testDecryptionByDirectEncryption_SecretKeyIsNull

        void testDecryptionByDirectEncryption_SecretKeyIsNull()
                                                       throws Exception
        Throws:
        Exception
      • testDecryptionByDirectEncryption_Using_EvaluableCriteriaFiltering

        void testDecryptionByDirectEncryption_Using_EvaluableCriteriaFiltering()
                                                                        throws Exception
        Throws:
        Exception
      • testDecryptionByDirectEncryption_AlgorithmExcluded

        void testDecryptionByDirectEncryption_AlgorithmExcluded()
                                                         throws Exception
        Throws:
        Exception
      • testDecryptionByDirectEncryption_NoSuitableKey

        void testDecryptionByDirectEncryption_NoSuitableKey()
                                                     throws Exception
        Throws:
        Exception
      • testDecryptionByKeyWrapping_WrongAlgorithm

        void testDecryptionByKeyWrapping_WrongAlgorithm()
                                                 throws com.nimbusds.jose.KeyLengthException,
                                                        com.nimbusds.jose.JOSEException,
                                                        ParseException
        Throws:
        com.nimbusds.jose.KeyLengthException
        com.nimbusds.jose.JOSEException
        ParseException
      • testDecryptionByKeyEncryption

        void testDecryptionByKeyEncryption()
                                    throws Exception
        Throws:
        Exception
      • testDecryptionByKeyEncryption_Using_EvaluableCriteriaFiltering

        void testDecryptionByKeyEncryption_Using_EvaluableCriteriaFiltering()
                                                                     throws Exception
        Throws:
        Exception
      • testDecryptionByKeyEncryption_TwoRSAKeysInCredentialSet_NoKeyIdInJOSEHeader

        void testDecryptionByKeyEncryption_TwoRSAKeysInCredentialSet_NoKeyIdInJOSEHeader()
                                                                                  throws Exception
        Throws:
        Exception
      • testDecryptionByKeyEncryption_TwoRSAKeysInCredentialSet_FilteredOnKeyId

        void testDecryptionByKeyEncryption_TwoRSAKeysInCredentialSet_FilteredOnKeyId()
                                                                              throws Exception
        Throws:
        Exception
      • testDecryptionByKeyAgreement

        void testDecryptionByKeyAgreement()
                                   throws Exception
        Throws:
        Exception
      • testDecryptionByKeyAgreement_Using_EvaluableCriteriaFiltering

        void testDecryptionByKeyAgreement_Using_EvaluableCriteriaFiltering()
                                                                    throws Exception
        Throws:
        Exception