All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bouncycastle.i18n.filter.UntrustedInput Maven / Gradle / Ivy

There is a newer version: 1.70_1
Show newest version

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();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy