Class SecureUriCreatorAndVerifier

java.lang.Object
com.sdl.delivery.security.uri.processor.SecureUriCreatorAndVerifier

public class SecureUriCreatorAndVerifier extends Object
Creates a secured valid URI by given string URI. It checks the given URI before creating by our SSRF rules, defined in UriRestrictions.
  • Constructor Details

    • SecureUriCreatorAndVerifier

      public SecureUriCreatorAndVerifier()
  • Method Details

    • createUri

      public URI createUri(String possibleUrl)
      Verifies given URI and creates URI if everything is OK (it's secured). Otherwise it throws an exception. Note: uri should be in format schema://uri(:port)?/ or schema://uri(:port)? If it differs it may fail checking.
      Parameters:
      possibleUrl -
      Returns:
      URI created by given param