|
JMeter example source code file (SSLManagerCommand.java)
The JMeter SSLManagerCommand.java source code/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You 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 org.apache.jmeter.gui.action; import java.awt.event.ActionEvent; import java.io.File; import java.io.IOException; import java.util.Collections; import java.util.HashSet; import java.util.Set; import javax.swing.JFileChooser; import javax.swing.filechooser.FileFilter; import org.apache.jmeter.gui.GuiPackage; import org.apache.jmeter.util.JMeterUtils; import org.apache.jmeter.util.SSLManager; // /** * SSL Manager Command. The SSL Manager provides a mechanism to change your * client authentication if required by the server. If you have JSSE 1.0.2 * installed, you can select your client identity from a list of installed keys. * You can also change your keystore. JSSE 1.0.2 allows you to export a PKCS#12 * key from Netscape 4.04 or higher and use it in a read only format. You must * supply a password that is greater than six characters due to limitations in * the keytool program--and possibly the rest of the system. * <p> * By selecting a *.p12 file as your keystore (your PKCS#12) format file, you * can have a whopping one key keystore. The advantage is that you can test a * connection using the assigned Certificate from a Certificate Authority. * </p> * TODO ? * N.B. The present implementation does not seem to allow selection of keys, * it only allows a change of keystore at run-time, or to provide one if not * already defined via the property. * */ public class SSLManagerCommand implements Command { private static final Set<String> commandSet; static { HashSet<String> commands = new HashSet Other JMeter examples (source code examples)Here is a short list of links related to this JMeter SSLManagerCommand.java source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.