001 /** 002 * Licensed to the Apache Software Foundation (ASF) under one or more 003 * contributor license agreements. See the NOTICE file distributed with 004 * this work for additional information regarding copyright ownership. 005 * The ASF licenses this file to You under the Apache License, Version 2.0 006 * (the "License"); you may not use this file except in compliance with 007 * the License. You may obtain a copy of the License at 008 * 009 * http://www.apache.org/licenses/LICENSE-2.0 010 * 011 * Unless required by applicable law or agreed to in writing, software 012 * distributed under the License is distributed on an "AS IS" BASIS, 013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 014 * See the License for the specific language governing permissions and 015 * limitations under the License. 016 */ 017 package org.apache.geronimo.tomcat; 018 019 import org.apache.geronimo.management.geronimo.SecureConnector; 020 021 /** 022 * @version $Rev: 500038 $ $Date: 2007-01-25 18:01:46 -0500 (Thu, 25 Jan 2007) $ 023 */ 024 public interface TomcatSecureConnector extends SecureConnector { 025 /** 026 * Gets the name of the keystore file that holds the trusted CA certificates 027 * used for client certificate authentication. 028 * This is relative to the Geronimo home directory. 029 */ 030 public String getTruststoreFileName(); 031 /** 032 * Sets the name of the keystore file that holds the trusted CA certificates 033 * used for client certificate authentication. 034 * This is relative to the Geronimo home directory. 035 */ 036 public void setTruststoreFileName(String name); 037 /** 038 * Sets the password used to verify integrity of truststore. 039 */ 040 public void setTruststorePassword(String password); 041 /** 042 * Gets the format of the entries in the keystore. The default format for 043 * Java keystores is JKS, though some connector implementations support 044 * PCKS12 (and possibly other formats). 045 */ 046 public String getTruststoreType(); 047 /** 048 * Sets the format of the entries in the keystore. The default format for 049 * Java keystores is JKS, though some connector implementations support 050 * PCKS12 (and possibly other formats). 051 */ 052 public void setTruststoreType(String type); 053 054 /** 055 * Gets a comma seperated list of the encryption ciphers that may be used. If not 056 * specified, then any available cipher may be used. 057 */ 058 public String getCiphers(); 059 060 /** 061 * Sets a comma seperated list of the encryption ciphers that may be used. If not 062 * specified, then any available cipher may be used. 063 */ 064 public void setCiphers(String ciphers); 065 066 /** 067 * Sets a keyAlias if one is being used 068 * @param keyAlias 069 */ 070 public void setKeyAlias(String keyAlias); 071 072 /** 073 * Gets the key alias 074 * @return key alias 075 */ 076 public String getKeyAlias(); 077 }