Class UntrustedInput

  • Direct Known Subclasses:
    UntrustedUrlInput

    public class UntrustedInput
    extends java.lang.Object
    Wrapper class to mark untrusted input.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.Object input  
    • Constructor Summary

      Constructors 
      Constructor Description
      UntrustedInput​(java.lang.Object input)
      Construct a new UntrustedInput instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getInput()
      Returns the untrusted input as Object.
      java.lang.String getString()
      Returns the untrusted input convertet to a String.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • input

        protected java.lang.Object input
    • Constructor Detail

      • UntrustedInput

        public UntrustedInput​(java.lang.Object input)
        Construct a new UntrustedInput instance.
        Parameters:
        input - the untrusted input Object
    • Method Detail

      • getInput

        public java.lang.Object getInput()
        Returns the untrusted input as Object.
        Returns:
        the input as Object
      • getString

        public java.lang.String getString()
        Returns the untrusted input convertet to a String.
        Returns:
        the input as String
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object