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 1541710 2013-11-13 21:01:00Z 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 storepass;
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 keypass;
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 sigfile;
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 storetype;
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 providerName;
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 providerClass;
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 providerArg;
68  
69  
70      /**
71       * See <a href="http://docs.oracle.com/javase/6/docs/technotes/tools/windows/jarsigner.html#Options">options</a>.
72       */
73      private String tsaLocation;
74  
75      /**
76       * See <a href="http://docs.oracle.com/javase/6/docs/technotes/tools/windows/jarsigner.html#Options">options</a>.
77       */
78      private String tsaAlias;
79  
80      /**
81       * See <a href="http://docs.oracle.com/javase/6/docs/technotes/tools/windows/jarsigner.html#Options">options</a>.
82       */
83      protected File signedjar;
84  
85  
86      public String getStorepass()
87      {
88          return storepass;
89      }
90  
91      public String getKeypass()
92      {
93          return keypass;
94      }
95  
96      public String getSigfile()
97      {
98          return sigfile;
99      }
100 
101     public String getStoretype()
102     {
103         return storetype;
104     }
105 
106     public String getProviderName()
107     {
108         return providerName;
109     }
110 
111     public String getProviderClass()
112     {
113         return providerClass;
114     }
115 
116     public String getProviderArg()
117     {
118         return providerArg;
119     }
120 
121 
122     public String getTsaLocation()
123     {
124         return tsaLocation;
125     }
126 
127     public String getTsaAlias()
128     {
129         return tsaAlias;
130     }
131 
132     public void setStorepass( String storepass )
133     {
134         this.storepass = storepass;
135     }
136 
137     public void setKeypass( String keypass )
138     {
139         this.keypass = keypass;
140     }
141 
142     public void setSigfile( String sigfile )
143     {
144         this.sigfile = sigfile;
145     }
146 
147     public void setStoretype( String storetype )
148     {
149         this.storetype = storetype;
150     }
151 
152     public void setProviderName( String providerName )
153     {
154         this.providerName = providerName;
155     }
156 
157     public void setProviderClass( String providerClass )
158     {
159         this.providerClass = providerClass;
160     }
161 
162     public void setProviderArg( String providerArg )
163     {
164         this.providerArg = providerArg;
165     }
166 
167     public void setTsaLocation( String tsaLocation )
168     {
169         this.tsaLocation = tsaLocation;
170     }
171 
172     public void setTsaAlias( String tsaAlias )
173     {
174         this.tsaAlias = tsaAlias;
175     }
176 
177     public File getSignedjar()
178     {
179         return signedjar;
180     }
181 
182     public void setSignedjar( File signedjar )
183     {
184         this.signedjar = signedjar;
185     }
186 
187 }