Package org.opensaml.xml.security.keyinfo

Examples of org.opensaml.xml.security.keyinfo.StaticKeyInfoCredentialResolver


        this.credentialProvider = credentialProvider;
    }

    public Decrypter buildDecrypter() {
        Credential encryptionCredential = this.credentialProvider.getCredential();
        KeyInfoCredentialResolver resolver = new StaticKeyInfoCredentialResolver(encryptionCredential);
        Decrypter decrypter = new Decrypter(null, resolver, encryptedKeyResolver);
        decrypter.setRootInNewDocument(true);

        return decrypter;
    }
View Full Code Here


        }

        // Entity used for decrypting of encrypted XML parts
        // Extracts EncryptedKey from the encrypted XML using the encryptedKeyResolver and attempts to decrypt it
        // using private keys supplied by the resolver.
        KeyInfoCredentialResolver resolver = new StaticKeyInfoCredentialResolver(encryptionCredential);

        Decrypter decrypter = new Decrypter(null, resolver, encryptedKeyResolver);
        decrypter.setRootInNewDocument(true);

        samlContext.setLocalDecrypter(decrypter);
View Full Code Here

TOP

Related Classes of org.opensaml.xml.security.keyinfo.StaticKeyInfoCredentialResolver

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.