org.bouncycastle.i18n.filter.UntrustedInput Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bcprov-jdk15on Show documentation
Show all versions of bcprov-jdk15on Show documentation
The Bouncy Castle Crypto package is a Java implementation of cryptographic algorithms. This jar contains JCE provider and lightweight API for the Bouncy Castle Cryptography APIs for JDK 1.5 and up.
package org.bouncycastle.i18n.filter;
/**
* Wrapper class to mark untrusted input.
*/
public class UntrustedInput
{
protected Object input;
/**
* Construct a new UntrustedInput instance.
* @param input the untrusted input Object
*/
public UntrustedInput(Object input)
{
this.input = input;
}
/**
* Returns the untrusted input as Object.
* @return the input
as Object
*/
public Object getInput()
{
return input;
}
/**
* Returns the untrusted input convertet to a String.
* @return the input
as String
*/
public String getString()
{
return input.toString();
}
public String toString()
{
return input.toString();
}
}