private void initializeEncryptionProvider ( ) { if ( key != null ) { try { encryptionProvider = EncryptionProviderFactory . getProvider ( key ) ; } catch ( UnsupportedKeySizeException e ) { throw new RuntimeCryptoException ( e . getMessage ( ) , e ) ; } catch ( UnsupportedAlgorithmException e ) { throw new RuntimeCryptoException ( e . getMessage ( ) , e ) ; } } }
Method which will create a new Encryption provider using the already specified key .