public class SAML2GrantManager extends Object
| Constructor and Description |
|---|
SAML2GrantManager() |
| Modifier and Type | Method and Description |
|---|---|
static String |
executePost(String targetURL,
String urlParameters,
String clientCredentials)
Returns access token details that can be used to extract access token, refresh token, token type and expires in
|
static String |
getSamlAssertionString(String SAMLResponse)
Returns assertion string
|
public static String executePost(String targetURL, String urlParameters, String clientCredentials) throws org.jaggeryjs.scriptengine.exceptions.ScriptException
targetURL - token endpoint urlurlParameters - parameter with grant type and assertion stringclientCredentials - api key and api secretorg.jaggeryjs.scriptengine.exceptions.ScriptExceptionpublic static String getSamlAssertionString(String SAMLResponse) throws org.jaggeryjs.scriptengine.exceptions.ScriptException
SAMLResponse - decoded SAML response stringorg.jaggeryjs.scriptengine.exceptions.ScriptExceptionCopyright © 2016 WSO2 Inc. All rights reserved.