link start!
This commit is contained in:
@@ -0,0 +1,102 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* com.tridium.fox.sys.BFoxsScheme$FoxQuery
|
||||
* com.tridium.workbench.nav.BFoxCnxHandler
|
||||
* com.tridium.workbench.ord.BFoxsSessionOrdFE
|
||||
* com.tridium.workbench.ord.BHostOrdFE
|
||||
* javax.baja.naming.BOrd
|
||||
* javax.baja.naming.OrdQuery
|
||||
* javax.baja.security.BICredentials
|
||||
* javax.baja.security.BUsernameAndPassword
|
||||
* javax.baja.sys.Sys
|
||||
* javax.baja.sys.Type
|
||||
* javax.baja.util.Lexicon
|
||||
*/
|
||||
package com.tridium.platcrypto.fox.ui;
|
||||
|
||||
import com.tridium.fox.sys.BFoxsScheme;
|
||||
import com.tridium.workbench.nav.BFoxCnxHandler;
|
||||
import com.tridium.workbench.ord.BFoxsSessionOrdFE;
|
||||
import com.tridium.workbench.ord.BHostOrdFE;
|
||||
import javax.baja.naming.BOrd;
|
||||
import javax.baja.naming.OrdQuery;
|
||||
import javax.baja.security.BICredentials;
|
||||
import javax.baja.security.BUsernameAndPassword;
|
||||
import javax.baja.sys.Sys;
|
||||
import javax.baja.sys.Type;
|
||||
import javax.baja.util.Lexicon;
|
||||
|
||||
/*
|
||||
* Illegal identifiers - consider using --renameillegalidents true
|
||||
*/
|
||||
public class BFoxSCnxHandler
|
||||
extends BFoxCnxHandler {
|
||||
public static final Type TYPE;
|
||||
private static final String KEY = "open.ssl.station";
|
||||
static /* synthetic */ Class class$com$tridium$platcrypto$fox$ui$BFoxSCnxHandler;
|
||||
|
||||
public Type getType() {
|
||||
return TYPE;
|
||||
}
|
||||
|
||||
protected void saveHostAddress() throws Exception {
|
||||
this.ordFE.setAutoSaveHistory(false);
|
||||
BOrd bOrd = (BOrd)this.ordFE.saveValue();
|
||||
OrdQuery[] ordQueryArray = bOrd.parse();
|
||||
this.hostOrd = BOrd.make((OrdQuery)ordQueryArray[0]);
|
||||
int n = this.defaultPort;
|
||||
String[] stringArray = null;
|
||||
int n2 = 1;
|
||||
while (n2 < ordQueryArray.length) {
|
||||
if (ordQueryArray[n2] instanceof BFoxsScheme.FoxQuery) {
|
||||
BFoxsScheme.FoxQuery foxQuery = (BFoxsScheme.FoxQuery)ordQueryArray[n2];
|
||||
n = foxQuery.getPort();
|
||||
stringArray = foxQuery.getTunnelAuthorities();
|
||||
break;
|
||||
}
|
||||
++n2;
|
||||
}
|
||||
this.port = n;
|
||||
this.tunnelAuthorities = stringArray;
|
||||
}
|
||||
|
||||
public boolean isSecure() {
|
||||
return true;
|
||||
}
|
||||
|
||||
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());
|
||||
}
|
||||
}
|
||||
|
||||
public BFoxSCnxHandler() {
|
||||
super("foxs", 4911, (BHostOrdFE)new BFoxsSessionOrdFE(), (BICredentials)new BUsernameAndPassword(), TYPE.getModule().getLexicon(), KEY);
|
||||
}
|
||||
|
||||
public BFoxSCnxHandler(Lexicon lexicon, String string) {
|
||||
super("foxs", 4911, (BHostOrdFE)new BFoxsSessionOrdFE(), (BICredentials)new BUsernameAndPassword(), lexicon, string);
|
||||
}
|
||||
|
||||
public BFoxSCnxHandler(String string, int n, BHostOrdFE bHostOrdFE, BICredentials bICredentials, Lexicon lexicon, String string2) {
|
||||
super(string, n, bHostOrdFE, bICredentials, lexicon, string2);
|
||||
}
|
||||
|
||||
static {
|
||||
Class clazz = class$com$tridium$platcrypto$fox$ui$BFoxSCnxHandler;
|
||||
if (clazz == null) {
|
||||
clazz = class$com$tridium$platcrypto$fox$ui$BFoxSCnxHandler = BFoxSCnxHandler.class("[Lcom.tridium.platcrypto.fox.ui.BFoxSCnxHandler;", false);
|
||||
}
|
||||
TYPE = Sys.loadType((Class)clazz);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* com.tridium.fox.sys.BFoxSession
|
||||
* com.tridium.workbench.nav.BFoxSessionAgent
|
||||
* javax.baja.naming.BHost
|
||||
* javax.baja.naming.BISession
|
||||
* javax.baja.sys.Sys
|
||||
* javax.baja.sys.Type
|
||||
* javax.baja.xml.XElem
|
||||
*/
|
||||
package com.tridium.platcrypto.fox.ui;
|
||||
|
||||
import com.tridium.fox.sys.BFoxSession;
|
||||
import com.tridium.workbench.nav.BFoxSessionAgent;
|
||||
import javax.baja.naming.BHost;
|
||||
import javax.baja.naming.BISession;
|
||||
import javax.baja.sys.Sys;
|
||||
import javax.baja.sys.Type;
|
||||
import javax.baja.xml.XElem;
|
||||
|
||||
/*
|
||||
* Illegal identifiers - consider using --renameillegalidents true
|
||||
*/
|
||||
public class BFoxSslSessionAgent
|
||||
extends BFoxSessionAgent {
|
||||
public static final BFoxSslSessionAgent INSTANCE = new BFoxSslSessionAgent();
|
||||
public static final Type TYPE;
|
||||
static /* synthetic */ Class class$com$tridium$platcrypto$fox$ui$BFoxSslSessionAgent;
|
||||
|
||||
public Type getType() {
|
||||
return TYPE;
|
||||
}
|
||||
|
||||
public void pickle(BISession bISession, XElem xElem) {
|
||||
BFoxSession bFoxSession = (BFoxSession)bISession;
|
||||
xElem.addAttr("port", "" + bFoxSession.getPort());
|
||||
xElem.addAttr("useFoxs", "true");
|
||||
if (bFoxSession.getStationName() != null) {
|
||||
xElem.addAttr("stationName", bFoxSession.getStationName());
|
||||
}
|
||||
}
|
||||
|
||||
public BISession unpickle(BHost bHost, XElem xElem) {
|
||||
int n = xElem.geti("port", 4911);
|
||||
String string = xElem.get("stationName", null);
|
||||
boolean bl = xElem.getb("useFoxs", true);
|
||||
return BFoxSession.make((String)string, (BHost)bHost, (int)n, (boolean)true);
|
||||
}
|
||||
|
||||
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$fox$ui$BFoxSslSessionAgent;
|
||||
if (clazz == null) {
|
||||
clazz = class$com$tridium$platcrypto$fox$ui$BFoxSslSessionAgent = BFoxSslSessionAgent.class("[Lcom.tridium.platcrypto.fox.ui.BFoxSslSessionAgent;", false);
|
||||
}
|
||||
TYPE = Sys.loadType((Class)clazz);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user