Class Utilities


  • @Component
    public class Utilities
    extends Object
    • Field Detail

      • objectMapper

        public com.fasterxml.jackson.databind.ObjectMapper objectMapper
    • Constructor Detail

      • Utilities

        public Utilities()
    • Method Detail

      • getTemplate

        public org.json.simple.JSONObject getTemplate()
                                               throws com.fasterxml.jackson.core.JsonParseException,
                                                      com.fasterxml.jackson.databind.JsonMappingException,
                                                      IOException
        Throws:
        com.fasterxml.jackson.core.JsonParseException
        com.fasterxml.jackson.databind.JsonMappingException
        IOException
      • getEvent

        public com.fasterxml.jackson.databind.JsonNode getEvent​(String requestId,
                                                                String individualId)
                                                         throws com.fasterxml.jackson.core.JsonParseException,
                                                                com.fasterxml.jackson.databind.JsonMappingException,
                                                                IOException
        Throws:
        com.fasterxml.jackson.core.JsonParseException
        com.fasterxml.jackson.databind.JsonMappingException
        IOException
      • getVC

        public com.fasterxml.jackson.databind.JsonNode getVC​(String requestId)
                                                      throws com.fasterxml.jackson.core.JsonParseException,
                                                             com.fasterxml.jackson.databind.JsonMappingException,
                                                             IOException
        Throws:
        com.fasterxml.jackson.core.JsonParseException
        com.fasterxml.jackson.databind.JsonMappingException
        IOException
      • getDecryptedVC

        public com.fasterxml.jackson.databind.JsonNode getDecryptedVC​(String requestId)
                                                               throws com.fasterxml.jackson.core.JsonParseException,
                                                                      com.fasterxml.jackson.databind.JsonMappingException,
                                                                      IOException
        Throws:
        com.fasterxml.jackson.core.JsonParseException
        com.fasterxml.jackson.databind.JsonMappingException
        IOException
      • getJson

        public String getJson​(String configServerFileStorageURL,
                              String uri)
        Gets the json.
        Parameters:
        configServerFileStorageURL - the config server file storage URL
        uri - the uri
        Returns:
        the json
      • getPrintTextFileJson

        public String getPrintTextFileJson​(String configServerFileStorageURL,
                                           String uri)
      • getIdentityMappingJson

        public String getIdentityMappingJson​(String configServerFileStorageURL,
                                             String uri)
      • getRegistrationProcessorMappingJson

        public org.json.simple.JSONObject getRegistrationProcessorMappingJson()
                                                                       throws IOException
        Gets registration processor mapping json from config and maps to RegistrationProcessorIdentity java class.
        Returns:
        the registration processor identity json
        Throws:
        IOException - Signals that an I/O exception has occurred.