Package org.opensaml.xml.signature.impl

Examples of org.opensaml.xml.signature.impl.ExplicitKeySignatureTrustEngine


        this.metadataProvider = metadataProvider;
    }

    public SignatureTrustEngine build() {
        MetadataCredentialResolver metadataResolver = new MetadataCredentialResolver(this.metadataProvider);
        return new ExplicitKeySignatureTrustEngine(metadataResolver, Configuration.getGlobalSecurityConfiguration()
                .getDefaultKeyInfoCredentialResolver());
    }
View Full Code Here


    protected void populateTrustEngine(SAMLMessageContext samlContext) {
        SignatureTrustEngine engine;
        if ("pkix".equalsIgnoreCase(samlContext.getLocalExtendedMetadata().getSecurityProfile())) {
            engine = new PKIXSignatureTrustEngine(pkixResolver, Configuration.getGlobalSecurityConfiguration().getDefaultKeyInfoCredentialResolver(), pkixTrustEvaluator, new BasicX509CredentialNameEvaluator());
        } else {
            engine = new ExplicitKeySignatureTrustEngine(metadataResolver, Configuration.getGlobalSecurityConfiguration().getDefaultKeyInfoCredentialResolver());
        }
        samlContext.setLocalTrustEngine(engine);
    }
View Full Code Here

TOP

Related Classes of org.opensaml.xml.signature.impl.ExplicitKeySignatureTrustEngine

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.