75 lines
2.3 KiB
Java
75 lines
2.3 KiB
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*
|
|
* Could not load the following classes:
|
|
* com.tridium.crypto.core.io.ICoreCryptoManager
|
|
* javax.baja.security.crypto.CertManagerFactory
|
|
* javax.baja.security.crypto.ICryptoManagerEx
|
|
* javax.baja.sys.BIcon
|
|
* javax.baja.sys.Sys
|
|
* javax.baja.sys.Type
|
|
* javax.baja.workbench.tool.BWbNavNodeTool
|
|
*/
|
|
package com.tridium.platcrypto.ui;
|
|
|
|
import com.tridium.crypto.core.io.ICoreCryptoManager;
|
|
import com.tridium.platcrypto.core.ICryptoManagerProvider;
|
|
import com.tridium.platcrypto.core.IExtCryptoManager;
|
|
import javax.baja.security.crypto.CertManagerFactory;
|
|
import javax.baja.security.crypto.ICryptoManagerEx;
|
|
import javax.baja.sys.BIcon;
|
|
import javax.baja.sys.Sys;
|
|
import javax.baja.sys.Type;
|
|
import javax.baja.workbench.tool.BWbNavNodeTool;
|
|
|
|
/*
|
|
* Illegal identifiers - consider using --renameillegalidents true
|
|
*/
|
|
public class BCertManagerTool
|
|
extends BWbNavNodeTool
|
|
implements ICryptoManagerProvider {
|
|
public static final Type TYPE;
|
|
private static final BIcon icon;
|
|
static /* synthetic */ Class class$com$tridium$platcrypto$ui$BCertManagerTool;
|
|
|
|
public Type getType() {
|
|
return TYPE;
|
|
}
|
|
|
|
public ICryptoManagerEx getCryptoManager() throws Exception {
|
|
return CertManagerFactory.getInstanceEx();
|
|
}
|
|
|
|
public ICoreCryptoManager getCoreCryptoManager() throws Exception {
|
|
IExtCryptoManager iExtCryptoManager = (IExtCryptoManager)this.getCryptoManager();
|
|
return iExtCryptoManager.getCoreCryptoManager();
|
|
}
|
|
|
|
public BIcon getIcon() {
|
|
return icon;
|
|
}
|
|
|
|
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$BCertManagerTool;
|
|
if (clazz == null) {
|
|
clazz = class$com$tridium$platcrypto$ui$BCertManagerTool = BCertManagerTool.class("[Lcom.tridium.platcrypto.ui.BCertManagerTool;", false);
|
|
}
|
|
TYPE = Sys.loadType((Class)clazz);
|
|
icon = BIcon.std((String)"files/certificate.png");
|
|
}
|
|
}
|
|
|