org.apache.ws.security.saml.ext
Class OpenSAMLUtil

java.lang.Object
  extended by org.apache.ws.security.saml.ext.OpenSAMLUtil

public class OpenSAMLUtil
extends java.lang.Object

Class OpenSAMLUtil provides static helper methods for the OpenSaml library

Created on May 18, 2009


Constructor Summary
OpenSAMLUtil()
           
 
Method Summary
static org.opensaml.xml.signature.Signature buildSignature()
          Method buildSignature ...
static org.opensaml.xml.XMLObject fromDom(org.w3c.dom.Element root)
          Convert a SAML Assertion from a DOM Element to an XMLObject
static void initSamlEngine()
          Initialise the SAML library
static boolean isMethodHolderOfKey(java.lang.String confirmMethod)
          Method isMethodHolderOfKey ...
static boolean isMethodSenderVouches(java.lang.String confirmMethod)
          Method isMethodSenderVouches ...
static org.w3c.dom.Element toDom(org.opensaml.xml.XMLObject xmlObject, org.w3c.dom.Document doc)
          Convert a SAML Assertion from a XMLObject to a DOM Element
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenSAMLUtil

public OpenSAMLUtil()
Method Detail

initSamlEngine

public static void initSamlEngine()
Initialise the SAML library


fromDom

public static org.opensaml.xml.XMLObject fromDom(org.w3c.dom.Element root)
                                          throws WSSecurityException
Convert a SAML Assertion from a DOM Element to an XMLObject

Parameters:
root - of type Element
Returns:
XMLObject
Throws:
org.opensaml.xml.io.UnmarshallingException
WSSecurityException

toDom

public static org.w3c.dom.Element toDom(org.opensaml.xml.XMLObject xmlObject,
                                        org.w3c.dom.Document doc)
                                 throws WSSecurityException
Convert a SAML Assertion from a XMLObject to a DOM Element

Parameters:
xmlObject - of type XMLObject
doc - of type Document
Returns:
Element
Throws:
org.opensaml.xml.io.MarshallingException
org.opensaml.xml.signature.SignatureException
WSSecurityException

buildSignature

public static org.opensaml.xml.signature.Signature buildSignature()
Method buildSignature ...

Returns:
Signature

isMethodSenderVouches

public static boolean isMethodSenderVouches(java.lang.String confirmMethod)
Method isMethodSenderVouches ...

Parameters:
confirmMethod - of type String
Returns:
boolean

isMethodHolderOfKey

public static boolean isMethodHolderOfKey(java.lang.String confirmMethod)
Method isMethodHolderOfKey ...

Parameters:
confirmMethod - of type String
Returns:
boolean


Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.