EUCA-6686 Update bouncy castle to 1.49

Fix minor API change for updated library

Fixes EUCA-6686