Package com.eviware.soapui.config

Examples of com.eviware.soapui.config.SoapuiSettingsDocumentConfig.xmlText()


      if( password != null && password.length() > 0 )
      {
        try
        {
          byte[] data = settingsDocument.xmlText().getBytes();
          byte[] encryptedData = OpenSSL.encrypt( "des3", password.toCharArray(), data );
          settingsDocument.setSoapuiSettings( null );
          settingsDocument.getSoapuiSettings().setEncryptedContent( encryptedData );
        }
        catch( UnsupportedEncodingException e )
View Full Code Here


            SoapuiSettingsDocumentConfig settingsDocument = (SoapuiSettingsDocumentConfig) this.settingsDocument.copy();
            String password = settings.getString(SecuritySettings.SHADOW_PASSWORD, null);

            if (password != null && password.length() > 0) {
                try {
                    byte[] data = settingsDocument.xmlText().getBytes();
                    String encryptionAlgorithm = "des3";
                    byte[] encryptedData = OpenSSL.encrypt(encryptionAlgorithm, password.toCharArray(), data);
                    settingsDocument.setSoapuiSettings(null);
                    settingsDocument.getSoapuiSettings().setEncryptedContent(encryptedData);
                    settingsDocument.getSoapuiSettings().setEncryptedContentAlgorithm(encryptionAlgorithm);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.