mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
Merge branch '2452-change-ct-option-panel-fix1' into 2452-change-ct-option-panel
This commit is contained in:
commit
4a12500a80
@ -22,8 +22,6 @@ CTMalwareScannerOptionsPanel.licenseInfoUserLabel.text=
|
|||||||
EULADialog.cancelButton.text=Cancel
|
EULADialog.cancelButton.text=Cancel
|
||||||
EULADialog.acceptButton.text=Accept
|
EULADialog.acceptButton.text=Accept
|
||||||
EULADialog.title=Cyber Triage End User License Agreement
|
EULADialog.title=Cyber Triage End User License Agreement
|
||||||
CTMalwareScannerOptionsPanel.fileUploadCheckbox.text=Upload file if hash lookup produces no results
|
|
||||||
CTMalwareScannerOptionsPanel.fileUploadPanel.border.title=File Upload
|
|
||||||
CTMalwareScannerOptionsPanel.licenseInfoMessageLabel.text=
|
CTMalwareScannerOptionsPanel.licenseInfoMessageLabel.text=
|
||||||
CTMalwareScannerOptionsPanel.disclaimer.text=<html>The Cyber Triage Malware Scanner module uses 40+ malware scanning engines to identify if Windows executables are malicious. It requires a paid subscription to use.</html>
|
CTMalwareScannerOptionsPanel.disclaimer.text=<html>The Cyber Triage Malware Scanner module uses 40+ malware scanning engines to identify if Windows executables are malicious. It requires a paid subscription to use.</html>
|
||||||
CTMalwareScannerOptionsPanel.purchaseFromLabel.text=For licensing information, visit
|
CTMalwareScannerOptionsPanel.purchaseFromLabel.text=For licensing information, visit
|
||||||
|
@ -60,8 +60,6 @@ CTOPtionsPanel_loadMalwareScansInfo_loading=Loading...
|
|||||||
EULADialog.cancelButton.text=Cancel
|
EULADialog.cancelButton.text=Cancel
|
||||||
EULADialog.acceptButton.text=Accept
|
EULADialog.acceptButton.text=Accept
|
||||||
EULADialog.title=Cyber Triage End User License Agreement
|
EULADialog.title=Cyber Triage End User License Agreement
|
||||||
CTMalwareScannerOptionsPanel.fileUploadCheckbox.text=Upload file if hash lookup produces no results
|
|
||||||
CTMalwareScannerOptionsPanel.fileUploadPanel.border.title=File Upload
|
|
||||||
CTMalwareScannerOptionsPanel.licenseInfoMessageLabel.text=
|
CTMalwareScannerOptionsPanel.licenseInfoMessageLabel.text=
|
||||||
CTMalwareScannerOptionsPanel.disclaimer.text=<html>The Cyber Triage Malware Scanner module uses 40+ malware scanning engines to identify if Windows executables are malicious. It requires a paid subscription to use.</html>
|
CTMalwareScannerOptionsPanel.disclaimer.text=<html>The Cyber Triage Malware Scanner module uses 40+ malware scanning engines to identify if Windows executables are malicious. It requires a paid subscription to use.</html>
|
||||||
CTMalwareScannerOptionsPanel.purchaseFromLabel.text=For licensing information, visit
|
CTMalwareScannerOptionsPanel.purchaseFromLabel.text=For licensing information, visit
|
||||||
|
@ -91,39 +91,6 @@ public class CTLicensePersistence {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public synchronized boolean saveMalwareSettings(MalwareIngestSettings malwareIngestSettings) {
|
|
||||||
if (malwareIngestSettings != null) {
|
|
||||||
File settingsFile = getMalwareIngestFile();
|
|
||||||
try {
|
|
||||||
settingsFile.getParentFile().mkdirs();
|
|
||||||
objectMapper.writeValue(settingsFile, malwareIngestSettings);
|
|
||||||
return true;
|
|
||||||
} catch (IOException ex) {
|
|
||||||
logger.log(Level.WARNING, "There was an error writing malware ingest settings to file: " + settingsFile.getAbsolutePath(), ex);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
public synchronized MalwareIngestSettings loadMalwareIngestSettings() {
|
|
||||||
MalwareIngestSettings settings = null;
|
|
||||||
File settingsFile = getMalwareIngestFile();
|
|
||||||
if (settingsFile.exists() && settingsFile.isFile()) {
|
|
||||||
try {
|
|
||||||
settings = objectMapper.readValue(settingsFile, MalwareIngestSettings.class);
|
|
||||||
} catch (IOException ex) {
|
|
||||||
logger.log(Level.WARNING, "There was an error reading malware ingest settings from file: " + settingsFile.getAbsolutePath(), ex);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (settings == null) {
|
|
||||||
settings = new MalwareIngestSettings();
|
|
||||||
}
|
|
||||||
|
|
||||||
return settings;
|
|
||||||
}
|
|
||||||
|
|
||||||
private File getCTLicenseFile() {
|
private File getCTLicenseFile() {
|
||||||
return Paths.get(PlatformUtil.getModuleConfigDirectory(), CT_SETTINGS_DIR, CT_LICENSE_FILENAME).toFile();
|
return Paths.get(PlatformUtil.getModuleConfigDirectory(), CT_SETTINGS_DIR, CT_LICENSE_FILENAME).toFile();
|
||||||
}
|
}
|
||||||
|
@ -16,12 +16,12 @@
|
|||||||
|
|
||||||
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout"/>
|
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout"/>
|
||||||
<SubComponents>
|
<SubComponents>
|
||||||
<Container class="javax.swing.JPanel" name="fileUploadPanel">
|
<Container class="javax.swing.JPanel" name="licenseInfoPanel">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
|
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
|
||||||
<Border info="org.netbeans.modules.form.compat2.border.TitledBorderInfo">
|
<Border info="org.netbeans.modules.form.compat2.border.TitledBorderInfo">
|
||||||
<TitledBorder title="File Upload">
|
<TitledBorder title="<CTMalwareScannerOptionsPanel.licenseInfoPanel.border.title>">
|
||||||
<ResourceString PropertyName="titleX" bundle="com/basistech/df/cybertriage/autopsy/ctoptions/ctcloud/Bundle.properties" key="CTMalwareScannerOptionsPanel.fileUploadPanel.border.title" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
<ResourceString PropertyName="titleX" bundle="com/basistech/df/cybertriage/autopsy/ctoptions/ctcloud/Bundle.properties" key="CTMalwareScannerOptionsPanel.licenseInfoPanel.border.title" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
</TitledBorder>
|
</TitledBorder>
|
||||||
</Border>
|
</Border>
|
||||||
</Property>
|
</Property>
|
||||||
@ -90,7 +90,7 @@
|
|||||||
</Constraint>
|
</Constraint>
|
||||||
</Constraints>
|
</Constraints>
|
||||||
</Component>
|
</Component>
|
||||||
<Container class="javax.swing.JPanel" name="licenseInfoPanel">
|
<Container class="javax.swing.JPanel" name="licenseInfoPanel1">
|
||||||
<AuxValues>
|
<AuxValues>
|
||||||
<AuxValue name="JavaCodeGenerator_VariableLocal" type="java.lang.Boolean" value="true"/>
|
<AuxValue name="JavaCodeGenerator_VariableLocal" type="java.lang.Boolean" value="true"/>
|
||||||
<AuxValue name="JavaCodeGenerator_VariableModifier" type="java.lang.Integer" value="0"/>
|
<AuxValue name="JavaCodeGenerator_VariableModifier" type="java.lang.Integer" value="0"/>
|
||||||
@ -103,7 +103,7 @@
|
|||||||
|
|
||||||
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout"/>
|
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout"/>
|
||||||
<SubComponents>
|
<SubComponents>
|
||||||
<Component class="javax.swing.JLabel" name="licenseInfoMessageLabel">
|
<Component class="javax.swing.JLabel" name="licenseInfoMessageLabel1">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||||
<ResourceString bundle="com/basistech/df/cybertriage/autopsy/ctoptions/ctcloud/Bundle.properties" key="CTMalwareScannerOptionsPanel.licenseInfoMessageLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
<ResourceString bundle="com/basistech/df/cybertriage/autopsy/ctoptions/ctcloud/Bundle.properties" key="CTMalwareScannerOptionsPanel.licenseInfoMessageLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
@ -115,7 +115,7 @@
|
|||||||
</Constraint>
|
</Constraint>
|
||||||
</Constraints>
|
</Constraints>
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JLabel" name="licenseInfoExpiresLabel">
|
<Component class="javax.swing.JLabel" name="licenseInfoExpiresLabel1">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||||
<ResourceString bundle="com/basistech/df/cybertriage/autopsy/ctoptions/ctcloud/Bundle.properties" key="CTMalwareScannerOptionsPanel.licenseInfoExpiresLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
<ResourceString bundle="com/basistech/df/cybertriage/autopsy/ctoptions/ctcloud/Bundle.properties" key="CTMalwareScannerOptionsPanel.licenseInfoExpiresLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
@ -127,7 +127,7 @@
|
|||||||
</Constraint>
|
</Constraint>
|
||||||
</Constraints>
|
</Constraints>
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JLabel" name="licenseInfoIdLabel">
|
<Component class="javax.swing.JLabel" name="licenseInfoIdLabel1">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||||
<ResourceString bundle="com/basistech/df/cybertriage/autopsy/ctoptions/ctcloud/Bundle.properties" key="CTMalwareScannerOptionsPanel.licenseInfoIdLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
<ResourceString bundle="com/basistech/df/cybertriage/autopsy/ctoptions/ctcloud/Bundle.properties" key="CTMalwareScannerOptionsPanel.licenseInfoIdLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
@ -139,7 +139,7 @@
|
|||||||
</Constraint>
|
</Constraint>
|
||||||
</Constraints>
|
</Constraints>
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JLabel" name="licenseInfoUserLabel">
|
<Component class="javax.swing.JLabel" name="licenseInfoUserLabel1">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||||
<ResourceString bundle="com/basistech/df/cybertriage/autopsy/ctoptions/ctcloud/Bundle.properties" key="CTMalwareScannerOptionsPanel.licenseInfoUserLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
<ResourceString bundle="com/basistech/df/cybertriage/autopsy/ctoptions/ctcloud/Bundle.properties" key="CTMalwareScannerOptionsPanel.licenseInfoUserLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
@ -151,7 +151,7 @@
|
|||||||
</Constraint>
|
</Constraint>
|
||||||
</Constraints>
|
</Constraints>
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JButton" name="licenseInfoAddButton">
|
<Component class="javax.swing.JButton" name="licenseInfoAddButton1">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||||
<ResourceString bundle="com/basistech/df/cybertriage/autopsy/ctoptions/ctcloud/Bundle.properties" key="CTMalwareScannerOptionsPanel.licenseInfoAddButton.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
<ResourceString bundle="com/basistech/df/cybertriage/autopsy/ctoptions/ctcloud/Bundle.properties" key="CTMalwareScannerOptionsPanel.licenseInfoAddButton.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
|
@ -88,8 +88,6 @@ public class CTMalwareScannerOptionsPanel extends CTOptionsSubPanel {
|
|||||||
public CTMalwareScannerOptionsPanel() {
|
public CTMalwareScannerOptionsPanel() {
|
||||||
initComponents();
|
initComponents();
|
||||||
|
|
||||||
this.fileUploadPanel.setVisible(false);
|
|
||||||
|
|
||||||
this.addComponentListener(new ComponentAdapter() {
|
this.addComponentListener(new ComponentAdapter() {
|
||||||
@Override
|
@Override
|
||||||
public void componentHidden(ComponentEvent e) {
|
public void componentHidden(ComponentEvent e) {
|
||||||
@ -121,7 +119,6 @@ public class CTMalwareScannerOptionsPanel extends CTOptionsSubPanel {
|
|||||||
@Override
|
@Override
|
||||||
public synchronized void saveSettings() {
|
public synchronized void saveSettings() {
|
||||||
ctPersistence.saveLicenseResponse(getLicenseInfo());
|
ctPersistence.saveLicenseResponse(getLicenseInfo());
|
||||||
ctPersistence.saveMalwareSettings(getIngestSettings());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -138,9 +135,6 @@ public class CTMalwareScannerOptionsPanel extends CTOptionsSubPanel {
|
|||||||
if (licenseInfo != null) {
|
if (licenseInfo != null) {
|
||||||
loadMalwareScansInfo(licenseInfo);
|
loadMalwareScansInfo(licenseInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
MalwareIngestSettings ingestSettings = ctPersistence.loadMalwareIngestSettings();
|
|
||||||
setIngestSettings(ingestSettings);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static String getHtmlLink(String url) {
|
private static String getHtmlLink(String url) {
|
||||||
@ -161,19 +155,7 @@ public class CTMalwareScannerOptionsPanel extends CTOptionsSubPanel {
|
|||||||
|
|
||||||
private synchronized LicenseResponse getLicenseInfo() {
|
private synchronized LicenseResponse getLicenseInfo() {
|
||||||
return this.licenseInfo == null ? null : this.licenseInfo.getLicenseResponse();
|
return this.licenseInfo == null ? null : this.licenseInfo.getLicenseResponse();
|
||||||
}
|
}
|
||||||
|
|
||||||
private MalwareIngestSettings getIngestSettings() {
|
|
||||||
return new MalwareIngestSettings()
|
|
||||||
.setUploadFiles(this.fileUploadCheckbox.isSelected());
|
|
||||||
}
|
|
||||||
|
|
||||||
private void setIngestSettings(MalwareIngestSettings ingestSettings) {
|
|
||||||
if (ingestSettings == null) {
|
|
||||||
ingestSettings = new MalwareIngestSettings();
|
|
||||||
}
|
|
||||||
this.fileUploadCheckbox.setSelected(ingestSettings.isUploadFiles());
|
|
||||||
}
|
|
||||||
|
|
||||||
private synchronized void setLicenseDisplay(LicenseInfo licenseInfo, String licenseMessage) {
|
private synchronized void setLicenseDisplay(LicenseInfo licenseInfo, String licenseMessage) {
|
||||||
this.licenseInfo = licenseInfo;
|
this.licenseInfo = licenseInfo;
|
||||||
@ -243,8 +225,6 @@ public class CTMalwareScannerOptionsPanel extends CTOptionsSubPanel {
|
|||||||
private void initComponents() {
|
private void initComponents() {
|
||||||
java.awt.GridBagConstraints gridBagConstraints;
|
java.awt.GridBagConstraints gridBagConstraints;
|
||||||
|
|
||||||
fileUploadPanel = new javax.swing.JPanel();
|
|
||||||
fileUploadCheckbox = new javax.swing.JCheckBox();
|
|
||||||
malwareScansPanel = new javax.swing.JPanel();
|
malwareScansPanel = new javax.swing.JPanel();
|
||||||
javax.swing.JLabel disclaimer = new javax.swing.JLabel();
|
javax.swing.JLabel disclaimer = new javax.swing.JLabel();
|
||||||
javax.swing.JPanel licenseInfoPanel = new javax.swing.JPanel();
|
javax.swing.JPanel licenseInfoPanel = new javax.swing.JPanel();
|
||||||
@ -266,35 +246,6 @@ public class CTMalwareScannerOptionsPanel extends CTOptionsSubPanel {
|
|||||||
|
|
||||||
setLayout(new java.awt.GridBagLayout());
|
setLayout(new java.awt.GridBagLayout());
|
||||||
|
|
||||||
fileUploadPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(org.openide.util.NbBundle.getMessage(CTMalwareScannerOptionsPanel.class, "CTMalwareScannerOptionsPanel.fileUploadPanel.border.title"))); // NOI18N
|
|
||||||
fileUploadPanel.setLayout(new java.awt.GridBagLayout());
|
|
||||||
|
|
||||||
fileUploadCheckbox.setSelected(true);
|
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(fileUploadCheckbox, org.openide.util.NbBundle.getMessage(CTMalwareScannerOptionsPanel.class, "CTMalwareScannerOptionsPanel.fileUploadCheckbox.text")); // NOI18N
|
|
||||||
fileUploadCheckbox.setMaximumSize(new java.awt.Dimension(32767, 20));
|
|
||||||
fileUploadCheckbox.addActionListener(new java.awt.event.ActionListener() {
|
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
||||||
fileUploadCheckboxActionPerformed(evt);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
gridBagConstraints = new java.awt.GridBagConstraints();
|
|
||||||
gridBagConstraints.gridx = 0;
|
|
||||||
gridBagConstraints.gridy = 0;
|
|
||||||
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
|
|
||||||
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
|
|
||||||
gridBagConstraints.weightx = 1.0;
|
|
||||||
gridBagConstraints.weighty = 1.0;
|
|
||||||
gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
|
|
||||||
fileUploadPanel.add(fileUploadCheckbox, gridBagConstraints);
|
|
||||||
|
|
||||||
gridBagConstraints = new java.awt.GridBagConstraints();
|
|
||||||
gridBagConstraints.gridx = 0;
|
|
||||||
gridBagConstraints.gridy = 0;
|
|
||||||
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
|
|
||||||
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
|
|
||||||
gridBagConstraints.weightx = 1.0;
|
|
||||||
add(fileUploadPanel, gridBagConstraints);
|
|
||||||
|
|
||||||
malwareScansPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(org.openide.util.NbBundle.getMessage(CTMalwareScannerOptionsPanel.class, "CTMalwareScannerOptionsPanel.malwareScansPanel.border.title"))); // NOI18N
|
malwareScansPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(org.openide.util.NbBundle.getMessage(CTMalwareScannerOptionsPanel.class, "CTMalwareScannerOptionsPanel.malwareScansPanel.border.title"))); // NOI18N
|
||||||
malwareScansPanel.setLayout(new java.awt.GridBagLayout());
|
malwareScansPanel.setLayout(new java.awt.GridBagLayout());
|
||||||
|
|
||||||
@ -309,6 +260,7 @@ public class CTMalwareScannerOptionsPanel extends CTOptionsSubPanel {
|
|||||||
gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
|
gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
|
||||||
malwareScansPanel.add(disclaimer, gridBagConstraints);
|
malwareScansPanel.add(disclaimer, gridBagConstraints);
|
||||||
|
|
||||||
|
licenseInfoPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(org.openide.util.NbBundle.getMessage(CTMalwareScannerOptionsPanel.class, "CTMalwareScannerOptionsPanel.licenseInfoPanel.border.title"))); // NOI18N
|
||||||
licenseInfoPanel.setLayout(new java.awt.GridBagLayout());
|
licenseInfoPanel.setLayout(new java.awt.GridBagLayout());
|
||||||
|
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(licenseInfoMessageLabel, org.openide.util.NbBundle.getMessage(CTMalwareScannerOptionsPanel.class, "CTMalwareScannerOptionsPanel.licenseInfoMessageLabel.text")); // NOI18N
|
org.openide.awt.Mnemonics.setLocalizedText(licenseInfoMessageLabel, org.openide.util.NbBundle.getMessage(CTMalwareScannerOptionsPanel.class, "CTMalwareScannerOptionsPanel.licenseInfoMessageLabel.text")); // NOI18N
|
||||||
@ -507,10 +459,6 @@ public class CTMalwareScannerOptionsPanel extends CTOptionsSubPanel {
|
|||||||
}
|
}
|
||||||
}//GEN-LAST:event_licenseInfoAddButtonActionPerformed
|
}//GEN-LAST:event_licenseInfoAddButtonActionPerformed
|
||||||
|
|
||||||
private void fileUploadCheckboxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_fileUploadCheckboxActionPerformed
|
|
||||||
this.firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
|
|
||||||
}//GEN-LAST:event_fileUploadCheckboxActionPerformed
|
|
||||||
|
|
||||||
private void purchaseLinkMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_purchaseLinkMouseClicked
|
private void purchaseLinkMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_purchaseLinkMouseClicked
|
||||||
gotoLink(PURCHASE_URL);
|
gotoLink(PURCHASE_URL);
|
||||||
}//GEN-LAST:event_purchaseLinkMouseClicked
|
}//GEN-LAST:event_purchaseLinkMouseClicked
|
||||||
@ -730,15 +678,12 @@ public class CTMalwareScannerOptionsPanel extends CTOptionsSubPanel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected AuthTokenResponse doInBackground() throws Exception, CTCloudException {
|
protected AuthTokenResponse doInBackground() throws Exception {
|
||||||
if (this.isCancelled()) {
|
if (this.isCancelled()) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
try {
|
|
||||||
return ctApiDAO.getAuthToken(decryptedLicense);
|
return ctApiDAO.getAuthToken(decryptedLicense);
|
||||||
} catch (CTCloudException ex) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -1,37 +0,0 @@
|
|||||||
/*
|
|
||||||
* Autopsy Forensic Browser
|
|
||||||
*
|
|
||||||
* Copyright 2023 Basis Technology Corp.
|
|
||||||
* Contact: carrier <at> sleuthkit <dot> org
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
package com.basistech.df.cybertriage.autopsy.ctoptions.ctcloud;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Settings for the malware ingest module.
|
|
||||||
*/
|
|
||||||
public class MalwareIngestSettings {
|
|
||||||
|
|
||||||
private boolean uploadFiles = true;
|
|
||||||
|
|
||||||
public boolean isUploadFiles() {
|
|
||||||
return uploadFiles;
|
|
||||||
}
|
|
||||||
|
|
||||||
public MalwareIngestSettings setUploadFiles(boolean uploadFiles) {
|
|
||||||
this.uploadFiles = uploadFiles;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user