assertion = responseType.getAssertions().get(0).getAssertion(); assertion = assertions.get(0).getAssertion();
throw new IllegalStateException(ErrorCodes.NULL_VALUE + "No assertions in reply from IDP"); AssertionType assertion = assertions.get(0).getAssertion();
throw new IllegalStateException(ErrorCodes.NULL_VALUE + "No assertions in reply from IDP"); AssertionType assertion = assertions.get(0).getAssertion();
AssertionType at = responseType.getAssertions().get(0).getAssertion(); XACMLAuthzDecisionStatementType xst = (XACMLAuthzDecisionStatementType) at.getStatements().iterator().next(); ResultType rt = xst.getResponse().getResult().get(0);
AssertionType at = responseType.getAssertions().get(0).getAssertion(); XACMLAuthzDecisionStatementType xst = (XACMLAuthzDecisionStatementType) at.getStatements().iterator().next(); ResultType rt = xst.getResponse().getResult().get(0);
throw logger.samlHandlerNoAssertionFromIDP(); AssertionType assertion = assertions.get(0).getAssertion();
if (assertion instanceof EncryptedAssertionType) { responseType = this.decryptAssertion(responseType, privateKey); assertion = responseType.getAssertions().get(0).getAssertion(); assertion = assertions.get(0).getAssertion();
if (choiceTypes != null) { for (RTChoiceType choiceType : choiceTypes) { AssertionType assertion = choiceType.getAssertion(); if (assertion != null) { assertionWriter.write(assertion);
AssertionType assertion = choiceType.getAssertion(); if (assertion != null)
if (assertion instanceof EncryptedAssertionType) { responseType = this.decryptAssertion(responseType, privateKey); assertion = responseType.getAssertions().get(0).getAssertion(); assertion = assertions.get(0).getAssertion();
if (choiceTypes != null) { for (RTChoiceType choiceType : choiceTypes) { AssertionType assertion = choiceType.getAssertion(); if (assertion != null) { assertionWriter.write(assertion);
if (choiceTypes != null) { for (RTChoiceType choiceType : choiceTypes) { AssertionType assertion = choiceType.getAssertion(); if (assertion != null) { assertionWriter.write(assertion);
AssertionType assertion = choiceType.getAssertion(); if (assertion != null)
if (assertion instanceof EncryptedAssertionType) { responseType = this.decryptAssertion(responseType, privateKey); assertion = responseType.getAssertions().get(0).getAssertion(); assertion = assertions.get(0).getAssertion();
assertion = responseType.getAssertions().get(0).getAssertion(); assertion = assertions.get(0).getAssertion();
public static XACMLAuthzDecisionStatementType getDecisionStatement(Node samlResponse) throws ConfigurationException, ProcessingException, ParsingException { XMLEventReader xmlEventReader = StaxParserUtil.getXMLEventReader(DocumentUtil.getNodeAsStream(samlResponse)); SAMLParser samlParser = new SAMLParser(); JAXPValidationUtil.checkSchemaValidation(samlResponse); org.picketlink.identity.federation.saml.v2.protocol.ResponseType response = (org.picketlink.identity.federation.saml.v2.protocol.ResponseType) samlParser .parse(xmlEventReader); List<RTChoiceType> choices = response.getAssertions(); for (RTChoiceType rst : choices) { AssertionType assertion = rst.getAssertion(); if (assertion == null) continue; Set<StatementAbstractType> stats = assertion.getStatements(); for (StatementAbstractType stat : stats) { if (stat instanceof XACMLAuthzDecisionStatementType) { return (XACMLAuthzDecisionStatementType) stat; } } } throw new RuntimeException("Not found XACMLAuthzDecisionStatementType"); }
public static XACMLAuthzDecisionStatementType getDecisionStatement(Node samlResponse) throws ConfigurationException, ProcessingException, ParsingException { XMLEventReader xmlEventReader = StaxParserUtil.getXMLEventReader(DocumentUtil.getNodeAsStream(samlResponse)); SAMLParser samlParser = new SAMLParser(); JAXPValidationUtil.checkSchemaValidation(samlResponse); org.picketlink.identity.federation.saml.v2.protocol.ResponseType response = (org.picketlink.identity.federation.saml.v2.protocol.ResponseType) samlParser .parse(xmlEventReader); List<RTChoiceType> choices = response.getAssertions(); for (RTChoiceType rst : choices) { AssertionType assertion = rst.getAssertion(); if (assertion == null) continue; Set<StatementAbstractType> stats = assertion.getStatements(); for (StatementAbstractType stat : stats) { if (stat instanceof XACMLAuthzDecisionStatementType) { return (XACMLAuthzDecisionStatementType) stat; } } } throw new RuntimeException("Not found XACMLAuthzDecisionStatementType"); }
public static XACMLAuthzDecisionStatementType getDecisionStatement(Node samlResponse) throws ConfigurationException, ProcessingException, ParsingException { XMLEventReader xmlEventReader = StaxParserUtil.getXMLEventReader(DocumentUtil.getNodeAsStream(samlResponse)); SAMLParser samlParser = new SAMLParser(); JAXPValidationUtil.checkSchemaValidation(samlResponse); org.picketlink.identity.federation.saml.v2.protocol.ResponseType response = (org.picketlink.identity.federation.saml.v2.protocol.ResponseType) samlParser .parse(xmlEventReader); List<RTChoiceType> choices = response.getAssertions(); for (RTChoiceType rst : choices) { AssertionType assertion = rst.getAssertion(); if (assertion == null) continue; Set<StatementAbstractType> stats = assertion.getStatements(); for (StatementAbstractType stat : stats) { if (stat instanceof XACMLAuthzDecisionStatementType) { return (XACMLAuthzDecisionStatementType) stat; } } } throw new RuntimeException("Not found XACMLAuthzDecisionStatementType"); }
public static XACMLAuthzDecisionStatementType getDecisionStatement(Node samlResponse) throws ConfigurationException, ProcessingException, ParsingException { XMLEventReader xmlEventReader = StaxParserUtil.getXMLEventReader(DocumentUtil.getNodeAsStream(samlResponse)); SAMLParser samlParser = new SAMLParser(); JAXPValidationUtil.checkSchemaValidation(samlResponse); org.picketlink.identity.federation.saml.v2.protocol.ResponseType response = (org.picketlink.identity.federation.saml.v2.protocol.ResponseType) samlParser .parse(xmlEventReader); List<RTChoiceType> choices = response.getAssertions(); for (RTChoiceType rst : choices) { AssertionType assertion = rst.getAssertion(); if (assertion == null) continue; Set<StatementAbstractType> stats = assertion.getStatements(); for (StatementAbstractType stat : stats) { if (stat instanceof XACMLAuthzDecisionStatementType) { return (XACMLAuthzDecisionStatementType) stat; } } } throw new RuntimeException("Not found XACMLAuthzDecisionStatementType"); }
public static XACMLAuthzDecisionStatementType getDecisionStatement(Node samlResponse) throws ConfigurationException, ProcessingException, ParsingException { XMLEventReader xmlEventReader = StaxParserUtil.getXMLEventReader(DocumentUtil.getNodeAsStream(samlResponse)); SAMLParser samlParser = new SAMLParser(); JAXPValidationUtil.checkSchemaValidation(samlResponse); org.picketlink.identity.federation.saml.v2.protocol.ResponseType response = (org.picketlink.identity.federation.saml.v2.protocol.ResponseType) samlParser .parse(xmlEventReader); List<RTChoiceType> choices = response.getAssertions(); for (RTChoiceType rst : choices) { AssertionType assertion = rst.getAssertion(); if (assertion == null) continue; Set<StatementAbstractType> stats = assertion.getStatements(); for (StatementAbstractType stat : stats) { if (stat instanceof XACMLAuthzDecisionStatementType) { return (XACMLAuthzDecisionStatementType) stat; } } } throw new RuntimeException("Not found XACMLAuthzDecisionStatementType"); }