Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Utility method to retrieve the ApplicationContext of the system

getCsrfTokenName
public static java.lang.String getCsrfTokenName()

Returns the name of the CRSF token

getCsrfTokenValue
public static java.lang.String getCsrfTokenValue(javax.servlet.http.HttpServletRequest request)

Returns the value of the CRSF token in the request

getDataEncryption
public static org.joget.commons.util.DataEncryption getDataEncryption()

Gets the data encryption implementation

getDomainName
public static java.lang.String getDomainName(java.lang.String url)

Gets the domain name from a given URL

getNonceGenerator
public static org.joget.commons.util.NonceGenerator getNonceGenerator()

...

Check the content is a wrapped in a security envelop if data encryption implementation is exist

isAllowedDomain
public static boolean isAllowedDomain(java.lang.String domain, java.util.List<java.lang.String> whitelist)

Verify the domain name against a whitelist

setDataEncryption
public void setDataEncryption(org.joget.commons.util.DataEncryption deImpl)

...