text stringlengths 14 100k | source stringclasses 1
value | repo stringclasses 810
values | language stringclasses 13
values |
|---|---|---|---|
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2012 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
/*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Clarified Artistic License
* as publish... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2012 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2006 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Clarified Artistic License... | fim | zaproxy/zaproxy | java |
<|fim_suffix|> {
this.used = used;
}
public String getFlags() {
return flags;
}
public void setFlags(String flags) {
this.flags = flags;
}
public String getValues() {
return values;
}
public void setValues(String values) {
this.values = values;... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>*
* @param scanId The scanId to set.
*/
public void setScanId(int scanId) {
this.scanId = scanId;
}
/**
* @return Returns the scanName.
*/
public String getScanName() {
return scanName;
}
/**
* @param scanName The scanName to set.
*/
... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Clarified Artistic License... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>e, String url) {
super();
this.urlId = urlId;
this.type = type;
this.url = url;
}
public long getUrlId() {
return urlId;
}
public void setUrlId(long urlId) {
this.urlId = urlId;
}
public int getType() {
return type;
}
... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2015 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* y<|fim_suffix|>ate long structureId;
private long pa... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>ram tag
*/
public RecordTag(long tagId, long historyId, String tag) {
super();
setTagId(tagId);
setHistoryId(historyId);
setTag(tag);
}
/**
* @return Returns the tagId.
*/
public long getTagId() {
return tagId;
}
/**
* @... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2015 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2015 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not u<|fim_suffix|>e License is distributed on a... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2015 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2015 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>ssions and
* limitations under the License.
*/
package org.parosproxy.paros.db;
/**
* This interface was extracted from the previous Paros class of the same name. The Paros class that
* implements this interface has been moved to the 'paros' sub package and prefixed with 'Paros'
*
* @author psiinon... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2015 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>stributed 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 org.parosproxy.paros.db;
/**
* This interface was extracted from the previous Pa... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2015 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>storyId) throws DatabaseException;
}
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web<|fim_middle|> application security.
*
* Copyright 2015 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "Licen... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>od.
// ZAP: 2013/03/03 Issue 546: Remove all template Javadoc comments
// ZAP: 2013/05/02 Re-arranged all modifiers into Java coding standard order
// ZAP: 2015/02/09 Issue 1525: Introduce a database interface layer to allow for alternative
// implementations
// ZAP: 2019/06/01 Normalise line endings.
// ... | fim | zaproxy/zaproxy | java |
/*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Clarified Artistic License
* as publish... | fim | zaproxy/zaproxy | java |
<|fim_suffix|> LOGGER.debug(e.getMessage(), e);
}
}
String version = (String) dbProps.get("version");
if (version.charAt(0) < '2') {
// got version < 2.0.0
// => SHUTDOWN COMPACT database
// and reconnect again
... | fim | zaproxy/zaproxy | java |
/*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Clarified Artistic License
* as publish... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2015 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2006 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Clarified Artistic License... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2015 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_suffix|> scan =
new RecordScan(
rs.getInt(SCANID), rs.getString(SCANNAME), rs.getDate(SCANTIME));
}
rs.close();
return scan;
} catch (SQLException e) {
throw new DatabaseException(e);
}
}
}
... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Clarified Artistic License... | fim | zaproxy/zaproxy | java |
<|fim_suffix|> }
}
@Override
public synchronized void delete(int type, String url) throws DatabaseException {
try {
psDeleteUrls.setInt(1, type);
psDeleteUrls.setString(2, url);
psDeleteUrls.executeUpdate();
} catch (SQLException e) {
thro... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2015 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2015 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Clarified Artistic License... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004<|fim_suffix|>ned(boolean pinned) {
this.pinned = pinned;
}
public boolean isLocked() {
return locked;
}
public void setLocked(... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>ve received a copy of the Clarified Artistic License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// ZAP: 2019/06/01 Normalise line endings.
// ZAP: 2019/06/05 Normalise format/style.
package org.parosprox... | fim | zaproxy/zaproxy | java |
/*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2005 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Clarified Artistic License
* as published by... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Clarified Artistic License... | fim | zaproxy/zaproxy | java |
/*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Clarified Artistic License
* as publish... | fim | zaproxy/zaproxy | java |
<|fim_suffix|> * @return the hook for view components, might be {@code null}.
* @since 2.8.0
*/
ExtensionHookView getHookViewNoInit() {
return hookView;
}
/**
* @return Returns the model.
*/
public Model getModel() {
return model;
}
/**
* @return Re... | fim | zaproxy/zaproxy | java |
<|fim_suffix|> }
List<JMenuItem> getEdit() {
return unmodifiableList(editMenuItemList);
}
List<JMenuItem> getView() {
return unmodifiableList(viewMenuItemList);
}
List<JMenuItem> getAnalyse() {
return unmodifiableList(analyseMenuItemList);
}
List<JMenuItem> get... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Clarified Artistic License... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>eturn;
}
view.getMainFrame().getMainMenuBar().getMenuHelp().remove(menuItem);
}
public void removeReportMenuItem(JMenuItem menuItem) {
if (!hasView()) {
return;
}
view.getMainFrame().getMainMenuBar().getMenuReport().remove(menuItem);
}
... | fim | zaproxy/zaproxy | java |
/*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Clarified Artistic License
* as publish... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>le Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// ZAP: 2012/03/15 Changed the first letter of the method OptionsChanged to lower case.
// ZAP: 2013/03/03 Issue 546: Remove all template Javadoc comments
// ZAP: 2013/05/02 Removed redundant public modifiers from interface method declarations
// ZAP:... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>n has changed. sessionChanged may be called by non-event thread.
* Should handle with care in all the listener. Use EventThread for each GUI event.
*
* @param session the new session
*/
void sessionChanged(Session session);
/**
* Called just prior to the session changing.... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>getSessionDialog();
int showConfirmDialog(String msg);
int showYesNoCancelDialog(String msg);
void showWarningDialog(String msg);
void showMessageDialog(String msg);
WaitMessageDialog getWaitMessageDialog(String msg);
MainPopupMenu getPopupMenu();
// ZAP: Removed the met... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Clarified Artistic License... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>e
public int getWeight() {
return MenuWeights.MENU_FIND_WEIGHT;
}
}
<|fim_prefix|>/*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free softw... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Clarified Artistic License... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>pend(note);
}
if (empty) {
sb.append(Constant.messages.getString("history.filter.label.off"));
}
return sb.toString();
}
public void setNote(Object selectedItem) {
if (selectedItem == null) {
note = null;
} else {
... | fim | zaproxy/zaproxy | java |
<|fim_suffix|> false}
* otherwise.
*/
void setDisplaySelectedMessage(boolean display) {
getDefaultSelectionListener().setEnabled(display);
}
}
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*... | fim | zaproxy/zaproxy | java |
<|fim_suffix|> public HistoryTableModel() {
super(
new Column[] {
Column.HREF_ID,
Column.HREF_TYPE_INFO,
Column.REQUEST_TIMESTAMP,
Column.RESPONSE_TIMESTAMP,
Column.METHOD,
Co... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>toryReferencesTable().getAllHistoryReferences());
}
public void setLinkWithSitesTreeSelection(boolean enabled) {
linkWithSitesTreeButton.setSelected(enabled);
final JTree sitesTree = view.getSiteTreePanel().getTreeSite();
String baseUri = null;
if (enabled) {
... | fim | zaproxy/zaproxy | java |
/*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2005 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Clarified Artistic License
* as published by... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>/ ZAP: Log exceptions
LOG.warn(e1.getMessage(), e1);
}
}
});
}
void setExtension(ExtensionHistory extension) {
this.extension = extension;
}
private void exportHistory(HttpMessage msg, Buffere... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Created on Jun 17, 2004
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2018 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Clarified Artistic License... | fim | zaproxy/zaproxy | java |
/*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Clarified Artistic License
* as publish... | fim | zaproxy/zaproxy | java |
/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2012 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2012 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>L_DIVIDER_LOCATION_CONFIG_KEY,
verticalDividerLocation);
Model.getSingleton()
.getOptionsParam()
.getConfig()
.setProperty(
configurationKey + HORIZONTAL_DIVIDER_LOCATION_CONFIG_... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2012 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_suffix|> try {
DomainMatcher.createPattern(getDomainTextField().getText());
} catch (IllegalArgumentException e) {
JOptionPane.showMessageDialog(
this,
TEXT_INVALID_REGEX_DIALOG,
TITLE_INVALID_REG... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>yExcludedDomain {
private static final long serialVersionUID = -4031122965844883255L;
private static final String DIALOG_TITLE =
Constant.messages.getString("conn.options.proxy.excluded.domain.modify.title");
private static final String CONFIRM_BUTTON_LABEL =
Constan... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Clarified Artistic License... | fim | zaproxy/zaproxy | java |
<|fim_suffix|> && !chkProxyChainPrompt.isSelected()
&& txtProxyChainUserName.getText().isEmpty()) {
txtProxyChainUserName.requestFocus();
throw new Exception(
Constant.messages.getString("conn.options.proxy.username.empty"));
... | fim | zaproxy/zaproxy | java |
/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2012 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2015 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Clarified Artistic License... | fim | zaproxy/zaproxy | java |
/*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Clarified Artistic License
* as publish... | fim | zaproxy/zaproxy | java |
<|fim_suffix|> @Override
public int getColumnCount() {
return COLUMN_COUNT;
}
@Override
public int getRowCount() {
return excludedDomains.size();
}
@Override
public boolean isCellEditable(int rowIndex, int columnIndex) {
return (columnIndex == 0);
}
@Overr... | fim | zaproxy/zaproxy | java |
<|fim_suffix|> add(checkBox, gbc);
checkBox =
new JCheckBox(
Constant.messages.getString(
"generic.options.panel.security.protocols.ssl3.label"));
checkBox.setEnabled(false);
checkBoxesSslTlsProtocols.put(
o... | fim | zaproxy/zaproxy | java |
<|fim_suffix|> keyboard shortcuts
// ZAP: 2015/03/16 Issue 1525: Further database independence changes
// ZAP: 2016/04/05 Issue 2458: Fix xlint warning messages
// ZAP: 2016/06/20 Removed unnecessary/unused constructor
// ZAP: 2017/04/07 Added getUIName()
// ZAP: 2017/05/02 Removed Menu Item 'Session tracking'
// ZAP: ... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>outBuf.write(buf, 0, len);
}
}
}
}
public void copyNIO(File in, File out) throws IOException {
// CHECKSTYLE:OFF Inner assignments for try-with-resource are okay
try (FileInputStream inStream = new FileInputStream(in);
FileOutput... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>asNote() {
return httpMessageCachedData.hasNote();
}
public long getTimeSentMillis() {
return httpMessageCachedData.getTimeSentMillis();
}
public long getTimeReceivedMillis() {
return httpMessageCachedData.getTimeReceivedMillis();
}
public boolean isWebSo... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2017 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>= msg.getTimeElapsedMillis();
this.note = msg.getNote() != null && msg.getNote().length() > 0;
this.timeSentMillis = msg.getTimeSentMillis();
this.requestHeaderLength = msg.getRequestHeader().toString().length();
this.requestBodyLength = msg.getRequestBody().length();
... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>return the VariantFactory
* @since 2.10.0
*/
public VariantFactory getVariantFactory() {
return this.variantFactory;
}
}
<|fim_prefix|>/*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004... | fim | zaproxy/zaproxy | java |
<|fim_suffix|> */
public ExtensionParam getExtensionParam() {
return extensionParam;
}
}
<|fim_prefix|>/*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is fre... | fim | zaproxy/zaproxy | java |
/*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Clarified Artistic License
* as publish... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Clarified Artistic License... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Clarified Artistic License... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>"site.removed";
@Override
public String getPublisherName() {
return SiteMapEventPublisher.class.getCanonicalName();
}
public static synchronized SiteMapEventPublisher getPublisher() {
if (publisher == null) {
publisher = new SiteMapEventPublisher();
... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Clarified Artistic License... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2023 The ZAP Development T<|fim_suffix|> this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apach... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Created on Jun 6, 2004
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the ... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>SslSocketDecorator
* @deprecated (2.12.0) Implementation details, do not use.
*/
@Deprecated
public class DecoratedSocketsSslSocketFactory extends SSLSocketFactory {
private final SSLSocketFactory delegate;
private final SslSocketDecorator socketDecorator;
public DecoratedSocketsSslSocket... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>"enter PostMethod.addParameters(NameValuePair[])");
if (parameters == null) {
log.warn("Attempt to addParameters(null) ignored");
} else {
super.clearRequestBody();
for (int i = 0; i < parameters.length; i++) {
this.params.add(parameters... | fim | zaproxy/zaproxy | java |
/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2010 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Created on Jun 14, 2004
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the... | fim | zaproxy/zaproxy | java |
<|fim_suffix|> mMalformedHeader = false;
mContentLength = -1;
mLineDelimiter = CRLF;
mVersion = HttpHeader.HTTP10;
}
/**
* Set and parse this HTTP header with the string given.
*
* @param data
* @throws HttpMalformedHeaderException
*/
public void setM... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>me;
private final String value;
public HttpHeaderField(String name, String value) {
super();
this.name = name;
this.value = value;
}
public String getName() {
return name;
}
public String getValue() {
return value;
}
@Override
... | fim | zaproxy/zaproxy | java |
/*
* Created on May 29, 2004
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Clarified Art... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* Clarified Artistic License for more details.
*
* You should have received a copy of the Clarified Artistic License
* along with this program; if not, write to the Free ... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>()
.equalsIgnoreCase(msg.getRequestHeader().getMethod())) {
return false;
}
// compare host, port and URI
URI uri1 = this.getRequestHeader().getURI();
URI uri2 = msg.getRequestHeader().getURI();
try {
if (uri1.getHost() == n... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Created on May 26, 2004
*
* Paros and its related class files.
*<|fim_suffix|>();
value = token.substring(pos + 1).trim();
httpMethod.addRequestHeader(name, value);
}
// set body if post method or put method
if (body != null && body.length() > 0 &&... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>getBytes(CODEPAGE));
}
}
public void write(HttpResponseHeader resHeader) throws IOException {
write(resHeader.toString());
}
@Override
public void write(byte[] buf) throws IOException {
if (buf == null) return;
write(buf, 0, buf.length);
}
pub... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Created on Jun 14, 2004
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the... | fim | zaproxy/zaproxy | java |
/*
* Created on Jun 14, 2004
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Clarified Art... | fim | zaproxy/zaproxy | java |
/*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Clarified Artistic License
* as publish... | fim | zaproxy/zaproxy | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.