1 package org.codehaus.mojo.keytool.requests; 2 3 /* 4 * Copyright 2005-2013 The Codehaus 5 * 6 * Licensed under the Apache License, Version 2.0 (the "License" ); 7 * you may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an "AS IS" BASIS, 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17 */ 18 19 /** 20 * Request to export a certificate using the KeyTool tool. 21 * 22 * @author tchemit 23 * @since 1.1 24 */ 25 public class KeyToolExportCertificateRequest 26 extends AbstractKeyToolRequestWithKeyStoreAndAliasParameters 27 { 28 29 /** 30 * Output in RFC style. 31 * See <a href="http://docs.oracle.com/javase/1.5.0/docs/tooldocs/windows/keytool.html#Commands">options</a>. 32 */ 33 private boolean rfc; 34 35 /** 36 * Output file name. 37 * See <a href="http://docs.oracle.com/javase/1.5.0/docs/tooldocs/windows/keytool.html#Commands">options</a>. 38 */ 39 private String file; 40 41 /** 42 * Gets the value of the {@link #rfc} field. 43 * 44 * @return the value of the {@link #rfc} field 45 */ 46 public boolean isRfc() 47 { 48 return rfc; 49 } 50 51 /** 52 * <p>Setter for the field <code>rfc</code>.</p> 53 * 54 * @param rfc value of the field {@link #rfc} to set 55 */ 56 public void setRfc( boolean rfc ) 57 { 58 this.rfc = rfc; 59 } 60 61 /** 62 * Gets the value of the {@link #file} field. 63 * 64 * @return the value of the {@link #file} field 65 */ 66 public String getFile() 67 { 68 return file; 69 } 70 71 /** 72 * <p>Setter for the field <code>file</code>.</p> 73 * 74 * @param file value of the field {@link #file} to set 75 */ 76 public void setFile( String file ) 77 { 78 this.file = file; 79 } 80 }