org.opensaml.security.SAMLSignatureProfileValidator Java Examples
The following examples show how to use
org.opensaml.security.SAMLSignatureProfileValidator.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SAML2BearerGrantHandler.java From carbon-identity with Apache License 2.0 | 6 votes |
@Override public void init() throws IdentityOAuth2Exception { super.init(); Thread thread = Thread.currentThread(); ClassLoader loader = thread.getContextClassLoader(); thread.setContextClassLoader(this.getClass().getClassLoader()); try { DefaultBootstrap.bootstrap(); } catch (ConfigurationException e) { log.error("Error in bootstrapping the OpenSAML2 library", e); throw new IdentityOAuth2Exception("Error in bootstrapping the OpenSAML2 library"); } finally { thread.setContextClassLoader(loader); } profileValidator = new SAMLSignatureProfileValidator(); }
Example #2
Source File: SignatureValidationFilter.java From lams with GNU General Public License v2.0 | 5 votes |
/** * Constructor. * * @param engine the trust engine used to validate signatures on incoming metadata. */ public SignatureValidationFilter(SignatureTrustEngine engine) { if (engine == null) { throw new IllegalArgumentException("Signature trust engine may not be null"); } signatureTrustEngine = engine; sigValidator = new SAMLSignatureProfileValidator(); }
Example #3
Source File: SamlHelper.java From secure-data-service with Apache License 2.0 | 5 votes |
private void validateSignatureFormat(Signature signature) { SAMLSignatureProfileValidator profileValidator = new SAMLSignatureProfileValidator(); try { profileValidator.validate(signature); } catch (ValidationException e) { handleSignatureValidationErrors(e); } }
Example #4
Source File: SignatureSecurityPolicyRule.java From MaxKey with Apache License 2.0 | 4 votes |
public SignatureSecurityPolicyRule(CredentialResolver credentialResolver, SAMLSignatureProfileValidator samlSignatureProfileValidator) { super(); this.credentialResolver = credentialResolver; this.samlSignatureProfileValidator = samlSignatureProfileValidator; }
Example #5
Source File: TrustResolver.java From MaxKey with Apache License 2.0 | 4 votes |
public void initPolicyRule(){ signatureSecurityPolicyRule = new SignatureSecurityPolicyRule(keyStoreCredentialResolver, new SAMLSignatureProfileValidator()); signatureSecurityPolicyRule.loadTrustEngine(); }
Example #6
Source File: SAMLProtocolMessageXMLSignatureSecurityPolicyRule.java From lams with GNU General Public License v2.0 | 2 votes |
/** * Constructor. * * Signature pre-validator defaults to {@link SAMLSignatureProfileValidator}. * * @param engine Trust engine used to verify the signature */ public SAMLProtocolMessageXMLSignatureSecurityPolicyRule(TrustEngine<Signature> engine) { super(engine); sigValidator = new SAMLSignatureProfileValidator(); }