public class SamlPostBindingUtil extends Object
| Constructor and Description |
|---|
SamlPostBindingUtil() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
base64Decode(String encodedString)
Apply base64 decoding on the message and return the byte array
|
static InputStream |
base64DecodeAsStream(String encodedString)
Apply base64 decoding on the message and return the stream
|
static String |
base64Encode(String stringToEncode)
Apply base64 encoding on the message
|
static void |
sendPost(org.picketlink.identity.federation.core.saml.v2.holders.DestinationInfoHolder holder,
javax.servlet.http.HttpServletResponse response,
boolean request)
Send the response to the redirected destination while adding the character encoding of "UTF-8" as well as adding
headers
for cache-control and Pragma
|
public static String base64Encode(String stringToEncode) throws IOException
stringToEncode - IOExceptionpublic static byte[] base64Decode(String encodedString)
encodedString - public static InputStream base64DecodeAsStream(String encodedString)
encodedString - public static void sendPost(org.picketlink.identity.federation.core.saml.v2.holders.DestinationInfoHolder holder,
javax.servlet.http.HttpServletResponse response,
boolean request)
throws IOException
destination - Destination URI where the response needs to redirectresponse - HttpServletResponseIOExceptionCopyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.