/* * Decompiled with CFR 0.152. * * Could not load the following classes: * com.tridium.crypto.core.cert.CertUtils * com.tridium.crypto.core.cert.NPKCS10CertificationRequest * com.tridium.crypto.core.io.ICoreKeyStore * javax.baja.log.Log * javax.baja.security.crypto.IKeyStore * javax.baja.sys.BComponent */ package com.tridium.platcrypto.fox; import com.tridium.crypto.core.cert.CertUtils; import com.tridium.crypto.core.cert.NPKCS10CertificationRequest; import com.tridium.crypto.core.io.ICoreKeyStore; import com.tridium.platcrypto.fox.ChannelBase; import java.security.Key; import java.security.KeyStore; import java.security.cert.X509Certificate; import java.util.Date; import java.util.Enumeration; import javax.baja.log.Log; import javax.baja.security.crypto.IKeyStore; import javax.baja.sys.BComponent; /* * Illegal identifiers - consider using --renameillegalidents true */ public class ChannelKeyStore extends ChannelBase implements IKeyStore, ICoreKeyStore { protected static Log log = Log.getLog((String)"crypto"); private boolean isTrustStore; public Enumeration aliases() throws Exception { this.checkChannel(); return this.channel.keyStoreAliases(this.isTrustStore); } public boolean containsAlias(String string) throws Exception { this.checkChannel(); return this.channel.keyStoreContainsAlias(this.isTrustStore, string); } public void deleteEntry(String string) throws Exception { this.checkChannel(); this.channel.keyStoreDeleteEntry(this.isTrustStore, string); } public X509Certificate getCertificate(String string) throws Exception { this.checkChannel(); return this.channel.keyStoreGetCertificate(this.isTrustStore, string); } public String getCertificateAlias(X509Certificate x509Certificate) throws Exception { this.checkChannel(); return this.channel.keyStoreGetCertificateAlias(this.isTrustStore, x509Certificate); } public X509Certificate[] getCertificateChain(String string) throws Exception { this.checkChannel(); return this.channel.keyStoreGetCertificateChain(this.isTrustStore, string); } public Date getCreationDate(String string) throws Exception { this.checkChannel(); return this.channel.keyStoreGetCreationDate(this.isTrustStore, string); } public Key getKey(String string, char[] cArray) throws Exception { this.checkChannel(); return this.channel.keyStoreGetKey(this.isTrustStore, string, cArray); } public boolean isCertificateEntry(String string) throws Exception { this.checkChannel(); return this.channel.keyStoreIsCertificateEntry(this.isTrustStore, string); } public boolean isKeyEntry(String string) throws Exception { this.checkChannel(); return this.channel.keyStoreIsKeyEntry(this.isTrustStore, string); } public void setCertificateEntry(String string, X509Certificate x509Certificate) throws Exception { this.checkChannel(); this.channel.keyStoreSetCertificateEntry(this.isTrustStore, string, x509Certificate); } public void setKeyEntry(String string, byte[] byArray, X509Certificate[] x509CertificateArray) throws Exception { this.checkChannel(); this.channel.keyStoreSetKeyEntry0(this.isTrustStore, string, byArray, x509CertificateArray); } public void setKeyEntry(String string, Key key, char[] cArray, X509Certificate[] x509CertificateArray) throws Exception { this.checkChannel(); this.channel.keyStoreSetKeyEntry1(this.isTrustStore, string, key, cArray, x509CertificateArray); } public int size() throws Exception { this.checkChannel(); return this.channel.keyStoreSize(this.isTrustStore); } public long getLastModified() throws Exception { this.checkChannel(); return 0L; } public void load() throws Exception { this.checkChannel(); } public void save() throws Exception { this.checkChannel(); this.channel.keyStoreSave(this.isTrustStore); } public Enumeration getCertificates() throws Exception { this.checkChannel(); return this.channel.keyStoreGetCertificates(this.isTrustStore); } public String findCertificate(X509Certificate x509Certificate) throws Exception { this.checkChannel(); return this.channel.keyStoreFindCertificate(this.isTrustStore, x509Certificate); } public void deleteEntries(String[] stringArray) throws Exception { this.checkChannel(); this.channel.keyStoreDeleteEntries(this.isTrustStore, stringArray); } public KeyStore getKeyStore() throws Exception { throw new UnsupportedOperationException("can't access raw keystore remotely"); } public int generateSelfSignedCert(String string, String string2, String string3, String string4, String string5, String string6, String string7, Date date, Date date2, int n, int n2, String string8, String string9) throws Exception { this.checkChannel(); String string10 = CertUtils.assembleDN((String)string2, (String)string3, (String)string4, (String)string5, (String)string6, (String)string7); return this.channel.keyStoreGenerateSelfSignedCert(this.isTrustStore, string, string10, date, date2, n, n2, string8, string9); } public int generateSelfSignedCert(String string, String string2, Date date, Date date2, int n, int n2, String string3, String string4) throws Exception { this.checkChannel(); return this.channel.keyStoreGenerateSelfSignedCert(this.isTrustStore, string, string2, date, date2, n, n2, string3, string4); } public int getCertGenerationStatus(int n) throws Exception { return this.channel.keyGetCertGenerationStatus(this.isTrustStore, n); } public NPKCS10CertificationRequest generateCSR(String string, String string2) throws Exception { this.checkChannel(); return this.channel.keyStoreGenerateCSR(this.isTrustStore, string, string2); } public boolean canGenerateCertificate() { return true; } private final /* synthetic */ void this() { this.isTrustStore = false; } public ChannelKeyStore(BComponent bComponent, boolean bl) { super(bComponent); this.this(); this.isTrustStore = bl; } }