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 1575435 2014-03-07 22:34:04Z tchemit $
29   * @since 1.0
30   */
31  public class JarSignerSignRequest
32      extends AbstractJarSignerRequest
33  {
34  
35      /**
36       * See <a href="http://docs.oracle.com/javase/6/docs/technotes/tools/windows/jarsigner.html#Options">options</a>.
37       */
38      private String keypass;
39  
40      /**
41       * See <a href="http://docs.oracle.com/javase/6/docs/technotes/tools/windows/jarsigner.html#Options">options</a>.
42       */
43      private String sigfile;
44  
45      /**
46       * See <a href="http://docs.oracle.com/javase/6/docs/technotes/tools/windows/jarsigner.html#Options">options</a>.
47       */
48      private String tsaLocation;
49  
50      /**
51       * See <a href="http://docs.oracle.com/javase/6/docs/technotes/tools/windows/jarsigner.html#Options">options</a>.
52       */
53      private String tsaAlias;
54  
55      /**
56       * See <a href="http://docs.oracle.com/javase/6/docs/technotes/tools/windows/jarsigner.html#Options">options</a>.
57       */
58      protected File signedjar;
59  
60  
61      public String getKeypass()
62      {
63          return keypass;
64      }
65  
66      public String getSigfile()
67      {
68          return sigfile;
69      }
70  
71      public String getTsaLocation()
72      {
73          return tsaLocation;
74      }
75  
76      public String getTsaAlias()
77      {
78          return tsaAlias;
79      }
80  
81      public void setKeypass( String keypass )
82      {
83          this.keypass = keypass;
84      }
85  
86      public void setSigfile( String sigfile )
87      {
88          this.sigfile = sigfile;
89      }
90  
91      public void setTsaLocation( String tsaLocation )
92      {
93          this.tsaLocation = tsaLocation;
94      }
95  
96      public void setTsaAlias( String tsaAlias )
97      {
98          this.tsaAlias = tsaAlias;
99      }
100 
101     public File getSignedjar()
102     {
103         return signedjar;
104     }
105 
106     public void setSignedjar( File signedjar )
107     {
108         this.signedjar = signedjar;
109     }
110 
111 }