// Path: wallet_lib/src/main/java/de/uni_bonn/bit/wallet_protocol/IPairingProtocol.java
// public interface IPairingProtocol {
// 
//     public PairingMessage pair(PairingMessage pairingMessage);
// }


import com.google.zxing.WriterException;
import com.intellij.uiDesigner.core.GridConstraints;
import com.intellij.uiDesigner.core.GridLayoutManager;
import com.intellij.uiDesigner.core.Spacer;
import de.uni_bonn.bit.wallet_protocol.IPairingProtocol;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.io.IOException;
import java.security.NoSuchAlgorithmException;
import java.security.spec.InvalidKeySpecException;
/*
* Copyright 2014 Christopher Mann
*
* 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 de.uni_bonn.bit;



/**
 * This dialog is displayed when executing the pairing protocol to pair the desktop wallet with a phone wallet. In the
 * beginning, it displays a QR code which can be scanned with the
 */
public class PairingDialog extends JDialog {
    private JPanel contentPane;
    private JButton buttonOK;
    private JTextPane infoTextPane;
    private JLabel qrCodeLabel;
    private KeyShareWalletExtension walletExtension;
    private Result result = Result.FAIL;

    private ProtocolServer server;
// Path: wallet_lib/src/main/java/de/uni_bonn/bit/wallet_protocol/IPairingProtocol.java
// public interface IPairingProtocol {
// 
//     public PairingMessage pair(PairingMessage pairingMessage);
// }


// Path: desktop_wallet/src/main/java/de/uni_bonn/bit/PairingDialog.java
import com.google.zxing.WriterException;
import com.intellij.uiDesigner.core.GridConstraints;
import com.intellij.uiDesigner.core.GridLayoutManager;
import com.intellij.uiDesigner.core.Spacer;
import de.uni_bonn.bit.wallet_protocol.IPairingProtocol;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.io.IOException;
import java.security.NoSuchAlgorithmException;
import java.security.spec.InvalidKeySpecException;

/*
* Copyright 2014 Christopher Mann
*
* 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 de.uni_bonn.bit;



/**
 * This dialog is displayed when executing the pairing protocol to pair the desktop wallet with a phone wallet. In the
 * beginning, it displays a QR code which can be scanned with the
 */
public class PairingDialog extends JDialog {
    private JPanel contentPane;
    private JButton buttonOK;
    private JTextPane infoTextPane;
    private JLabel qrCodeLabel;
    private KeyShareWalletExtension walletExtension;
    private Result result = Result.FAIL;

    private ProtocolServer server;
    private IPairingProtocol pairingProtocolImpl;