01: package org.bouncycastle.i18n.filter;
02:
03: /**
04: * Wrapper class to mark untrusted input.
05: */
06: public class UntrustedInput {
07:
08: protected Object input;
09:
10: /**
11: * Construct a new UntrustedInput instance.
12: * @param input the untrusted input Object
13: */
14: public UntrustedInput(Object input) {
15: this .input = input;
16: }
17:
18: /**
19: * Returns the untrusted input as Object.
20: * @return the <code>input</code> as Object
21: */
22: public Object getInput() {
23: return input;
24: }
25:
26: /**
27: * Returns the untrusted input convertet to a String.
28: * @return the <code>input</code> as String
29: */
30: public String getString() {
31: return input.toString();
32: }
33:
34: public String toString() {
35: return input.toString();
36: }
37:
38: }
|