Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
JarSignerSignRequest |
|
| 1.0;1 |
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.java 1195511 2011-10-31 15:13:49Z olamy $ | |
29 | * @since 1.0 | |
30 | */ | |
31 | 2 | public class JarSignerSignRequest |
32 | extends AbstractJarSignerRequest | |
33 | { | |
34 | /** | |
35 | * See <a href="http://java.sun.com/javase/6/docs/technotes/tools/windows/jarsigner.html#Options">options</a>. | |
36 | */ | |
37 | private String keystore; | |
38 | ||
39 | /** | |
40 | * See <a href="http://java.sun.com/javase/6/docs/technotes/tools/windows/jarsigner.html#Options">options</a>. | |
41 | */ | |
42 | private String storepass; | |
43 | ||
44 | /** | |
45 | * See <a href="http://java.sun.com/javase/6/docs/technotes/tools/windows/jarsigner.html#Options">options</a>. | |
46 | */ | |
47 | private String keypass; | |
48 | ||
49 | /** | |
50 | * See <a href="http://java.sun.com/javase/6/docs/technotes/tools/windows/jarsigner.html#Options">options</a>. | |
51 | */ | |
52 | private String sigfile; | |
53 | ||
54 | /** | |
55 | * See <a href="http://java.sun.com/javase/6/docs/technotes/tools/windows/jarsigner.html#Options">options</a>. | |
56 | */ | |
57 | private String storetype; | |
58 | ||
59 | /** | |
60 | * See <a href="http://java.sun.com/javase/6/docs/technotes/tools/windows/jarsigner.html#Options">options</a>. | |
61 | */ | |
62 | private String providerName; | |
63 | ||
64 | /** | |
65 | * See <a href="http://java.sun.com/javase/6/docs/technotes/tools/windows/jarsigner.html#Options">options</a>. | |
66 | */ | |
67 | private String providerClass; | |
68 | ||
69 | /** | |
70 | * See <a href="http://java.sun.com/javase/6/docs/technotes/tools/windows/jarsigner.html#Options">options</a>. | |
71 | */ | |
72 | private String providerArg; | |
73 | ||
74 | /** | |
75 | * See <a href="http://java.sun.com/javase/6/docs/technotes/tools/windows/jarsigner.html#Options">options</a>. | |
76 | */ | |
77 | private String alias; | |
78 | ||
79 | /** | |
80 | * See <a href="http://java.sun.com/javase/6/docs/technotes/tools/windows/jarsigner.html#Options">options</a>. | |
81 | */ | |
82 | protected File signedjar; | |
83 | ||
84 | ||
85 | public String getKeystore() | |
86 | { | |
87 | 2 | return keystore; |
88 | } | |
89 | ||
90 | public String getStorepass() | |
91 | { | |
92 | 2 | return storepass; |
93 | } | |
94 | ||
95 | public String getKeypass() | |
96 | { | |
97 | 2 | return keypass; |
98 | } | |
99 | ||
100 | public String getSigfile() | |
101 | { | |
102 | 2 | return sigfile; |
103 | } | |
104 | ||
105 | public String getStoretype() | |
106 | { | |
107 | 2 | return storetype; |
108 | } | |
109 | ||
110 | public String getProviderName() | |
111 | { | |
112 | 2 | return providerName; |
113 | } | |
114 | ||
115 | public String getProviderClass() | |
116 | { | |
117 | 2 | return providerClass; |
118 | } | |
119 | ||
120 | public String getProviderArg() | |
121 | { | |
122 | 2 | return providerArg; |
123 | } | |
124 | ||
125 | public String getAlias() | |
126 | { | |
127 | 2 | return alias; |
128 | } | |
129 | ||
130 | public void setKeystore( String keystore ) | |
131 | { | |
132 | 2 | this.keystore = keystore; |
133 | 2 | } |
134 | ||
135 | public void setStorepass( String storepass ) | |
136 | { | |
137 | 2 | this.storepass = storepass; |
138 | 2 | } |
139 | ||
140 | public void setKeypass( String keypass ) | |
141 | { | |
142 | 2 | this.keypass = keypass; |
143 | 2 | } |
144 | ||
145 | public void setSigfile( String sigfile ) | |
146 | { | |
147 | 0 | this.sigfile = sigfile; |
148 | 0 | } |
149 | ||
150 | public void setStoretype( String storetype ) | |
151 | { | |
152 | 0 | this.storetype = storetype; |
153 | 0 | } |
154 | ||
155 | public void setProviderName( String providerName ) | |
156 | { | |
157 | 0 | this.providerName = providerName; |
158 | 0 | } |
159 | ||
160 | public void setProviderClass( String providerClass ) | |
161 | { | |
162 | 0 | this.providerClass = providerClass; |
163 | 0 | } |
164 | ||
165 | public void setProviderArg( String providerArg ) | |
166 | { | |
167 | 0 | this.providerArg = providerArg; |
168 | 0 | } |
169 | ||
170 | public void setAlias( String alias ) | |
171 | { | |
172 | 2 | this.alias = alias; |
173 | 2 | } |
174 | ||
175 | public File getSignedjar() | |
176 | { | |
177 | 2 | return signedjar; |
178 | } | |
179 | ||
180 | public void setSignedjar( File signedjar ) | |
181 | { | |
182 | 2 | this.signedjar = signedjar; |
183 | 2 | } |
184 | ||
185 | } |