Package eu.europa.esig.jws
Class JWSUtils
java.lang.Object
eu.europa.esig.jws.AbstractJWSUtils
eu.europa.esig.jws.JWSUtils
Contains utils for JWS signature validation against JSON schemas
-
Method Summary
Modifier and TypeMethodDescriptionstatic JWSUtils
Returns instance ofJWSUtils
Returns a map of definition objects used for JWS Protected Header validationorg.json.JSONObject
Loads JSON schema for a JSON Protected Header validationReturns a map of definition objects used for JWS validationorg.json.JSONObject
Returns a JSON schema for a root JWS element validationReturns a map of definition objects used for JWS Unprotected Header validationorg.json.JSONObject
Loads JSON schema for a JSON Unprotected Header validationReturns a list of RFC 7515 and RFC 7517 definitionsMethods inherited from class eu.europa.esig.jws.AbstractJWSUtils
getJWSProtectedHeaderSchema, getJWSSchema, getJWSUnprotectedHeaderSchema, loadSchema, parseJson, parseJson, validateAgainstJWSProtectedHeaderSchema, validateAgainstJWSProtectedHeaderSchema, validateAgainstJWSProtectedHeaderSchema, validateAgainstJWSSchema, validateAgainstJWSSchema, validateAgainstJWSSchema, validateAgainstJWSUnprotectedHeaderSchema, validateAgainstJWSUnprotectedHeaderSchema, validateAgainstJWSUnprotectedHeaderSchema, validateAgainstSchema
-
Method Details
-
getInstance
Returns instance ofJWSUtils
- 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 classAbstractJWSUtils
- Returns:
JSONObject
-
getJWSSchemaDefinitions
Description copied from class:AbstractJWSUtils
Returns a map of definition objects used for JWS validation- Specified by:
getJWSSchemaDefinitions
in classAbstractJWSUtils
- 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 classAbstractJWSUtils
- Returns:
JSONObject
-
getJWSProtectedHeaderSchemaDefinitions
Description copied from class:AbstractJWSUtils
Returns a map of definition objects used for JWS Protected Header validation- Specified by:
getJWSProtectedHeaderSchemaDefinitions
in classAbstractJWSUtils
- 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 classAbstractJWSUtils
- Returns:
JSONObject
-
getJWSUnprotectedHeaderSchemaDefinitions
Description copied from class:AbstractJWSUtils
Returns a map of definition objects used for JWS Unprotected Header validation- Specified by:
getJWSUnprotectedHeaderSchemaDefinitions
in classAbstractJWSUtils
- Returns:
- JWS Unprotected Header schema definitions map
-
getRFCDefinitions
Returns a list of RFC 7515 and RFC 7517 definitions- Returns:
- a map of definitions
-