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 2022 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.getRequestHeader().getURI()); forceUser.queueAuthentication(msg); forceUser.processMessageToMatchUser(msg); send(ctx, msg, params, responseBodyConsumer); } else log.debug("SUCCESSFUL"); } private void send( HttpSenderContextParos c...
fim
zaproxy/zaproxy
java
<|fim_suffix|>atic boolean isRedirection(int statusCode) { if (statusCode >= 300 && statusCode < 400) { return true; } return false; } /** * Check if a HTTP status code is client error (400 &le; status &lt; 500) * * @param statusCode * @return */ ...
fim
zaproxy/zaproxy
java
<|fim_suffix|>= tmp.replaceAll("<", "%3C"); tmp = tmp.replaceAll(">", "%3E"); tmp = tmp.replaceAll("'", "%27"); tmp = tmp.replaceAll("\\x28", "%28"); // left bracket tmp = tmp.replaceAll("\\x29", "%29"); // right bracket tmp = tmp.replaceAll("\\x22", "%22"); // double quote ...
fim
zaproxy/zaproxy
java
<|fim_prefix|>/* * Created on May 31, 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|>legate.createCertForHost(certData); this.cache.put(certData, ks); return ks; } /** * @return return the current {@link SslCertificateService} */ public static SslCertificateService getService() { return singleton; } @Override public synchronized ...
fim
zaproxy/zaproxy
java
<|fim_suffix|>e.getValue() == null; } @Override public int hashCode() { int result = getType(); result = 31 * result + (getValue() != null ? getValue().hashCode() : 0); return result; } } } <|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its relate...
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 2011 mawoki@ymail.com * <|fim_suffix|>, cause); } public MissingRootCertificateException(String s) { super(s); } public MissingRootC...
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 2011 mawoki@ymail.com * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License....
fim
zaproxy/zaproxy
java
<|fim_suffix|>KeyStore createCertForHost(CertData certData) throws NoSuchAlgorithmException, InvalidKeyException, CertificateException, NoSuchProviderException, SignatureException, KeyStoreException, ...
fim
zaproxy/zaproxy
java
<|fim_prefix|>/* * Created on May 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_suffix|> cons.fill = GridBagConstraints.HORIZONTAL; cons.insets = new java.awt.Insets(0, 0, 0, 0); cons.weightx = 1; cons.gridx = 0; searchToolBar.add(getSearchTextField(), cons); cons.weightx = 0; cons.gridx = 1; searc...
fim
zaproxy/zaproxy
java
<|fim_suffix|> btnCancel.setName("btnCancel"); btnCancel.setText(Constant.messages.getString("all.button.cancel")); btnCancel.addActionListener( new ActionListener() { @Override public void actionPerformed(ActionEvent e) { ...
fim
zaproxy/zaproxy
java
<|fim_suffix|>id onShow() {} /** * Called when the panel is hidden (another panel becomes visible) in the containing {@link * AbstractParamDialog}. */ public void onHide() {} /** Called when the 'Reset to Factory Settings' option is selected */ public void reset() {} } <|fim_prefix|>/* ...
fim
zaproxy/zaproxy
java
<|fim_suffix|>t.TRAILING) .addComponent(jLabel)) .addGroup( layout.createParallelGroup(GroupLayout.Alignment.LEADING) .addComponent(getTxtFind()) ...
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 2014 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|>ic WorkbenchPanel.Layout getWorkbenchLayout() { return workbenchLayout; } /** * Sets the position of the response panel. Should be considered a hint, not all workbench * layouts might use this setting. * * <p>If the position is already set no further action is taken, o...
fim
zaproxy/zaproxy
java
<|fim_suffix|>onListener( new java.awt.event.ActionListener() { @Override public void actionPerformed(java.awt.event.ActionEvent e) { getMenuFileControl().exit(); } }); } ...
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|>st provide {@code OutputSource} * attributes supported by the output panel. * * <p>Note: The default output panel does not support customization. * * @since 2.16.0 */ public void registerOutputSource(OutputSource source) {} /** * This is intended to be used by a...
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|> } /** * This method initializes txtSessionName * * @return org.zaproxy.zap.utils.ZapTextField */ private ZapTextField getTxtSessionName() { if (txtSessionName == null) { txtSessionName = new ZapTextField(); } return txtSessionName; ...
fim
zaproxy/zaproxy
java
<|fim_suffix|> new JCheckBox( Constant.messages.getString( "sites.purge.confirm.message")); Object[] messages = { ...
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 www.proofsecure.com * * This program is free software; you can redistribute it and/or * modify it under the terms of the Clarified Artistic License * as published by the Fre...
fim
zaproxy/zaproxy
java
<|fim_suffix|>formed(ActionEvent e) { getWorkbench().showPanel(ap); } }); menuShowTabs.add(tabMenu); if (extKey != null) { extKey.registerMenuItem(tabMenu); } } public void showAllTabs() { getWorkbench().se...
fim
zaproxy/zaproxy
java
<|fim_suffix|>tractDialog; import org.parosproxy.paros.model.Model; public class WaitMessageDialog extends AbstractDialog { private static final long serialVersionUID = 2951228940444340016L; private JPanel jPanel = null; private JLabel lblMessage = null; /** * @throws HeadlessException */ ...
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|> } int count = ZapSupportUtils.saveSbomZip(sbomFile); if (count == 0) { System.out.println( Constant.messages.getString("support.savesbom.warn.nosboms")); } else { System.out.println( ...
fim
zaproxy/zaproxy
java
<|fim_suffix|> try { // Allow extensions to pick up command line args in daemon mode control.getExtensionLoader().hookCommandLineListener(getArgs()); recordStartStats(); contr...
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|>().isEnabled(CommandLine.NEW_SESSION)) { String path = getArgs().getArgument(CommandLine.NEW_SESSION); Path sessionPath; try { sessionPath = SessionUtils.getSessionPath(path); } catch (IllegalArgumentException e) { System.err....
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 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 License. * Yo...
fim
zaproxy/zaproxy
java
<|fim_suffix|>* 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...
fim
zaproxy/zaproxy
java
<|fim_suffix|>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 WARRANT...
fim
zaproxy/zaproxy
java
<|fim_suffix|>== null) { return 1; } return impl.compareTo(other.impl); } @Override public String toString() { return impl.toString(); } } <|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web appli...
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 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 ...
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 secur<|fim_suffix|>d handling of command line * arguments. * * @since 2.4.2 * @see Model * @see org.parosproxy.paros.control.Control * @see org.parosproxy.paros.view.View */ abst...
fim
zaproxy/zaproxy
java
<|fim_suffix|> */ public ZapGetMethod(String uri) { super(uri); } @Override public String getName() { return "GET"; } @Override public void setFollowRedirects(boolean followRedirects) { this.followRedirects = followRedirects; } @Override public bool...
fim
zaproxy/zaproxy
java
<|fim_suffix|> org.apache.commons.httpclient.HostConfiguration; /** * Custom {@code HttpConnection} that exposes its socket and avoids closing. * * @deprecated (2.12.0) Implementation details, do not use. */ @Deprecated public class ZapHttpConnection extends org.apache.commons.httpclient.HttpConnection { /** ...
fim
zaproxy/zaproxy
java
<|fim_suffix|>entation details, do not use. */ @Deprecated public class ZapHttpConnectionManager extends SimpleHttpConnectionManager { /** Use custom {@link ZapHttpConnection} to allow for socket exposure. */ @Override public org.apache.commons.httpclient.HttpConnection getConnectionWithTimeout( ...
fim
zaproxy/zaproxy
java
<|fim_suffix|>Defaults { private static final long serialVersionUID = 1L; @Override public ComponentUI getUI(JComponent target) { if (target instanceof JLabel) { target.putClientProperty("html.disable", Boolean.TRUE); } return null; }...
fim
zaproxy/zaproxy
java
<|fim_suffix|> /** * Gets the corresponding authentication method configured by this panel. * * @return the method */ public abstract AuthenticationMethod getMethod(); } <|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web...
fim
zaproxy/zaproxy
java
<|fim_suffix|>sOptionsPanel(T credentials) { super(); this.credentials = credentials; } /** * Validate the fields. * * @return true, if successful */ public abstract boolean validateFields(); /** * Save the changes from the panel in the credentials. After this ...
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 2013 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 2014 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|>ndicatorPattern(); /** * Sets the logged out indicator pattern. * * @param loggedOutIndicatorPattern the new logged out indicator pattern */ void setLoggedOutIndicatorPattern(String loggedOutIndicatorPattern); /** * Sets whether or not the field of the logged out ind...
fim
zaproxy/zaproxy
java
<|fim_suffix|> this.loggedInIndicatorPattern = Pattern.compile(loggedInIndicatorPattern); } } /** * Gets the logged out indicator pattern. * * @return the logged out indicator pattern */ public Pattern getLoggedOutIndicatorPattern() { return loggedOutIndicatorPatter...
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 2013 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 2013 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|>ntials.paramValues = new HashMap<>(this.fieldsPanel.getFieldValues()); if (totpTabbedPane != null) { credentials.setTotpData(totpTabbedPane.getTotpData()); } } } private static final String ACTION_SET_CREDENTIALS = "scriptBasedAuthenticationCredent...
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 2013 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|>to be configured. */ public JsonBasedAuthenticationMethodOptionsPanel(Context context) { super(context, StringEscapeUtils::unescapeJson); } @Override protected List<NameValuePair> extractParameters(String postData) { if (postData.isEmpty())...
fim
zaproxy/zaproxy
java
<|fim_suffix|> .getExtension(ExtensionUserManagement.class); User user = extensionUserManagement .getContextUserAuthManager(context.getId()) .getUserById(userId); if (user == null) { ...
fim
zaproxy/zaproxy
java
<|fim_suffix|>a( requestMessage.getRequestingUser().getContext(), postRequestBody); if (!parameters.isEmpty()) { String oldAcsrfTokenValue = null; String replacedPostData = postRequestBody; for (AntiCsrfToken antiCsrfToken : freshAcsrfTokens) { ...
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 2014 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|>te TotpData totpData; protected TotpAuthenticationCredentials(boolean enabled) { this.enabled = enabled; totpData = TotpData.EMPTY; } public boolean isTotpEnabled() { return TotpAuthenticationCredentials.generator != null && enabled; } public TotpData getTotp...
fim
zaproxy/zaproxy
java
<|fim_suffix|>ecretLabel) .addComponent(totpPeriodLabel) .addComponent(totpDigitsLabel) .addComponent(totpAlgorithmLabel)) .addGroup( layout.cre...
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 2013 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|>ConversionException e) { logger.error( "Error while getting the version of the configurations: {}", e.getMessage(), e); return ERROR_READING_CONFIG_VERSION; } } /** * Returns the key to read/write the version of the configurations. * ...
fim
zaproxy/zaproxy
java
<|fim_suffix|> set, {@code * false} otherwise * @since 2.4.3 * @see #setLoadedAscanrules(List) */ void setLoadedAscanrulesSet(boolean ascanrulesSet) { loadedAscanRulesSet = ascanrulesSet; } public List<String> getPscanrules() { return pscanrules; } /** ...
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 2013 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 T<|fim_suffix|> not the given classname is allowed, thus can be loaded. * * @param classname the classname to check. * @return {@code true}...
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|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2014 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|>add-ons. * * <p>Extensions with unfulfilled dependencies are not be returned. * * @return a list containing all {@code Extension}s of all installed add-ons * @since 2.4.0 * @see Extension * @see #getExtensions(AddOn) */ public List<Extension> getExtensions() { ...
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 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 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|>/* * 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|>g classname; private final List<AddOnDep> addOnDependencies; private final AddOnClassnames addOnClassnames; public ExtensionWithDeps( String classname, List<AddOnDep> addOnDependencies, AddOnClassnames addOnClassnames) { ...
fim
zaproxy/zaproxy
java
<|fim_suffix|>See the License for the specific language governing permissions and * limitations under the License. */ package org.zaproxy.zap.control; import java.util.Arrays; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; /** * Used to override options in the configuration file. * ...
fim
zaproxy/zaproxy
java
<|fim_suffix|>*/ @Deprecated(since = "2.15.0", forRemoval = true) public static List<org.zaproxy.zap.extension.pscan.PluginPassiveScanner> getBuiltInPassiveScanRules() { return List.of(); } } <|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTT...
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 2011 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|>led) {} } <|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2022 The ZAP Development Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except...
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 2022 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 2014 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|>url = url; this.fileName = fileName; this.size = size; this.releaseNotes = releaseNotes; this.releaseNotesUrl = releaseNotesUrl; this.hash = hash; } public String getVersion() { return version; } public void setVersion(String version) { ...
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 2013 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|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2021 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|>newer one. * * @param nameValuePair * @param param * @param namePayloadFormat * @param value * @param valuePayloadFormat * @return {@code InputVectorBuilder} */ public InputVectorBuilder setNameAndValue( NameValuePair nameValuePair, Strin...
fim
zaproxy/zaproxy
java
<|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web app<|fim_suffix|>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...
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 2021 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|>atabaseException { try { psInsertOrUpdate.setLong(1, alertId); psInsertOrUpdate.setString(2, key); psInsertOrUpdate.setString(3, value); psInsertOrUpdate.executeUpdate(); return read(alertId, key); } catch (SQLException e) { ...
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|> String version = (String) dbProps.get("version"); if (version.charAt(0) < '2') { // got version < 2.0.0 // => SHUTDOWN COMPACT database // and reconnect again doCompact = true; } } this.setDbUrl("jdbc...
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|>this method to create a custom {@code SqlDatabaseServer} * implementation. * * @param path the location of the database server * @return a {@code SqlDatabaseServer} to be used by this database * @throws Exception if an error occurred while creating the {@code SqlDatabaseServer}. ...
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|>"table.ps.lastinsert")); } return psLastInsert.executeQuery(); } public void close() throws SQLException { ps.getConnection().close(); } public long getTimeTaken() { return (new Date().getTime()) - this.created.getTime(); } } <|fim_prefix|>/* * Zed At...
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|>getLong(TAG_ID), rs.getLong(ALERT_ID), rs.getString(KEY), rs.getString(VALUE)); } return rat; } } <|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy...
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|>eSession); } } @Override public void deleteHistoryType(long sessionId, int historyType) throws DatabaseException { SqlPreparedStatementWrapper psDeleteType = null; try { psDeleteType = DbSQL.getSingleton().getPreparedStatement("history.ps.deletetype"); ...
fim
zaproxy/zaproxy
java
<|fim_suffix|>atabaseException { SqlPreparedStatementWrapper psUpdate = null; try { psUpdate = DbSQL.getSingleton().getPreparedStatement("param.ps.update"); psUpdate.getPs().setInt(1, used); psUpdate.getPs().setString(2, flags); psUpdate.getPs().setString(...
fim
zaproxy/zaproxy
java
<|fim_suffix|>teQuery()) { return build(rs); } } catch (SQLException e) { throw new DatabaseException(e); } finally { DbSQL.getSingleton().releasePreparedStatement(psRead); } } @Override public synchronized RecordScan insert(long s...
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 u<|fim_suffix|>ME = DbSQL.getSQL("session.field.sessionname"); private static final String LASTACCESS = DbSQL....
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 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 License. * Yo...
fim
zaproxy/zaproxy
java
<|fim_suffix|> psGetChildren = DbSQL.getSingleton().getPreparedStatement("structure.ps.getchildren"); psGetChildren.getPs().setLong(1, sessionId); psGetChildren.getPs().setLong(2, parentId); List<RecordStructure> result = new ArrayList<>(); try (ResultSet rs = psGet...
fim
zaproxy/zaproxy
java