Class JWSUtils


public final class JWSUtils extends AbstractJWSUtils
Contains utils for JWS signature validation against JSON schemas
  • Method Details

    • getInstance

      public static JWSUtils getInstance()
      Returns instance of JWSUtils
      Returns:
      JWSUtils
    • getJWSSchemaJSON

      public org.json.JSONObject getJWSSchemaJSON()
      Description copied from class: AbstractJWSUtils
      Returns a JSON schema for a root JWS element validation
      Specified by:
      getJWSSchemaJSON in class AbstractJWSUtils
      Returns:
      JSONObject
    • getJWSSchemaDefinitions

      public Map<URI,org.json.JSONObject> getJWSSchemaDefinitions()
      Description copied from class: AbstractJWSUtils
      Returns a map of definition objects used for JWS validation
      Specified by:
      getJWSSchemaDefinitions in class AbstractJWSUtils
      Returns:
      JWS schema definitions map
    • getJWSProtectedHeaderSchemaJSON

      public org.json.JSONObject getJWSProtectedHeaderSchemaJSON()
      Description copied from class: AbstractJWSUtils
      Loads JSON schema for a JSON Protected Header validation
      Specified by:
      getJWSProtectedHeaderSchemaJSON in class AbstractJWSUtils
      Returns:
      JSONObject
    • getJWSProtectedHeaderSchemaDefinitions

      public Map<URI,org.json.JSONObject> getJWSProtectedHeaderSchemaDefinitions()
      Description copied from class: AbstractJWSUtils
      Returns a map of definition objects used for JWS Protected Header validation
      Specified by:
      getJWSProtectedHeaderSchemaDefinitions in class AbstractJWSUtils
      Returns:
      JWS Protected Header schema definitions map
    • getJWSUnprotectedHeaderSchemaJSON

      public org.json.JSONObject getJWSUnprotectedHeaderSchemaJSON()
      Description copied from class: AbstractJWSUtils
      Loads JSON schema for a JSON Unprotected Header validation
      Specified by:
      getJWSUnprotectedHeaderSchemaJSON in class AbstractJWSUtils
      Returns:
      JSONObject
    • getJWSUnprotectedHeaderSchemaDefinitions

      public Map<URI,org.json.JSONObject> getJWSUnprotectedHeaderSchemaDefinitions()
      Description copied from class: AbstractJWSUtils
      Returns a map of definition objects used for JWS Unprotected Header validation
      Specified by:
      getJWSUnprotectedHeaderSchemaDefinitions in class AbstractJWSUtils
      Returns:
      JWS Unprotected Header schema definitions map
    • getRFCDefinitions

      public Map<URI,org.json.JSONObject> getRFCDefinitions()
      Returns a list of RFC 7515 and RFC 7517 definitions
      Returns:
      a map of definitions