public final class STRParserUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
checkBinarySecurityBSPCompliance(SecurityTokenReference secRef,
BinarySecurity token,
BSPEnforcer bspEnforcer)
Check that the BinarySecurityToken referenced by the SecurityTokenReference argument
is BSP compliant.
|
static void |
checkEncryptedKeyBSPCompliance(SecurityTokenReference secRef,
BSPEnforcer bspEnforcer)
Check that the EncryptedKey referenced by the SecurityTokenReference argument
is BSP compliant.
|
static void |
checkSamlTokenBSPCompliance(SecurityTokenReference secRef,
SamlAssertionWrapper samlAssertion,
BSPEnforcer bspEnforcer)
Check that the SAML token referenced by the SecurityTokenReference argument
is BSP compliant.
|
static void |
checkUsernameTokenBSPCompliance(SecurityTokenReference secRef,
BSPEnforcer bspEnforcer)
Check that the Username token referenced by the SecurityTokenReference argument
is BSP compliant.
|
static SamlAssertionWrapper |
getAssertionFromKeyIdentifier(SecurityTokenReference secRef,
Element strElement,
RequestData request,
WSDocInfo wsDocInfo)
Get an SamlAssertionWrapper object from parsing a SecurityTokenReference that uses
a KeyIdentifier that points to a SAML Assertion.
|
public static SamlAssertionWrapper getAssertionFromKeyIdentifier(SecurityTokenReference secRef, Element strElement, RequestData request, WSDocInfo wsDocInfo) throws WSSecurityException
secRef - the SecurityTokenReference to the SAML AssertionstrElement - The SecurityTokenReference DOM elementrequest - The RequestData instance used to obtain configurationwsDocInfo - The WSDocInfo object that holds previous resultsWSSecurityExceptionpublic static void checkBinarySecurityBSPCompliance(SecurityTokenReference secRef, BinarySecurity token, BSPEnforcer bspEnforcer) throws WSSecurityException
secRef - The SecurityTokenReference to the BinarySecurityTokentoken - The BinarySecurityTokenbspEnforcer - a BSPEnforcer instance to enforce BSP rulesWSSecurityExceptionpublic static void checkEncryptedKeyBSPCompliance(SecurityTokenReference secRef, BSPEnforcer bspEnforcer) throws WSSecurityException
secRef - The SecurityTokenReference to the BinarySecurityTokenbspEnforcer - a BSPEnforcer instance to enforce BSP rulesWSSecurityExceptionpublic static void checkSamlTokenBSPCompliance(SecurityTokenReference secRef, SamlAssertionWrapper samlAssertion, BSPEnforcer bspEnforcer) throws WSSecurityException
secRef - The SecurityTokenReference to the SAML tokensamlAssertion - The SAML Token SamlAssertionWrapper objectbspEnforcer - a BSPEnforcer instance to enforce BSP rulesWSSecurityExceptionpublic static void checkUsernameTokenBSPCompliance(SecurityTokenReference secRef, BSPEnforcer bspEnforcer) throws WSSecurityException
secRef - The SecurityTokenReference to the Username tokenbspEnforcer - a BSPEnforcer instance to enforce BSP rulesWSSecurityExceptionCopyright © 2004–2016 The Apache Software Foundation. All rights reserved.