com.github.fge.jsonschema.format.extra
Class Base64FormatAttribute
java.lang.Object
com.github.fge.jsonschema.format.AbstractFormatAttribute
com.github.fge.jsonschema.format.extra.Base64FormatAttribute
- All Implemented Interfaces:
- FormatAttribute
public final class Base64FormatAttribute
- extends AbstractFormatAttribute
Format specifier for an hypothetical base64
format attribute
This implements Base64 as defined in RFC 4648 with one difference: while
the RFC states that excess padding characters (=
) MAY be ignored, it
is chosen here to require that there be at most two, as per Base64 encoding
rules.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static FormatAttribute getInstance()
validate
public void validate(ProcessingReport report,
MessageBundle bundle,
FullData data)
throws ProcessingException
- Description copied from interface:
FormatAttribute
- Validate the instance against this format attribute
- Parameters:
report
- the report to usebundle
- the message bundle to usedata
- the validation data
- Throws:
ProcessingException
- an exception occurs (normally, never for a
format attribute)