Class AbstractJWSUtils

java.lang.Object
eu.europa.esig.jws.AbstractJWSUtils
Direct Known Subclasses:
JWSProtectedHeaderUtils, JWSUnprotectedHeaderUtils, JWSUtils

public abstract class AbstractJWSUtils extends Object
Abstract class for JWS signature validation against JSON schemas
  • Field Details

    • RFC7515_SCHEMA_LOCATION

      protected static final String RFC7515_SCHEMA_LOCATION
      The RFC 7515 schema of definitions
      See Also:
    • RFC7515_SCHEMA_URI

      protected static final String RFC7515_SCHEMA_URI
      The RFC 7515 schema name URI
      See Also:
    • RFC7517_SCHEMA_LOCATION

      protected static final String RFC7517_SCHEMA_LOCATION
      The RFC 7517 schema of definitions
      See Also:
    • RFC7517_SCHEMA_URI

      protected static final String RFC7517_SCHEMA_URI
      The RFC 7517 schema name URI
      See Also:
  • Constructor Details

    • AbstractJWSUtils

      protected AbstractJWSUtils()
      Default constructor
  • Method Details

    • getRFCDefinitions

      public Map<URI,String> getRFCDefinitions()
      Gets a map of RFC definitions
      Returns:
      a map between schema URI's and JSON schema file locations
    • validateAgainstSchema

      public List<String> validateAgainstSchema(InputStream arg0)
    • validateAgainstSchema

      public List<String> validateAgainstSchema(String arg0)
    • validateAgainstSchema

      public List<String> validateAgainstSchema(eu.europa.esig.json.JsonObjectWrapper arg0)
    • validateAgainstSchema

      public List<String> validateAgainstSchema(com.github.erosb.jsonsKema.JsonObject arg0)
    • getSchema

      protected com.github.erosb.jsonsKema.Schema getSchema()
    • getSchemaURI

      public abstract String getSchemaURI()
    • getSchemaDefinitions

      public abstract Map<URI,String> getSchemaDefinitions()
    • getValidator

      protected com.github.erosb.jsonsKema.Validator getValidator()
    • getJSONSchemaDefinitions

      public Map<URI,String> getJSONSchemaDefinitions()
    • loadSchema

      protected com.github.erosb.jsonsKema.Schema loadSchema(String arg0, Map<URI,String> arg1)