Package org.apache.wss4j.common.saml
Class OpenSAMLUtil
java.lang.Object
org.apache.wss4j.common.saml.OpenSAMLUtil
Class OpenSAMLUtil provides static helper methods for the OpenSaml library
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.opensaml.xmlsec.signature.SignatureMethod buildSignature ...static org.opensaml.core.xml.XMLObjectConvert a SAML Assertion from a DOM Element to an XMLObjectstatic net.shibboleth.utilities.java.support.xml.ParserPoolGet the configured ParserPool.static voidInitialise the SAML librarystatic voidinitSamlEngine(boolean includeXacml) static booleanisMethodHolderOfKey(String confirmMethod) Method isMethodHolderOfKey ...static booleanisMethodSenderVouches(String confirmMethod) Method isMethodSenderVouches ...static ElementConvert a SAML Assertion from a XMLObject to a DOM Elementstatic ElementConvert a SAML Assertion from a XMLObject to a DOM Element
-
Method Details
-
initSamlEngine
public static void initSamlEngine()Initialise the SAML library -
initSamlEngine
public static void initSamlEngine(boolean includeXacml) -
getParserPool
public static net.shibboleth.utilities.java.support.xml.ParserPool getParserPool()Get the configured ParserPool.- Returns:
- the configured ParserPool
-
fromDom
Convert a SAML Assertion from a DOM Element to an XMLObject- Parameters:
root- of type Element- Returns:
- XMLObject
- Throws:
WSSecurityException
-
toDom
public static Element toDom(org.opensaml.core.xml.XMLObject xmlObject, Document doc) throws WSSecurityException Convert a SAML Assertion from a XMLObject to a DOM Element- Parameters:
xmlObject- of type XMLObjectdoc- of type Document- Returns:
- Element
- Throws:
WSSecurityException
-
toDom
public static Element toDom(org.opensaml.core.xml.XMLObject xmlObject, Document doc, boolean signObject) throws WSSecurityException Convert a SAML Assertion from a XMLObject to a DOM Element- Parameters:
xmlObject- of type XMLObjectdoc- of type DocumentsignObject- whether to sign the XMLObject during marshalling- Returns:
- Element
- Throws:
WSSecurityException
-
buildSignature
public static org.opensaml.xmlsec.signature.Signature buildSignature()Method buildSignature ...- Returns:
- Signature
-
isMethodSenderVouches
Method isMethodSenderVouches ...- Parameters:
confirmMethod- of type String- Returns:
- boolean
-
isMethodHolderOfKey
Method isMethodHolderOfKey ...- Parameters:
confirmMethod- of type String- Returns:
- boolean
-