/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.gateway.common.security.keystore.SsgKeyEntry
 *  com.l7tech.objectmodel.FindException
 *  com.l7tech.objectmodel.Goid
 *  com.l7tech.util.Pair
 */
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.server.DefaultKey;
import com.l7tech.server.DefaultKeyCache;
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 defaultKey) {
        this.a = defaultKey;
    }

    @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> pair) throws FindException, KeyStoreException, IOException {
        return this.a.lookupKeyByKeyAlias((String)pair.getKey(), (Goid)pair.getValue());
    }
}

