org.apache.ws.security.saml
Class SAMLUtil
java.lang.Object
org.apache.ws.security.saml.SAMLUtil
public class SAMLUtil
- extends Object
Utility methods for SAML stuff
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SAMLUtil
public SAMLUtil()
getSAMLKeyInfo
public static SAMLKeyInfo getSAMLKeyInfo(org.w3c.dom.Element elem,
Crypto crypto,
javax.security.auth.callback.CallbackHandler cb)
throws WSSecurityException
- Extract certificates or the key available in the SAMLAssertion
- Parameters:
elem
-
- Returns:
- the SAML Key Info
- Throws:
WSSecurityException
getSAMLKeyInfo
public static SAMLKeyInfo getSAMLKeyInfo(org.opensaml.SAMLAssertion assertion,
Crypto crypto,
javax.security.auth.callback.CallbackHandler cb)
throws WSSecurityException
- Throws:
WSSecurityException
getCertificatesFromSAML
public static X509Certificate[] getCertificatesFromSAML(org.w3c.dom.Element elem)
throws WSSecurityException
- Extracts the certificate(s) from the SAML token reference.
- Parameters:
elem
- The element containing the SAML token.
- Returns:
- an array of X509 certificates
- Throws:
WSSecurityException
getAssertionId
public static String getAssertionId(org.w3c.dom.Element envelope,
String elemName,
String nmSpace)
throws WSSecurityException
- Throws:
WSSecurityException
Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.