public final class DOMSAMLUtil extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
checkHolderOfKey(SamlAssertionWrapper assertionWrapper,
List<WSSecurityEngineResult> signedResults,
Certificate[] tlsCerts)
Check the holder-of-key requirements against the received assertion.
|
static boolean |
checkSenderVouches(SamlAssertionWrapper assertionWrapper,
Certificate[] tlsCerts,
Element body,
List<WSSecurityEngineResult> signed)
Check the sender-vouches requirements against the received assertion.
|
static boolean |
compareCredentials(SAMLKeyInfo subjectKeyInfo,
List<WSSecurityEngineResult> signedResults,
Certificate[] tlsCerts)
Compare the credentials of the assertion to the credentials used in 2-way TLS or those
used to verify signatures.
|
static void |
validateSAMLResults(WSHandlerResult handlerResults,
Certificate[] tlsCerts,
Element body) |
public static void validateSAMLResults(WSHandlerResult handlerResults, Certificate[] tlsCerts, Element body) throws WSSecurityException
WSSecurityException
public static boolean checkHolderOfKey(SamlAssertionWrapper assertionWrapper, List<WSSecurityEngineResult> signedResults, Certificate[] tlsCerts)
assertionWrapper
- the SAML Assertion wrapper objectsignedResults
- a list of all of the signed resultspublic static boolean compareCredentials(SAMLKeyInfo subjectKeyInfo, List<WSSecurityEngineResult> signedResults, Certificate[] tlsCerts)
subjectKeyInfo
- the SAMLKeyInfo objectsignedResults
- a list of all of the signed resultspublic static boolean checkSenderVouches(SamlAssertionWrapper assertionWrapper, Certificate[] tlsCerts, Element body, List<WSSecurityEngineResult> signed)
Copyright © 2017 JBoss by Red Hat. All rights reserved.