Package org.openid4java.discovery

Examples of org.openid4java.discovery.RuntimeDiscoveryException


            this.setFeature("http://xml.org/sax/features/external-parameter-entities", false);
            this.setFeature("http://apache.org/xml/features/nonvalidating/load-dtd-grammar", false);
            this.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", false);
            this.setEntityResolver(new EntityResolver() {
                public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException {
                    throw new RuntimeDiscoveryException("External entity found in input data" );
                }
            });
        }
        catch (SAXNotRecognizedException e)
        {
View Full Code Here


                }
            });

            builder.setEntityResolver(new EntityResolver() {
                public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException {
                    throw new RuntimeDiscoveryException("External entity found in XRDS data");
                }
            });

            return builder.parse(new ByteArrayInputStream(input.getBytes()));
        }
View Full Code Here

TOP

Related Classes of org.openid4java.discovery.RuntimeDiscoveryException

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.