View Javadoc

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  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          return keystore;
88      }
89  
90      public String getStorepass()
91      {
92          return storepass;
93      }
94  
95      public String getKeypass()
96      {
97          return keypass;
98      }
99  
100     public String getSigfile()
101     {
102         return sigfile;
103     }
104 
105     public String getStoretype()
106     {
107         return storetype;
108     }
109 
110     public String getProviderName()
111     {
112         return providerName;
113     }
114 
115     public String getProviderClass()
116     {
117         return providerClass;
118     }
119 
120     public String getProviderArg()
121     {
122         return providerArg;
123     }
124 
125     public String getAlias()
126     {
127         return alias;
128     }
129 
130     public void setKeystore( String keystore )
131     {
132         this.keystore = keystore;
133     }
134 
135     public void setStorepass( String storepass )
136     {
137         this.storepass = storepass;
138     }
139 
140     public void setKeypass( String keypass )
141     {
142         this.keypass = keypass;
143     }
144 
145     public void setSigfile( String sigfile )
146     {
147         this.sigfile = sigfile;
148     }
149 
150     public void setStoretype( String storetype )
151     {
152         this.storetype = storetype;
153     }
154 
155     public void setProviderName( String providerName )
156     {
157         this.providerName = providerName;
158     }
159 
160     public void setProviderClass( String providerClass )
161     {
162         this.providerClass = providerClass;
163     }
164 
165     public void setProviderArg( String providerArg )
166     {
167         this.providerArg = providerArg;
168     }
169 
170     public void setAlias( String alias )
171     {
172         this.alias = alias;
173     }
174 
175     public File getSignedjar()
176     {
177         return signedjar;
178     }
179 
180     public void setSignedjar( File signedjar )
181     {
182         this.signedjar = signedjar;
183     }
184 
185 }