Class UntrustedSchemaSourceException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.symphonyoss.symphony.entityjson.EntityJsonException
-
- org.symphonyoss.symphony.entityjson.UntrustedSchemaSourceException
-
- All Implemented Interfaces:
Serializable
public class UntrustedSchemaSourceException extends EntityJsonException
The instance cannot be validated because it refers to a schema from an untrusted source. The EntityJSON validator can operate in an unconstrained mode where it will download referenced schemas from any http or https URL, or a safe mode where it will only download from known hosts. This is because a malicious user could use the schema download as an attack vector. This exception indicates that a reference exists, either in the instance document itself or in a schema referenced from it directly or indirectly, to a URL from a host which is not one of the official registries of EntityJSON schemas.- Author:
- Bruce Skingle
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UntrustedSchemaSourceException(IEntityJsonContext context)UntrustedSchemaSourceException(IEntityJsonContext context, String message)UntrustedSchemaSourceException(IEntityJsonContext context, String message, Throwable cause)UntrustedSchemaSourceException(IEntityJsonContext context, String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)UntrustedSchemaSourceException(IEntityJsonContext context, Throwable cause)
-
Method Summary
-
Methods inherited from class org.symphonyoss.symphony.entityjson.EntityJsonException
getContext
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
UntrustedSchemaSourceException
public UntrustedSchemaSourceException(IEntityJsonContext context, String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)
-
UntrustedSchemaSourceException
public UntrustedSchemaSourceException(IEntityJsonContext context, String message, Throwable cause)
-
UntrustedSchemaSourceException
public UntrustedSchemaSourceException(IEntityJsonContext context, String message)
-
UntrustedSchemaSourceException
public UntrustedSchemaSourceException(IEntityJsonContext context, Throwable cause)
-
UntrustedSchemaSourceException
public UntrustedSchemaSourceException(IEntityJsonContext context)
-
-