Examples of UnmarshallingException


Examples of org.opensaml.xml.io.UnmarshallingException

                authorizationDecisionStatement.setDecision(DecisionTypeEnumeration.DENY);
            } else if (value.equals(DecisionTypeEnumeration.INDETERMINATE.toString())) {
                authorizationDecisionStatement.setDecision(DecisionTypeEnumeration.INDETERMINATE);
            } else {
                log.error("Unknown value for DecisionType '" + value + "'");
                throw new UnmarshallingException("Unknown value for DecisionType '" + value + "'");
            }
        } else if (AuthorizationDecisionStatement.RESOURCE_ATTRIB_NAME.equals(attribute.getLocalName())) {
            authorizationDecisionStatement.setResource(attribute.getValue());
        } else {
            super.processAttribute(samlObject, attribute);
View Full Code Here

Examples of org.opensaml.xml.io.UnmarshallingException

            int minor;
            try {
                minor = Integer.parseInt(attribute.getValue());
            } catch (NumberFormatException n) {
                log.error("Unable to parse minor version string", n);
                throw new UnmarshallingException(n);
            }
            if (minor == 0) {
                request.setVersion(SAMLVersion.VERSION_10);
            } else if (minor == 1) {
                request.setVersion(SAMLVersion.VERSION_11);
View Full Code Here

Examples of org.opensaml.xml.io.UnmarshallingException

            log.trace("Unmarshalling and caching metdata DOM");
            Unmarshaller unmarshaller = unmarshallerFactory.getUnmarshaller(mdDocument.getDocumentElement());
            XMLObject metadata = unmarshaller.unmarshall(mdDocument.getDocumentElement());
            return metadata;
        } catch (Exception e) {
            throw new UnmarshallingException(e);
        } finally {
            try {
                metadataInput.close();
            } catch (IOException e) {
                // ignore
View Full Code Here

Examples of org.opensaml.xml.io.UnmarshallingException

                request.getAssertionArtifacts().add((AssertionArtifact) childElement);
            } else {
                super.processChildElement(parentElement, childElement);
            }
        } catch (IllegalArgumentException e) {
            throw new UnmarshallingException(e);
        }
    }
View Full Code Here

Examples of org.opensaml.xml.io.UnmarshallingException

            else if ("maximum".equals(attribute.getValue()))
                rac.setComparison(AuthnContextComparisonTypeEnumeration.MAXIMUM);
            else if ("better".equals(attribute.getValue()))
                rac.setComparison(AuthnContextComparisonTypeEnumeration.BETTER);
            else
                throw new UnmarshallingException("Saw an invalid value for Comparison attribute: "
                        + attribute.getValue());
        } else
            super.processAttribute(samlObject, attribute);
    }
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.