Examples of SAMLConfigParser


Examples of org.picketlink.identity.federation.core.parsers.config.SAMLConfigParser

     */
    public static IDPType getIDPConfiguration(InputStream is) throws ParsingException {
        if (is == null)
            throw logger.nullArgumentError("inputstream");

        SAMLConfigParser parser = new SAMLConfigParser();
        return (IDPType) parser.parse(is);
    }
View Full Code Here

Examples of org.picketlink.identity.federation.core.parsers.config.SAMLConfigParser

     * @throws ParsingException
     */
    public static SPType getSPConfiguration(InputStream is) throws ParsingException {
        if (is == null)
            throw logger.nullArgumentError("inputstream");
        return (SPType) (new SAMLConfigParser()).parse(is);
    }
View Full Code Here

Examples of org.picketlink.identity.federation.core.parsers.config.SAMLConfigParser

     * @throws ParsingException
     */
    public static Handlers getHandlers(InputStream is) throws ParsingException {
        if (is == null)
            throw logger.nullArgumentError("inputstream");
        return (Handlers) (new SAMLConfigParser()).parse(is);
    }
View Full Code Here

Examples of org.picketlink.identity.federation.core.parsers.config.SAMLConfigParser

    public void setConfigFile(InputStream is) throws ParsingException {
        if (is == null) {
            throw logger.nullArgumentError("InputStream");
        }
       
        SAMLConfigParser parser = new SAMLConfigParser();
       
        Object parsedObject = parser.parse(is);
       
        if (parsedObject instanceof IDPType)
            configParsedIDPType = (IDPType) parsedObject;
        else
            configParsedSPType = (SPType) parsedObject;
View Full Code Here

Examples of org.picketlink.identity.federation.core.parsers.config.SAMLConfigParser

        ClassLoader tcl = Thread.currentThread().getContextClassLoader();
        InputStream is = tcl.getResourceAsStream(configFile);
        assertNotNull("Inputstream not null for config file:" + configFile, is);

        SAMLConfigParser parser = new SAMLConfigParser();
        return parser.parse(is);

        /*
         * String[] pkgNames = new String[] {"org.picketlink.identity.federation.core.config",
         * "org.picketlink.identity.federation.core.handler.config"}; Unmarshaller un =
         * JAXBUtil.getValidatingUnmarshaller(pkgNames, schemas); return un.unmarshal(is);
View Full Code Here

Examples of org.picketlink.identity.federation.core.parsers.config.SAMLConfigParser

        ClassLoader tcl = Thread.currentThread().getContextClassLoader();
        InputStream is = tcl.getResourceAsStream(configFile);
        assertNotNull("Inputstream not null", is);

        return (new SAMLConfigParser()).parse(is);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.