1 2 package org.bouncycastle.i18n.filter; 3 4 /** 5 * Wrapper class to mark untrusted input. 6 */ 7 public class UntrustedInput 8 { 9 10 protected Object input; 11 12 /** 13 * Construct a new UntrustedInput instance. 14 * @param input the untrusted input Object 15 */ 16 public UntrustedInput(Object input) 17 { 18 this.input = input; 19 } 20 21 /** 22 * Returns the untrusted input as Object. 23 * @return the <code>input</code> as Object 24 */ 25 public Object getInput() 26 { 27 return input; 28 } 29 30 /** 31 * Returns the untrusted input convertet to a String. 32 * @return the <code>input</code> as String 33 */ 34 public String getString() 35 { 36 return input.toString(); 37 } 38 39 public String toString() 40 { 41 return input.toString(); 42 } 43 44 } 45