/* * Decompiled with CFR 0.152. * * Could not load the following classes: * com.tridium.crypto.core.cert.NHostExemption * javax.baja.sys.Sys * javax.baja.sys.Type * javax.baja.ui.BWidget * javax.baja.ui.pane.BGridPane * javax.baja.ui.wizard.BWizardHeader */ package com.tridium.platcrypto.ui; import com.tridium.crypto.core.cert.NHostExemption; import com.tridium.platcrypto.ui.BCertViewDialog; import com.tridium.platcrypto.ui.BX509CertificatePane; import java.util.Properties; import javax.baja.sys.Sys; import javax.baja.sys.Type; import javax.baja.ui.BWidget; import javax.baja.ui.pane.BGridPane; import javax.baja.ui.wizard.BWizardHeader; /* * Illegal identifiers - consider using --renameillegalidents true */ public class BExemptionViewDialog extends BCertViewDialog { public static final Type TYPE; private NHostExemption hostExemption; static /* synthetic */ Class class$com$tridium$platcrypto$ui$BExemptionViewDialog; public Type getType() { return TYPE; } public static void show(BWidget bWidget, NHostExemption nHostExemption) throws Exception { BExemptionViewDialog bExemptionViewDialog = new BExemptionViewDialog(bWidget, nHostExemption); bExemptionViewDialog.setBoundsCenteredOnOwner(); bExemptionViewDialog.setResizable(false); bExemptionViewDialog.open(); } protected BWidget buildHeader() { return new BWizardHeader(logo, this.cert.getSubject(), lex.getText("exempt.view.dialog.info", new Object[]{this.cert.getSubject()})); } protected BWidget buildProperties() { Properties properties = new Properties(); properties.setProperty("exempt.field.host", this.hostExemption.getHost()); properties.setProperty("exempt.field.approved", this.hostExemption.getApproved() ? lex.getText("exempt.field.approved.true") : lex.getText("exempt.field.approved.false")); properties.setProperty("exempt.field.created", this.hostExemption.getCreated().toString()); BX509CertificatePane bX509CertificatePane = new BX509CertificatePane(this.cert, properties, null); return bX509CertificatePane; } protected void appendProperties(BGridPane bGridPane) { } 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()); } } protected BExemptionViewDialog(BWidget bWidget, NHostExemption nHostExemption) throws Exception { super(bWidget, lex.getText("exempt.view.dialog.title")); this.hostExemption = nHostExemption; this.cert = nHostExemption.getCertificate(); this.setContent(this.buildDialog()); this.setDefaultButton(this.okButton); } static { Class clazz = class$com$tridium$platcrypto$ui$BExemptionViewDialog; if (clazz == null) { clazz = class$com$tridium$platcrypto$ui$BExemptionViewDialog = BExemptionViewDialog.class("[Lcom.tridium.platcrypto.ui.BExemptionViewDialog;", false); } TYPE = Sys.loadType((Class)clazz); } }