|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ws.security.saml.SAMLUtil
public class SAMLUtil
Utility methods for SAML stuff
| Constructor Summary | |
|---|---|
SAMLUtil()
|
|
| Method Summary | |
|---|---|
static String |
getAssertionId(Element envelope,
String elemName,
String nmSpace)
|
static X509Certificate[] |
getCertificatesFromSAML(Element elem)
Extracts the certificate(s) from the SAML token reference. |
static Set |
getClaims(org.opensaml.SAMLAssertion assertion)
Extract the URIs of the set of claims available in a SAML 1.0/1.1 assertion. |
static SAMLKeyInfo |
getSAMLKeyInfo(Element elem,
Crypto crypto,
CallbackHandler cb)
Extract certificates or the key available in the SAMLAssertion |
static SAMLKeyInfo |
getSAMLKeyInfo(org.opensaml.SAMLAssertion assertion,
Crypto crypto,
CallbackHandler cb)
|
static Timestamp |
getTimestampForSAMLAssertion(Element assertion)
Create a TimeStamp object from the SAML assertion. |
static void |
validateSignature(org.opensaml.SAMLAssertion assertion,
Crypto sigCrypto)
Validate the signature of the SAML assertion |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SAMLUtil()
| Method Detail |
|---|
public static SAMLKeyInfo getSAMLKeyInfo(Element elem,
Crypto crypto,
CallbackHandler cb)
throws WSSecurityException
elem -
WSSecurityException
public static SAMLKeyInfo getSAMLKeyInfo(org.opensaml.SAMLAssertion assertion,
Crypto crypto,
CallbackHandler cb)
throws WSSecurityException
WSSecurityException
public static X509Certificate[] getCertificatesFromSAML(Element elem)
throws WSSecurityException
elem - The element containing the SAML token.
WSSecurityException
public static String getAssertionId(Element envelope,
String elemName,
String nmSpace)
throws WSSecurityException
WSSecurityException
public static Timestamp getTimestampForSAMLAssertion(Element assertion)
throws WSSecurityException
assertion -
WSSecurityExceptionpublic static Set getClaims(org.opensaml.SAMLAssertion assertion)
assertion - SAML 1.0/1.1 assertion
public static void validateSignature(org.opensaml.SAMLAssertion assertion,
Crypto sigCrypto)
throws WSSecurityException
assertion - SAML 1.0/1.1 assertionsigCrypto - Crypto object containing the certificate of the token issuer
WSSecurityException - if the token does not contain certificate information, the certificate
of the issuer is not trusted or the signature is invalid.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||