public class SAML2Util
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
bootstrapped
Extract certificates or the key available in the SAMLAssertion
|
| Constructor and Description |
|---|
SAML2Util() |
| Modifier and Type | Method and Description |
|---|---|
static void |
doBootstrap() |
static java.util.Set |
getClaims(org.opensaml.saml.saml2.core.Assertion assertion)
Extract the URIs of the set of claims available in a SAML 1.0/1.1 assertion.
|
static SAML2KeyInfo |
getSAML2KeyInfo(org.opensaml.saml.saml2.core.Assertion assertion,
Crypto crypto,
javax.security.auth.callback.CallbackHandler cb) |
static SAML2KeyInfo |
getSAML2KeyInfo(org.w3c.dom.Element elem,
Crypto crypto,
javax.security.auth.callback.CallbackHandler cb) |
static Timestamp |
getTimestampForSAMLAssertion(org.opensaml.saml.saml2.core.Assertion assertion)
Create a timestamp object from the SAML 2.0 Assertion
|
static void |
validateSignature(org.opensaml.saml.saml2.core.Assertion assertion,
Crypto crypto)
Validate the signature of the SAML assertion
|
public static boolean bootstrapped
public static void doBootstrap()
throws WSSecurityException
WSSecurityExceptionpublic static SAML2KeyInfo getSAML2KeyInfo(org.w3c.dom.Element elem, Crypto crypto, javax.security.auth.callback.CallbackHandler cb) throws WSSecurityException
WSSecurityExceptionpublic static SAML2KeyInfo getSAML2KeyInfo(org.opensaml.saml.saml2.core.Assertion assertion, Crypto crypto, javax.security.auth.callback.CallbackHandler cb) throws WSSecurityException
WSSecurityExceptionpublic static Timestamp getTimestampForSAMLAssertion(org.opensaml.saml.saml2.core.Assertion assertion) throws WSSecurityException
assertion - WSSecurityExceptionpublic static java.util.Set getClaims(org.opensaml.saml.saml2.core.Assertion assertion)
assertion - SAML 2.0 Assertionpublic static void validateSignature(org.opensaml.saml.saml2.core.Assertion assertion,
Crypto crypto)
throws WSSecurityException
assertion - SAML 2.0 assertioncrypto - Crypto object containing the certificate of the token issuerWSSecurityException - if the token does not contain certificate information, the certificate
of the issuer is not trusted or the signature is invalid.Copyright © 2004-2022 The Apache Software Foundation. All Rights Reserved.