1 package org.apache.maven.shared.jarsigner;
2
3 /*
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements. See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership. The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the
9 * "License"); you may not use this file except in compliance
10 * with the License. You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing,
15 * software distributed under the License is distributed on an
16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 * KIND, either express or implied. See the License for the
18 * specific language governing permissions and limitations
19 * under the License.
20 */
21
22 import java.io.File;
23
24 /**
25 * Specifies the parameters used to control a jar signer sign operation invocation.
26 *
27 * @author tchemit <chemit@codelutin.com>
28 * @version $Id: JarSignerSignRequest.html 885985 2013-11-09 08:11:31Z tchemit $
29 * @since 1.0
30 */
31 public class JarSignerSignRequest
32 extends AbstractJarSignerRequest
33 {
34 /**
35 * See <a href="http://docs.oracle.com/javase/6/docs/technotes/tools/windows/jarsigner.html#Options">options</a>.
36 */
37 private String keystore;
38
39 /**
40 * See <a href="http://docs.oracle.com/javase/6/docs/technotes/tools/windows/jarsigner.html#Options">options</a>.
41 */
42 private String storepass;
43
44 /**
45 * See <a href="http://docs.oracle.com/javase/6/docs/technotes/tools/windows/jarsigner.html#Options">options</a>.
46 */
47 private String keypass;
48
49 /**
50 * See <a href="http://docs.oracle.com/javase/6/docs/technotes/tools/windows/jarsigner.html#Options">options</a>.
51 */
52 private String sigfile;
53
54 /**
55 * See <a href="http://docs.oracle.com/javase/6/docs/technotes/tools/windows/jarsigner.html#Options">options</a>.
56 */
57 private String storetype;
58
59 /**
60 * See <a href="http://docs.oracle.com/javase/6/docs/technotes/tools/windows/jarsigner.html#Options">options</a>.
61 */
62 private String providerName;
63
64 /**
65 * See <a href="http://docs.oracle.com/javase/6/docs/technotes/tools/windows/jarsigner.html#Options">options</a>.
66 */
67 private String providerClass;
68
69 /**
70 * See <a href="http://docs.oracle.com/javase/6/docs/technotes/tools/windows/jarsigner.html#Options">options</a>.
71 */
72 private String providerArg;
73
74 /**
75 * See <a href="http://docs.oracle.com/javase/6/docs/technotes/tools/windows/jarsigner.html#Options">options</a>.
76 */
77 private String alias;
78
79 /**
80 * See <a href="http://docs.oracle.com/javase/6/docs/technotes/tools/windows/jarsigner.html#Options">options</a>.
81 */
82 private String tsaLocation;
83
84 /**
85 * See <a href="http://docs.oracle.com/javase/6/docs/technotes/tools/windows/jarsigner.html#Options">options</a>.
86 */
87 private String tsaAlias;
88
89 /**
90 * See <a href="http://docs.oracle.com/javase/6/docs/technotes/tools/windows/jarsigner.html#Options">options</a>.
91 */
92 protected File signedjar;
93
94
95 public String getKeystore()
96 {
97 return keystore;
98 }
99
100 public String getStorepass()
101 {
102 return storepass;
103 }
104
105 public String getKeypass()
106 {
107 return keypass;
108 }
109
110 public String getSigfile()
111 {
112 return sigfile;
113 }
114
115 public String getStoretype()
116 {
117 return storetype;
118 }
119
120 public String getProviderName()
121 {
122 return providerName;
123 }
124
125 public String getProviderClass()
126 {
127 return providerClass;
128 }
129
130 public String getProviderArg()
131 {
132 return providerArg;
133 }
134
135 public String getAlias()
136 {
137 return alias;
138 }
139
140 public String getTsaLocation()
141 {
142 return tsaLocation;
143 }
144
145 public String getTsaAlias()
146 {
147 return tsaAlias;
148 }
149
150 public void setKeystore( String keystore )
151 {
152 this.keystore = keystore;
153 }
154
155 public void setStorepass( String storepass )
156 {
157 this.storepass = storepass;
158 }
159
160 public void setKeypass( String keypass )
161 {
162 this.keypass = keypass;
163 }
164
165 public void setSigfile( String sigfile )
166 {
167 this.sigfile = sigfile;
168 }
169
170 public void setStoretype( String storetype )
171 {
172 this.storetype = storetype;
173 }
174
175 public void setProviderName( String providerName )
176 {
177 this.providerName = providerName;
178 }
179
180 public void setProviderClass( String providerClass )
181 {
182 this.providerClass = providerClass;
183 }
184
185 public void setProviderArg( String providerArg )
186 {
187 this.providerArg = providerArg;
188 }
189
190 public void setAlias( String alias )
191 {
192 this.alias = alias;
193 }
194
195 public void setTsaLocation( String tsaLocation )
196 {
197 this.tsaLocation = tsaLocation;
198 }
199
200 public void setTsaAlias( String tsaAlias )
201 {
202 this.tsaAlias = tsaAlias;
203 }
204
205 public File getSignedjar()
206 {
207 return signedjar;
208 }
209
210 public void setSignedjar( File signedjar )
211 {
212 this.signedjar = signedjar;
213 }
214
215 }