Class EncryptProcessedTokenTest


  • public class EncryptProcessedTokenTest
    extends Object
    EncryptProcessedToken unit test.
    • Constructor Detail

      • EncryptProcessedTokenTest

        public EncryptProcessedTokenTest()
    • Method Detail

      • testSuccess

        public void testSuccess()
        Test success basic case. Encrypts ProcessedToken.
      • testSuccessUserInfo

        public void testSuccessUserInfo()
        Test success case of encrypting unsigned userinfo.
      • testNoInput

        public void testNoInput()
        Test case of nothing to encrypt.
      • testFailNoEncryptionContext

        public void testFailNoEncryptionContext()
        Test case of missing encryption context.
      • testSuccessNoEnc

        public void testSuccessNoEnc()
                              throws ParseException
        Test case of missing encryption parameters. Should do nothing.
        Throws:
        ParseException
      • testInitializationFail

        public void testInitializationFail()
        Strategy cannot be set after initialization
      • testInitializationFail2

        public void testInitializationFail2()
        Strategy cannot be null