Package ddf.security.samlp.impl
Class HtmlResponseTemplate
java.lang.Object
ddf.security.samlp.impl.HtmlResponseTemplate
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetPostPage(String targetUrl, SamlProtocol.Type type, String samlValue, String relayState) Gets a Form Submit page with containing the specified information.static StringgetRedirectPage(String targetUrl) Gets a Redirect page containing the specified information.
-
Method Details
-
getPostPage
public static String getPostPage(String targetUrl, SamlProtocol.Type type, String samlValue, String relayState) Gets a Form Submit page with containing the specified information. Will turn any null Strings into blank Strings.- Parameters:
targetUrl- Destination URLtype- theSamlProtocol.TypesamlValue- Base64 encoded saml objectrelayState- the relay State- Returns:
- Formatted Form submit page
-
getRedirectPage
Gets a Redirect page containing the specified information. Will turn any null Strings into blank Strings.- Parameters:
targetUrl- Destination URL- Returns:
- Formatted Redirect Page
-