link start!

This commit is contained in:
cherubin
2026-03-17 13:31:18 -07:00
commit 08abe87cfb
5910 changed files with 386288 additions and 0 deletions
@@ -0,0 +1,19 @@
/*
* Decompiled with CFR 0.152.
*/
package com.tridium.platcrypto.daemon.messages;
import com.tridium.platcrypto.daemon.messages.KeyStoreMessage;
public class CertGenerationStatusMessage
extends KeyStoreMessage {
public String getAction() {
return "genCertStatus";
}
public CertGenerationStatusMessage(String string, int n) {
super(string);
this.add("requestId", "" + n);
}
}
@@ -0,0 +1,47 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* com.tridium.platform.daemon.message.DaemonMessage
*/
package com.tridium.platcrypto.daemon.messages;
import com.tridium.platform.daemon.message.DaemonMessage;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
public class CryptoServletMessage
extends DaemonMessage {
private static final String ENC = "UTF-8";
private StringBuilder message = new StringBuilder("crypto");
public String getAction() {
return "sendAliases";
}
public String getMessageString() {
return this.message.toString();
}
protected void add(String string, String string2) {
this.message.append("&").append(CryptoServletMessage.encode(string)).append("=").append(CryptoServletMessage.encode(string2));
}
private static final String encode(String string) {
String string2 = "";
if (string != null) {
try {
string2 = URLEncoder.encode(string, ENC);
}
catch (UnsupportedEncodingException unsupportedEncodingException) {
string2 = URLEncoder.encode(string);
}
}
return string2;
}
public CryptoServletMessage() {
this.message.append("?action=").append(this.getAction());
}
}
@@ -0,0 +1,59 @@
/*
* Decompiled with CFR 0.152.
*/
package com.tridium.platcrypto.daemon.messages;
import com.tridium.platcrypto.daemon.messages.KeyStoreMessage;
import java.io.OutputStream;
import java.security.cert.X509Certificate;
/*
* Illegal identifiers - consider using --renameillegalidents true
*/
public class FindCertificateMessage
extends KeyStoreMessage {
private X509Certificate cert;
public String getMethod() {
return "POST";
}
public String getAction() {
return "findCertificate";
}
/*
* 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 : 62->66)] 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.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");
}
private final /* synthetic */ void this() {
this.cert = null;
}
public FindCertificateMessage(String string, X509Certificate x509Certificate) {
super(string);
this.this();
this.cert = x509Certificate;
}
}
@@ -0,0 +1,53 @@
/*
* Decompiled with CFR 0.152.
*/
package com.tridium.platcrypto.daemon.messages;
import com.tridium.platcrypto.daemon.messages.KeyStoreMessage;
import java.text.SimpleDateFormat;
import java.util.Date;
public class GenerateCertificateMessage
extends KeyStoreMessage {
private final void setCommon(Date date, Date date2, int n, int n2, String string, String string2) {
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
this.add("notBefore", simpleDateFormat.format(date));
this.add("notAfter", simpleDateFormat.format(date2));
this.add("keySize", String.valueOf(n));
this.add("keyUsage", String.valueOf(n2));
this.add("email", string);
if (string2 != null) {
this.add("password", string2);
}
}
public String getAction() {
return "generateCert";
}
public GenerateCertificateMessage(String string, String string2, String string3, String string4, String string5, String string6, String string7, String string8, Date date, Date date2, int n, int n2, String string9, String string10) {
super(string);
this.add("alias", string2);
this.add("cn", string3);
if (string4 != null) {
this.add("ou", string4);
}
this.add("o", string5);
if (string6 != null) {
this.add("l", string6);
}
if (string7 != null) {
this.add("st", string7);
}
this.add("c", string8);
this.setCommon(date, date2, n, n2, string9, string10);
}
public GenerateCertificateMessage(String string, String string2, String string3, Date date, Date date2, int n, int n2, String string4, String string5) {
super(string);
this.add("alias", string2);
this.add("dn", string3);
this.setCommon(date, date2, n, n2, string4, string5);
}
}
@@ -0,0 +1,30 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* com.tridium.nre.util.LegacyStorageUtil
*/
package com.tridium.platcrypto.daemon.messages;
import com.tridium.nre.util.LegacyStorageUtil;
import com.tridium.platcrypto.daemon.messages.KeyStoreMessage;
import java.io.IOException;
public class GetKeyMessage
extends KeyStoreMessage {
public String getAction() {
return "getKey";
}
public GetKeyMessage(String string, String string2, char[] cArray) {
super(string);
this.add("alias", string2);
if (cArray != null && cArray.length > 0) {
try {
this.add("password", LegacyStorageUtil.encode((String)String.valueOf(cArray)));
}
catch (IOException iOException) {}
}
}
}
@@ -0,0 +1,21 @@
/*
* Decompiled with CFR 0.152.
*/
package com.tridium.platcrypto.daemon.messages;
import com.tridium.platcrypto.daemon.messages.CryptoServletMessage;
public class GetProviderMessage
extends CryptoServletMessage {
public String getAction() {
return "getProvider";
}
public GetProviderMessage() {
}
public GetProviderMessage(String string) {
this.add("name", string);
}
}
@@ -0,0 +1,19 @@
/*
* Decompiled with CFR 0.152.
*/
package com.tridium.platcrypto.daemon.messages;
import com.tridium.platcrypto.daemon.messages.CryptoServletMessage;
public class KeyStoreMessage
extends CryptoServletMessage {
public KeyStoreMessage(String string) {
this.add("keyStoreType", string);
}
public KeyStoreMessage(String string, String string2) {
this.add("keyStoreType", string);
this.add("alias", string2);
}
}
@@ -0,0 +1,54 @@
/*
* Decompiled with CFR 0.152.
*/
package com.tridium.platcrypto.daemon.messages;
import com.tridium.platcrypto.daemon.messages.KeyStoreMessage;
import java.io.OutputStream;
import java.security.cert.X509Certificate;
public class SetCertificateEntryMessage
extends KeyStoreMessage {
private String alias;
private X509Certificate cert;
public String getAction() {
return "setCertificateEntry";
}
public String getMethod() {
return "POST";
}
/*
* 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 : 95->99)] 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.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 SetCertificateEntryMessage(String string, String string2, X509Certificate x509Certificate) {
super(string);
this.add("alias", string2);
this.alias = string2;
this.cert = x509Certificate;
}
}
@@ -0,0 +1,69 @@
/*
* Decompiled with CFR 0.152.
*/
package com.tridium.platcrypto.daemon.messages;
import com.tridium.platcrypto.daemon.messages.KeyStoreMessage;
import java.io.OutputStream;
import java.security.Key;
import java.security.cert.X509Certificate;
public class SetKeyEntryMessage
extends KeyStoreMessage {
private String alias;
private Key key;
private byte[] rawKey;
private char[] password;
private X509Certificate[] chain;
public String getAction() {
return "setKeyEntry";
}
public String getMethod() {
return "POST";
}
/*
* 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 5[TRYBLOCK] [5 : 279->283)] 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.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 SetKeyEntryMessage(String string, String string2, byte[] byArray, X509Certificate[] x509CertificateArray) {
super(string);
this.add("alias", string2);
this.alias = string2;
this.chain = x509CertificateArray;
this.rawKey = byArray;
this.password = null;
}
public SetKeyEntryMessage(String string, String string2, Key key, char[] cArray, X509Certificate[] x509CertificateArray) {
super(string);
this.add("alias", string2);
this.alias = string2;
this.chain = x509CertificateArray;
this.key = key;
this.password = cArray;
}
}
@@ -0,0 +1,24 @@
/*
* Decompiled with CFR 0.152.
*/
package com.tridium.platcrypto.daemon.messages;
import com.tridium.platcrypto.daemon.messages.SetKeyEntryMessage;
import java.security.Key;
import java.security.cert.X509Certificate;
public class SetKeyEntryWithResponseMessage
extends SetKeyEntryMessage {
public String getAction() {
return "setKeyEntryWithResponse";
}
public SetKeyEntryWithResponseMessage(String string, String string2, byte[] byArray, X509Certificate[] x509CertificateArray) {
super(string, string2, byArray, x509CertificateArray);
}
public SetKeyEntryWithResponseMessage(String string, String string2, Key key, char[] cArray, X509Certificate[] x509CertificateArray) {
super(string, string2, key, cArray, x509CertificateArray);
}
}