132 lines
4.9 KiB
Java
132 lines
4.9 KiB
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*
|
|
* Could not load the following classes:
|
|
* com.tridium.platform.ui.util.CommandUtil
|
|
* com.tridium.workbench.util.BSessionInfoDialog
|
|
* javax.baja.gx.BImage
|
|
* javax.baja.sys.BIcon
|
|
* javax.baja.sys.BValue
|
|
* javax.baja.sys.Sys
|
|
* javax.baja.sys.Type
|
|
* javax.baja.ui.BButton
|
|
* javax.baja.ui.BSeparator
|
|
* javax.baja.ui.BWidget
|
|
* javax.baja.ui.Command
|
|
* javax.baja.ui.CommandArtifact
|
|
* javax.baja.ui.enums.BButtonStyle
|
|
* javax.baja.ui.enums.BHalign
|
|
* javax.baja.ui.pane.BEdgePane
|
|
* javax.baja.ui.pane.BGridPane
|
|
* javax.baja.util.Lexicon
|
|
*/
|
|
package com.tridium.platcrypto.ui;
|
|
|
|
import com.tridium.platcrypto.ui.BCertViewDialog;
|
|
import com.tridium.platcrypto.util.BSslSessionInfo;
|
|
import com.tridium.platform.ui.util.CommandUtil;
|
|
import com.tridium.workbench.util.BSessionInfoDialog;
|
|
import javax.baja.gx.BImage;
|
|
import javax.baja.sys.BIcon;
|
|
import javax.baja.sys.BValue;
|
|
import javax.baja.sys.Sys;
|
|
import javax.baja.sys.Type;
|
|
import javax.baja.ui.BButton;
|
|
import javax.baja.ui.BSeparator;
|
|
import javax.baja.ui.BWidget;
|
|
import javax.baja.ui.Command;
|
|
import javax.baja.ui.CommandArtifact;
|
|
import javax.baja.ui.enums.BButtonStyle;
|
|
import javax.baja.ui.enums.BHalign;
|
|
import javax.baja.ui.pane.BEdgePane;
|
|
import javax.baja.ui.pane.BGridPane;
|
|
import javax.baja.util.Lexicon;
|
|
|
|
/*
|
|
* Illegal identifiers - consider using --renameillegalidents true
|
|
*/
|
|
public class BSslSessionInfoDialog
|
|
extends BSessionInfoDialog {
|
|
public static final Type TYPE;
|
|
private static Lexicon lex;
|
|
BSslSessionInfo sslInfo;
|
|
static /* synthetic */ Class class$com$tridium$platcrypto$ui$BSslSessionInfoDialog;
|
|
|
|
public Type getType() {
|
|
return TYPE;
|
|
}
|
|
|
|
protected BWidget buildBody() {
|
|
this.sslInfo = (BSslSessionInfo)this.info;
|
|
BGridPane bGridPane = new BGridPane(1);
|
|
bGridPane.setStretchColumn(0);
|
|
bGridPane.setHalign(BHalign.fill);
|
|
bGridPane.setColumnAlign(BHalign.fill);
|
|
String string = this.info.getUsername();
|
|
if (string != null) {
|
|
bGridPane.add(null, (BValue)this.buildRow(BImage.make((BIcon)userIcon), this.wordWrappedLabel(this.info.getConnectedAsMessage(string), BHalign.left, 250.0)));
|
|
bGridPane.add(null, (BValue)new BSeparator());
|
|
}
|
|
bGridPane.add(null, (BValue)this.buildRow(BImage.make((BIcon)this.info.getIdentityVerifiedIcon()), this.createCertLinkRow()));
|
|
bGridPane.add(null, (BValue)new BSeparator());
|
|
bGridPane.add(null, (BValue)this.buildRow(BImage.make((BIcon)this.info.getSessionEncryptedIcon()), this.wordWrappedLabel(this.info.getSessionEncryptedMessage(), BHalign.left, 300.0)));
|
|
bGridPane.add(null, (BValue)new BSeparator());
|
|
bGridPane.add(null, (BValue)this.buildRow(BImage.make((BIcon)this.info.getLastConnectedIcon()), this.wordWrappedLabel(this.info.getLastConnectedMessage(), BHalign.left, 300.0)));
|
|
bGridPane.add(null, (BValue)new BSeparator());
|
|
return bGridPane;
|
|
}
|
|
|
|
private final BWidget createCertLinkRow() {
|
|
BEdgePane bEdgePane = new BEdgePane();
|
|
bEdgePane.setCenter(this.wordWrappedLabel(this.info.getIdentityVerifiedMessage(), BHalign.left, 300.0));
|
|
BButton bButton = new BButton((Command)new CertificateCommand());
|
|
bButton.setButtonStyle(BButtonStyle.hyperlink);
|
|
bButton.setHalign(BHalign.left);
|
|
bEdgePane.setBottom((BWidget)bButton);
|
|
return bEdgePane;
|
|
}
|
|
|
|
static /* synthetic */ Class class(String string, boolean bl) {
|
|
try {
|
|
Class<?> clazz = Class.forName(string);
|
|
if (!bl) {
|
|
clazz = clazz.getComponentType();
|
|
}
|
|
return clazz;
|
|
}
|
|
catch (ClassNotFoundException classNotFoundException) {
|
|
throw new NoClassDefFoundError(classNotFoundException.getMessage());
|
|
}
|
|
}
|
|
|
|
static {
|
|
Class clazz = class$com$tridium$platcrypto$ui$BSslSessionInfoDialog;
|
|
if (clazz == null) {
|
|
clazz = class$com$tridium$platcrypto$ui$BSslSessionInfoDialog = BSslSessionInfoDialog.class("[Lcom.tridium.platcrypto.ui.BSslSessionInfoDialog;", false);
|
|
}
|
|
TYPE = Sys.loadType((Class)clazz);
|
|
lex = Lexicon.make((String)"workbench");
|
|
}
|
|
|
|
/*
|
|
* Illegal identifiers - consider using --renameillegalidents true
|
|
*/
|
|
class CertificateCommand
|
|
extends Command {
|
|
public CommandArtifact doInvoke() {
|
|
try {
|
|
BCertViewDialog.show((BWidget)BSslSessionInfoDialog.this, BSslSessionInfoDialog.this.sslInfo.getCertificate());
|
|
}
|
|
catch (Exception exception) {
|
|
CommandUtil.error((Command)this, (Throwable)exception);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
public CertificateCommand() {
|
|
super((BWidget)BSslSessionInfoDialog.this, lex.get("sessionInfoDialog.certificateInfo.label", "Certificate Information"));
|
|
}
|
|
}
|
|
}
|
|
|