Class SecureUriCreatorAndVerifier
java.lang.Object
com.sdl.delivery.security.uri.processor.SecureUriCreatorAndVerifier
Creates a secured valid URI by given string URI. It checks the given URI before creating by our SSRF rules,
defined in UriRestrictions.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SecureUriCreatorAndVerifier
public SecureUriCreatorAndVerifier()
-
-
Method Details
-
createUri
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
-