|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wss4j.common.saml.SAMLUtil
public final class SAMLUtil
Utility methods for SAML stuff
| Method Summary | |
|---|---|
static void |
doSAMLCallback(CallbackHandler callbackHandler,
SAMLCallback callback)
|
static SAMLKeyInfo |
getCredentialFromKeyInfo(Element keyInfoElement,
SAMLKeyInfoProcessor keyInfoProcessor,
Crypto sigCrypto)
This method returns a SAMLKeyInfo corresponding to the credential found in the KeyInfo (DOM Element) argument. |
static SAMLKeyInfo |
getCredentialFromSubject(org.opensaml.saml1.core.Assertion assertion,
SAMLKeyInfoProcessor keyInfoProcessor,
Crypto sigCrypto,
CallbackHandler callbackHandler)
Get the SAMLKeyInfo object corresponding to the credential stored in the Subject of a SAML 1.1 assertion |
static SAMLKeyInfo |
getCredentialFromSubject(org.opensaml.saml2.core.Assertion assertion,
SAMLKeyInfoProcessor keyInfoProcessor,
Crypto sigCrypto,
CallbackHandler callbackHandler)
Get the SAMLKeyInfo object corresponding to the credential stored in the Subject of a SAML 2 assertion |
static SAMLKeyInfo |
getCredentialFromSubject(SamlAssertionWrapper samlAssertion,
SAMLKeyInfoProcessor keyInfoProcessor,
Crypto sigCrypto,
CallbackHandler callbackHandler)
Parse a SAML Assertion to obtain a SAMLKeyInfo object from the Subject of the assertion |
static byte[] |
getSecretKeyFromCallbackHandler(String id,
CallbackHandler cb)
Try to get the secret key from a CallbackHandler implementation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static SAMLKeyInfo getCredentialFromSubject(SamlAssertionWrapper samlAssertion,
SAMLKeyInfoProcessor keyInfoProcessor,
Crypto sigCrypto,
CallbackHandler callbackHandler)
throws WSSecurityException
samlAssertion - The SAML AssertionkeyInfoProcessor - A pluggable way to parse the KeyInfo
WSSecurityException
public static byte[] getSecretKeyFromCallbackHandler(String id,
CallbackHandler cb)
cb - a CallbackHandler implementation
public static SAMLKeyInfo getCredentialFromSubject(org.opensaml.saml1.core.Assertion assertion,
SAMLKeyInfoProcessor keyInfoProcessor,
Crypto sigCrypto,
CallbackHandler callbackHandler)
throws WSSecurityException
assertion - The SAML 1.1 assertionkeyInfoProcessor - A pluggable way to parse the KeyInfosigCrypto - A Crypto instancecallbackHandler - A CallbackHandler instance
WSSecurityException
public static SAMLKeyInfo getCredentialFromSubject(org.opensaml.saml2.core.Assertion assertion,
SAMLKeyInfoProcessor keyInfoProcessor,
Crypto sigCrypto,
CallbackHandler callbackHandler)
throws WSSecurityException
assertion - The SAML 2 assertionkeyInfoProcessor - A pluggable way to parse the KeyInfosigCrypto - A Crypto instancecallbackHandler - A CallbackHandler instance
WSSecurityException
public static SAMLKeyInfo getCredentialFromKeyInfo(Element keyInfoElement,
SAMLKeyInfoProcessor keyInfoProcessor,
Crypto sigCrypto)
throws WSSecurityException
keyInfoElement - The KeyInfo as a DOM ElementkeyInfoProcessor - A pluggable way to parse the KeyInfosigCrypto - A Crypto instance
WSSecurityException
public static void doSAMLCallback(CallbackHandler callbackHandler,
SAMLCallback callback)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||