001: /**
002: * JOnAS: Java(TM) Open Application Server
003: * Copyright (C) 2006 Bull S.A.S.
004: * Contact: jonas-team@objectweb.org
005: *
006: * This library is free software; you can redistribute it and/or
007: * modify it under the terms of the GNU Lesser General Public
008: * License as published by the Free Software Foundation; either
009: * version 2.1 of the License, or any later version.
010: *
011: * This library is distributed in the hope that it will be useful,
012: * but WITHOUT ANY WARRANTY; without even the implied warranty of
013: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
014: * Lesser General Public License for more details.
015: *
016: * You should have received a copy of the GNU Lesser General Public
017: * License along with this library; if not, write to the Free Software
018: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
019: * USA
020: *
021: * --------------------------------------------------------------------------
022: * $Id: Https.java 7939 2006-01-25 17:35:15Z sauthieg $
023: * --------------------------------------------------------------------------
024: */package org.objectweb.jonas.ant.jonasbase.web;
025:
026: /**
027: * Configure an HTTPS Connector for Tomcat/Jetty
028: *
029: *
030: * @author Guillaume Sauthier
031: */
032: public class Https {
033:
034: /**
035: * Sun VM name
036: */
037: public static final String SUN_VM = "sun";
038:
039: /**
040: * IBM VM name
041: */
042: public static final String IBM_VM = "ibm";
043:
044: /**
045: * Default VM name
046: */
047: private static final String DEFAULT_VM = SUN_VM;
048:
049: /**
050: * Default HTTPS Port
051: */
052: public static final String DEFAULT_PORT = "9043";
053:
054: /**
055: * user specified port value
056: */
057: private String port = DEFAULT_PORT;
058:
059: /**
060: * keystore filename
061: */
062: private String keystoreFile = null;
063:
064: /**
065: * keystore password
066: */
067: private String keystorePass = null;
068:
069: /**
070: * key password (only for Jetty)
071: */
072: private String keyPassword = null;
073:
074: /**
075: * Targeted VM (Only used for Jetty HTTPS Listener)
076: */
077: private String vm = DEFAULT_VM;
078:
079: /**
080: * @return Returns the keystore.
081: */
082: public String getKeystoreFile() {
083: return keystoreFile;
084: }
085:
086: /**
087: * @param keystore The keystore to set.
088: */
089: public void setKeystoreFile(String keystore) {
090: this .keystoreFile = keystore;
091: }
092:
093: /**
094: * @return Returns the password.
095: */
096: public String getKeystorePass() {
097: return keystorePass;
098: }
099:
100: /**
101: * @param password The password to set.
102: */
103: public void setKeystorePass(String password) {
104: this .keystorePass = password;
105: }
106:
107: /**
108: * @return Returns the port.
109: */
110: public String getPort() {
111: return port;
112: }
113:
114: /**
115: * @param port The port to set.
116: */
117: public void setPort(String port) {
118: this .port = port;
119: }
120:
121: /**
122: * @return Returns the vm.
123: */
124: public String getVm() {
125: return vm;
126: }
127:
128: /**
129: * @param vm The vm to set.
130: */
131: public void setVm(String vm) {
132: this .vm = vm;
133: }
134:
135: /**
136: * @return Returns the keyPassword.
137: */
138: public String getKeyPassword() {
139: return keyPassword;
140: }
141:
142: /**
143: * @param keyPassword The keyPassword to set.
144: */
145: public void setKeyPassword(String keyPassword) {
146: this.keyPassword = keyPassword;
147: }
148: }
|