public EncryptionService(){
  if (Security.getProvider(BouncyCastleProvider.PROVIDER_NAME) == null) {
    Security.addProvider(new BouncyCastleProvider());
  }
}

public EncryptionService ( ) { if ( Security . getProvider ( BouncyCastleProvider . PROVIDER_NAME ) == null ) { Security . addProvider ( new BouncyCastleProvider ( ) ) ; } }
creates a new instance of encryptionservice . adds bouncycastle as a securityprovider .
