217 lines
7.3 KiB
Java
217 lines
7.3 KiB
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*
|
|
* Could not load the following classes:
|
|
* com.tridium.crypto.core.cert.NHostExemption
|
|
* com.tridium.crypto.core.io.ICoreExemptionStore
|
|
* com.tridium.platform.daemon.BDaemonSession
|
|
* javax.baja.sys.Sys
|
|
* javax.baja.sys.Type
|
|
* javax.baja.xml.XElem
|
|
*/
|
|
package com.tridium.platcrypto.daemon;
|
|
|
|
import com.tridium.crypto.core.cert.NHostExemption;
|
|
import com.tridium.crypto.core.io.ICoreExemptionStore;
|
|
import com.tridium.platcrypto.daemon.BPlatCryptoBase;
|
|
import com.tridium.platcrypto.daemon.messages.CryptoServletMessage;
|
|
import com.tridium.platform.daemon.BDaemonSession;
|
|
import java.io.IOException;
|
|
import java.io.OutputStream;
|
|
import java.util.ArrayList;
|
|
import java.util.Collections;
|
|
import java.util.Enumeration;
|
|
import javax.baja.sys.Sys;
|
|
import javax.baja.sys.Type;
|
|
import javax.baja.xml.XElem;
|
|
|
|
/*
|
|
* Illegal identifiers - consider using --renameillegalidents true
|
|
*/
|
|
public class BPlatExemptionStore
|
|
extends BPlatCryptoBase
|
|
implements ICoreExemptionStore {
|
|
public static final Type TYPE;
|
|
static /* synthetic */ Class class$com$tridium$platcrypto$daemon$BPlatExemptionStore;
|
|
|
|
public Type getType() {
|
|
return TYPE;
|
|
}
|
|
|
|
public Enumeration exemptions() throws Exception {
|
|
XElem[] xElemArray = this.send(new GetExemptionsMessage(), "exemption");
|
|
ArrayList<NHostExemption> arrayList = new ArrayList<NHostExemption>();
|
|
if (xElemArray != null) {
|
|
int n = 0;
|
|
while (n < xElemArray.length) {
|
|
arrayList.add(NHostExemption.decodeFromString((String)xElemArray[n].text().string()));
|
|
++n;
|
|
}
|
|
return Collections.enumeration(arrayList);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
public NHostExemption getExemption(String string) throws Exception {
|
|
XElem[] xElemArray = this.send(new GetExemptionMessage(string), "exemption");
|
|
if (xElemArray != null && xElemArray.length > 0) {
|
|
return NHostExemption.decodeFromString((String)xElemArray[0].text().string());
|
|
}
|
|
return null;
|
|
}
|
|
|
|
public void setExemption(NHostExemption nHostExemption) throws Exception {
|
|
this.send(new SetExemptionMessage(nHostExemption));
|
|
}
|
|
|
|
public void deleteExemption(String string) throws Exception {
|
|
this.send(new DeleteExemptionMessage(string));
|
|
}
|
|
|
|
public long getLastModified() throws Exception {
|
|
return 0L;
|
|
}
|
|
|
|
public void load() throws Exception {
|
|
}
|
|
|
|
public void save() throws IOException, Exception {
|
|
this.send(new SaveExemptionMessage());
|
|
}
|
|
|
|
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 BPlatExemptionStore() throws UnsupportedOperationException {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
|
|
public BPlatExemptionStore(BDaemonSession bDaemonSession) {
|
|
super(bDaemonSession);
|
|
}
|
|
|
|
static {
|
|
Class clazz = class$com$tridium$platcrypto$daemon$BPlatExemptionStore;
|
|
if (clazz == null) {
|
|
clazz = class$com$tridium$platcrypto$daemon$BPlatExemptionStore = BPlatExemptionStore.class("[Lcom.tridium.platcrypto.daemon.BPlatExemptionStore;", false);
|
|
}
|
|
TYPE = Sys.loadType((Class)clazz);
|
|
}
|
|
|
|
/*
|
|
* Illegal identifiers - consider using --renameillegalidents true
|
|
*/
|
|
private class GetExemptionsMessage
|
|
extends CryptoServletMessage {
|
|
public String getAction() {
|
|
return "getExemptions";
|
|
}
|
|
|
|
private GetExemptionsMessage() {
|
|
}
|
|
}
|
|
|
|
/*
|
|
* Illegal identifiers - consider using --renameillegalidents true
|
|
*/
|
|
private class GetExemptionMessage
|
|
extends CryptoServletMessage {
|
|
public String getAction() {
|
|
return "getExemption";
|
|
}
|
|
|
|
public GetExemptionMessage(String string) {
|
|
this.add("host", string);
|
|
}
|
|
}
|
|
|
|
/*
|
|
* Illegal identifiers - consider using --renameillegalidents true
|
|
*/
|
|
private class SetExemptionMessage
|
|
extends CryptoServletMessage {
|
|
private NHostExemption exemption;
|
|
|
|
public String getMethod() {
|
|
return "POST";
|
|
}
|
|
|
|
public String getAction() {
|
|
return "setExemption";
|
|
}
|
|
|
|
/*
|
|
* Exception decompiling
|
|
*/
|
|
public void write(OutputStream var1_1) {
|
|
/*
|
|
* This method has failed to decompile. When submitting a bug report, please provide this stack trace, and (if you hold appropriate legal rights) the relevant class file.
|
|
*
|
|
* org.benf.cfr.reader.util.ConfusedCFRException: Back jump on a try block [egrp 2[TRYBLOCK] [2 : 69->73)] java.lang.Throwable
|
|
* at org.benf.cfr.reader.bytecode.analysis.opgraph.Op02WithProcessedDataAndRefs.insertExceptionBlocks(Op02WithProcessedDataAndRefs.java:2283)
|
|
* at org.benf.cfr.reader.bytecode.CodeAnalyser.getAnalysisInner(CodeAnalyser.java:415)
|
|
* at org.benf.cfr.reader.bytecode.CodeAnalyser.getAnalysisOrWrapFail(CodeAnalyser.java:278)
|
|
* at org.benf.cfr.reader.bytecode.CodeAnalyser.getAnalysis(CodeAnalyser.java:201)
|
|
* at org.benf.cfr.reader.entities.attributes.AttributeCode.analyse(AttributeCode.java:94)
|
|
* at org.benf.cfr.reader.entities.Method.analyse(Method.java:531)
|
|
* at org.benf.cfr.reader.entities.ClassFile.analyseMid(ClassFile.java:1055)
|
|
* at org.benf.cfr.reader.entities.ClassFile.analyseInnerClassesPass1(ClassFile.java:923)
|
|
* at org.benf.cfr.reader.entities.ClassFile.analyseMid(ClassFile.java:1035)
|
|
* at org.benf.cfr.reader.entities.ClassFile.analyseTop(ClassFile.java:942)
|
|
* at org.benf.cfr.reader.Driver.doJarVersionTypes(Driver.java:257)
|
|
* at org.benf.cfr.reader.Driver.doJar(Driver.java:139)
|
|
* at org.benf.cfr.reader.CfrDriverImpl.analyse(CfrDriverImpl.java:76)
|
|
* at org.benf.cfr.reader.Main.main(Main.java:54)
|
|
*/
|
|
throw new IllegalStateException("Decompilation failed");
|
|
}
|
|
|
|
public SetExemptionMessage(NHostExemption nHostExemption) {
|
|
this.exemption = nHostExemption;
|
|
}
|
|
}
|
|
|
|
/*
|
|
* Illegal identifiers - consider using --renameillegalidents true
|
|
*/
|
|
private class DeleteExemptionMessage
|
|
extends CryptoServletMessage {
|
|
public String getAction() {
|
|
return "deleteExemption";
|
|
}
|
|
|
|
public DeleteExemptionMessage(String string) {
|
|
try {
|
|
this.add("host", string);
|
|
}
|
|
catch (Exception exception) {
|
|
throw new IllegalArgumentException("Invalid host", exception);
|
|
}
|
|
}
|
|
}
|
|
|
|
/*
|
|
* Illegal identifiers - consider using --renameillegalidents true
|
|
*/
|
|
private class SaveExemptionMessage
|
|
extends CryptoServletMessage {
|
|
public String getAction() {
|
|
return "saveExemptions";
|
|
}
|
|
|
|
private SaveExemptionMessage() {
|
|
}
|
|
}
|
|
}
|
|
|