View Javadoc
1   /*
2    * Copyright 2012 Brian Matthews
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *     http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  
17  package com.btmatthews.maven.plugins.crx;
18  
19  import java.io.File;
20  
21  import org.codehaus.plexus.archiver.Archiver;
22  
23  /**
24   * This archiver packages and signs a Google Chrome Extension.
25   *
26   * @author <a href="mailto:brian@btmatthews.com">Brian Matthews</a>
27   * @since 1.1.0
28   */
29  public interface CRXArchiver extends Archiver {
30  
31      /**
32       * Used to inject the location of the .pem file containing the public/private key pair.
33       *
34       * @param file The location of the .pem file.
35       */
36      void setPemFile(File file);
37  
38      /**
39       * Used to inject the password that was used to secure the .pem file.
40       *
41       * @param password The password.
42       */
43      void setPemPassword(String password);
44  
45      /**
46       * Used to inject the signature helper that is used to to sign the ZIP archive.
47       *
48       * @param helper The helper.
49       */
50      void setSignatureHelper(SignatureHelper helper);
51  
52      /**
53       * Used to inject the archive helper that is used to output the CRX archive.
54       *
55       * @param helper The helper.
56       */
57      void setArchiveHelper(ArchiveHelper helper);
58  }