public class Util extends Object
| Constructor and Description |
|---|
Util() |
| Modifier and Type | Method and Description |
|---|---|
static org.opensaml.xml.XMLObject |
buildXMLObject(QName objectQName) |
static String |
createID()
Generates a unique Id for Authentication Requests
|
static String |
decode(String encodedStr)
Decoding and deflating the encoded AuthReq
|
static void |
doBootstrap()
This method is used to initialize the OpenSAML2 library.
|
static String |
encode(String xmlString)
Compressing and Encoding the response
|
static String |
getDomainName(org.opensaml.xml.XMLObject samlObject) |
static org.wso2.carbon.user.core.service.RealmService |
getRealmService() |
static String |
marshall(org.opensaml.xml.XMLObject xmlObject)
Serializing a SAML2 object into a String
|
static void |
setRealmService(org.wso2.carbon.user.core.service.RealmService realmService) |
static org.opensaml.xml.XMLObject |
unmarshall(String authReqStr)
Constructing the XMLObject Object from a String
|
static boolean |
validateSignature(org.opensaml.saml2.core.Response resp,
String keyStoreName,
String keyStorePassword,
String alias,
int tenantId,
String tenantDomain)
This method validates the signature of the SAML Response.
|
public static void doBootstrap()
public static org.opensaml.xml.XMLObject buildXMLObject(QName objectQName) throws Exception
Exceptionpublic static String createID()
public static org.opensaml.xml.XMLObject unmarshall(String authReqStr) throws Exception
authReqStr - Exceptionpublic static String marshall(org.opensaml.xml.XMLObject xmlObject) throws Exception
xmlObject - object that needs to serialized.Exceptionpublic static String encode(String xmlString) throws Exception
xmlString - String to be encodedExceptionpublic static String decode(String encodedStr) throws Exception
encodedStr - encoded AuthReqExceptionpublic static boolean validateSignature(org.opensaml.saml2.core.Response resp,
String keyStoreName,
String keyStorePassword,
String alias,
int tenantId,
String tenantDomain)
resp - SAML Responsepublic static String getDomainName(org.opensaml.xml.XMLObject samlObject)
public static void setRealmService(org.wso2.carbon.user.core.service.RealmService realmService)
public static org.wso2.carbon.user.core.service.RealmService getRealmService()
Copyright © 2018 WSO2. All rights reserved.