|
PicketLink Federation Core 2.1.6.Final-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.picketlink.identity.federation.web.util.RedirectBindingUtil
public class RedirectBindingUtil
Utility class for SAML HTTP/Redirect binding
Nested Class Summary | |
---|---|
static class |
RedirectBindingUtil.RedirectBindingUtilDestHolder
A Destination holder that holds the destination host url and the destination query string |
Constructor Summary | |
---|---|
RedirectBindingUtil()
|
Method Summary | |
---|---|
static InputStream |
base64DeflateDecode(String encodedString)
Base64 decode followed by Deflate decoding |
static String |
base64URLEncode(byte[] stringToEncode)
On the byte array, apply base64 encoding following by URL encoding |
static String |
deflateBase64Encode(byte[] stringToEncode)
Apply deflate compression followed by base64 encoding |
static String |
deflateBase64URLEncode(byte[] stringToEncode)
Apply deflate compression followed by base64 encoding and URL encoding |
static String |
deflateBase64URLEncode(String stringToEncode)
Apply deflate compression followed by base64 encoding and URL encoding |
static String |
getDestinationQueryString(String urlEncodedRequest,
String urlEncodedRelayState,
boolean sendRequest)
Get the Query String for the destination url |
static String |
getDestinationURL(RedirectBindingUtil.RedirectBindingUtilDestHolder holder)
Get the destination url |
static byte[] |
urlBase64Decode(String encodedString)
On the byte array, apply URL decoding followed by base64 decoding |
static InputStream |
urlBase64DeflateDecode(String encodedString)
Apply URL decoding, followed by base64 decoding followed by deflate decompression |
static String |
urlDecode(String str)
URL decode the string |
static String |
urlEncode(String str)
URL encode the string |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RedirectBindingUtil()
Method Detail |
---|
public static String urlEncode(String str) throws IOException
str
-
IOException
public static String urlDecode(String str) throws IOException
str
-
IOException
public static String base64URLEncode(byte[] stringToEncode) throws IOException
stringToEncode
-
IOException
public static byte[] urlBase64Decode(String encodedString) throws IOException
encodedString
-
IOException
public static String deflateBase64URLEncode(String stringToEncode) throws IOException
stringToEncode
-
IOException
public static String deflateBase64URLEncode(byte[] stringToEncode) throws IOException
stringToEncode
-
IOException
public static String deflateBase64Encode(byte[] stringToEncode) throws IOException
stringToEncode
-
IOException
public static InputStream urlBase64DeflateDecode(String encodedString) throws IOException
encodedString
-
IOException
public static InputStream base64DeflateDecode(String encodedString)
encodedString
-
public static String getDestinationQueryString(String urlEncodedRequest, String urlEncodedRelayState, boolean sendRequest)
urlEncodedRequest
- urlEncodedRelayState
- sendRequest
- either going to be saml request or response
public static String getDestinationURL(RedirectBindingUtil.RedirectBindingUtilDestHolder holder) throws UnsupportedEncodingException, IOException
holder
-
UnsupportedEncodingException
IOException
|
PicketLink Federation Core 2.1.6.Final-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |