1 /* 2 * Copyright (c) 2024-2024 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 package com.ohos.entity; 17 18 import com.ohos.hapsigntool.entity.Options; 19 import com.ohos.hapsigntool.error.ParamException; 20 21 /** 22 * VerifyProfileParameters. 23 * 24 * @since 2024/04/06 25 */ 26 public class VerifyProfileParameters implements Parameters { 27 /** 28 * signed Provision Profile file, p7b format, required fields 29 */ 30 private String inFile; 31 32 /** 33 * Verification result file, json format, optional 34 */ 35 private String outFile; 36 37 @Override toOptions()38 public Options toOptions() throws ParamException { 39 Options options = new Options(); 40 if (inFile == null) { 41 throw new ParamException(Options.IN_FILE); 42 } 43 options.put(Options.IN_FILE, inFile); 44 45 if (outFile != null) { 46 options.put(Options.OUT_FILE, outFile); 47 } 48 return options; 49 } 50 getInFile()51 public String getInFile() { 52 return inFile; 53 } 54 setInFile(String inFile)55 public void setInFile(String inFile) { 56 this.inFile = inFile; 57 } 58 getOutFile()59 public String getOutFile() { 60 return outFile; 61 } 62 setOutFile(String outFile)63 public void setOutFile(String outFile) { 64 this.outFile = outFile; 65 } 66 } 67