org.apache.ws.security.saml
Class SAMLUtil
java.lang.Object
org.apache.ws.security.saml.SAMLUtil
public class SAMLUtil
- extends java.lang.Object
Utility methods for SAML stuff
Method Summary |
static java.lang.String |
getAssertionId(org.w3c.dom.Element envelope,
java.lang.String elemName,
java.lang.String nmSpace)
|
static java.security.cert.X509Certificate[] |
getCertificatesFromSAML(org.w3c.dom.Element elem)
Extracts the certificate(s) from the SAML token reference. |
static SAMLKeyInfo |
getSAMLKeyInfo(org.w3c.dom.Element elem,
Crypto crypto,
javax.security.auth.callback.CallbackHandler cb)
Extract certificates or the key available in the SAMLAssertion |
static SAMLKeyInfo |
getSAMLKeyInfo(org.opensaml.SAMLAssertion assertion,
Crypto crypto,
javax.security.auth.callback.CallbackHandler cb)
|
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 java.security.cert.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 java.lang.String getAssertionId(org.w3c.dom.Element envelope,
java.lang.String elemName,
java.lang.String nmSpace)
throws WSSecurityException
- Throws:
WSSecurityException
Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.