package com.l7tech.server;

import com.l7tech.gateway.common.security.keystore.SsgKeyEntry;
import com.l7tech.objectmodel.FindException;
import com.l7tech.objectmodel.Goid;
import com.l7tech.util.Pair;
import java.io.IOException;
import java.security.KeyStoreException;
import javax.net.ssl.KeyManager;

public class DefaultKeyCacheImpl implements DefaultKeyCache {
   private final DefaultKey a;

   public DefaultKeyCacheImpl(DefaultKey var1) {
      this.a = var1;
   }

   @Override
   public SsgKeyEntry getSslInfo() throws IOException {
      return this.getServerSslInfo();
   }

   @Override
   public SsgKeyEntry getServerSslInfo() throws IOException {
      return this.a.getServerSslInfo();
   }

   @Override
   public SsgKeyEntry getClientSslInfo() throws IOException {
      return this.a.getClientSslInfo();
   }

   @Override
   public SsgKeyEntry getCaInfo() {
      return this.a.getCaInfo();
   }

   @Override
   public SsgKeyEntry getAuditSigningInfo() {
      return this.a.getAuditSigningInfo();
   }

   @Override
   public SsgKeyEntry getAuditViewerInfo() {
      return this.a.getAuditViewerInfo();
   }

   @Override
   public Pair<Goid, String> getAuditViewerAlias() {
      return this.a.getAuditViewerAlias();
   }

   @Override
   public KeyManager[] getSslKeyManagers() {
      return this.a.getSslKeyManagers();
   }

   @Override
   public KeyManager[] getServerSslKeyManagers() {
      return this.a.getServerSslKeyManagers();
   }

   @Override
   public KeyManager[] getClientSslKeyManagers() {
      return this.a.getClientSslKeyManagers();
   }

   @Override
   public SsgKeyEntry lookupKeyByKeyAlias(Pair<String, Goid> var1) throws FindException, KeyStoreException, IOException {
      return this.a.lookupKeyByKeyAlias((String)var1.getKey(), (Goid)var1.getValue());
   }
}
