Class TrustedApplicationsUtility


  • public class TrustedApplicationsUtility
    extends java.lang.Object
    This singleton class provides the behavior to validate and generate application signature. It reads the clients.properties to keep a list of configured trusted applications.
    Author:
    schowdhury
    • Method Detail

      • validateSignature

        public boolean validateSignature​(java.lang.Object payload,
                                         java.lang.String signature)
        Returns true if the payload and signature is coming from a trusted application, false otherwise
        Parameters:
        payload - payload received from client
        signature - Signature received from client
        Returns:
        true if the payload and signature is coming from a registered application, false otherwise
      • isTrustedApplicationsConfigured

        public boolean isTrustedApplicationsConfigured()
        Return whether trusted applications are configured or not
        Returns:
        true if configured, false otherwise