/** * Create a Response Type * @param ID * @param issuerInfo * @param encryptedAssertion a DOM {@link Element} that represents an encrypted assertion * @return * @throws ConfigurationException */ public static ResponseType createResponseType(String ID, IssuerInfoHolder issuerInfo, Element encryptedAssertion) throws ConfigurationException { ResponseType responseType = new ResponseType(ID, XMLTimeUtil.getIssueInstant()); //Issuer NameIDType issuer = issuerInfo.getIssuer(); responseType.setIssuer(issuer); //Status String statusCode = issuerInfo.getStatusCode(); if (statusCode == null) throw new IllegalArgumentException(ErrorCodes.ISSUER_INFO_MISSING_STATUS_CODE); responseType.setStatus(createStatusType(statusCode)); responseType.addAssertion(new RTChoiceType(new EncryptedAssertionType(encryptedAssertion))); return responseType; } }
Element domElement = StaxParserUtil.getDOMElement(xmlEventReader); EncryptedAssertionType encryptedAssertion = new EncryptedAssertionType(); encryptedAssertion.setEncryptedElement(domElement); return encryptedAssertion;
Element encElement = encryptedAssertion.getEncryptedElement(); StaxUtil.writeDOMElement(writer, encElement);
Element domElement = StaxParserUtil.getDOMElement(xmlEventReader); EncryptedAssertionType encryptedAssertion = new EncryptedAssertionType(); encryptedAssertion.setEncryptedElement(domElement); return encryptedAssertion;
Element encElement = encryptedAssertion.getEncryptedElement(); StaxUtil.writeDOMElement(writer, encElement);
Element domElement = StaxParserUtil.getDOMElement(xmlEventReader); EncryptedAssertionType encryptedAssertion = new EncryptedAssertionType(); encryptedAssertion.setEncryptedElement(domElement); return encryptedAssertion;
/** * Create a Response Type * @param ID * @param issuerInfo * @param encryptedAssertion a DOM {@link Element} that represents an encrypted assertion * @return * @throws ConfigurationException */ public static ResponseType createResponseType(String ID, IssuerInfoHolder issuerInfo, Element encryptedAssertion) throws ConfigurationException { ResponseType responseType = new ResponseType(ID, XMLTimeUtil.getIssueInstant()); //Issuer NameIDType issuer = issuerInfo.getIssuer(); responseType.setIssuer(issuer); //Status String statusCode = issuerInfo.getStatusCode(); if (statusCode == null) throw new IllegalArgumentException(ErrorCodes.ISSUER_INFO_MISSING_STATUS_CODE); responseType.setStatus(createStatusType(statusCode)); responseType.addAssertion(new RTChoiceType(new EncryptedAssertionType(encryptedAssertion))); return responseType; } }
if (encryptedAssertion != null) Element encElement = encryptedAssertion.getEncryptedElement(); StaxUtil.writeDOMElement(writer, encElement);
EncryptedAssertionType encryptedAssertion = new EncryptedAssertionType(); encryptedAssertion.setEncryptedElement(domElement); return encryptedAssertion;
/** * Create a Response Type * * @param ID * @param issuerInfo * @param encryptedAssertion a DOM {@link Element} that represents an encrypted assertion * @return * @throws ConfigurationException */ public static ResponseType createResponseType(String ID, IssuerInfoHolder issuerInfo, Element encryptedAssertion) throws ConfigurationException { ResponseType responseType = new ResponseType(ID, XMLTimeUtil.getIssueInstant()); // Issuer NameIDType issuer = issuerInfo.getIssuer(); responseType.setIssuer(issuer); // Status String statusCode = issuerInfo.getStatusCode(); if (statusCode == null) throw logger.issuerInfoMissingStatusCodeError(); responseType.setStatus(createStatusType(statusCode)); responseType.addAssertion(new RTChoiceType(new EncryptedAssertionType(encryptedAssertion))); return responseType; } }
Element encElement = encryptedAssertion.getEncryptedElement(); StaxUtil.writeDOMElement(writer, encElement);
EncryptedAssertionType encryptedAssertion = new EncryptedAssertionType(); encryptedAssertion.setEncryptedElement(domElement); return encryptedAssertion;
/** * Create a Response Type * * @param ID * @param issuerInfo * @param encryptedAssertion a DOM {@link Element} that represents an encrypted assertion * * @return * * @throws ConfigurationException */ public static ResponseType createResponseType(String ID, IssuerInfoHolder issuerInfo, Element encryptedAssertion) throws ConfigurationException { ResponseType responseType = new ResponseType(ID, XMLTimeUtil.getIssueInstant()); // Issuer NameIDType issuer = issuerInfo.getIssuer(); responseType.setIssuer(issuer); // Status String statusCode = issuerInfo.getStatusCode(); if (statusCode == null) throw logger.issuerInfoMissingStatusCodeError(); responseType.setStatus(createStatusType(statusCode)); responseType.addAssertion(new RTChoiceType(new EncryptedAssertionType(encryptedAssertion))); return responseType; } }
if (encryptedAssertion != null) Element encElement = encryptedAssertion.getEncryptedElement(); StaxUtil.writeDOMElement(writer, encElement);
/** * Create a Response Type * * @param ID * @param issuerInfo * @param encryptedAssertion a DOM {@link Element} that represents an encrypted assertion * * @return * * @throws ConfigurationException */ public static ResponseType createResponseType(String ID, IssuerInfoHolder issuerInfo, Element encryptedAssertion) throws ConfigurationException { ResponseType responseType = new ResponseType(ID, XMLTimeUtil.getIssueInstant()); // Issuer NameIDType issuer = issuerInfo.getIssuer(); responseType.setIssuer(issuer); // Status String statusCode = issuerInfo.getStatusCode(); if (statusCode == null) throw logger.issuerInfoMissingStatusCodeError(); responseType.setStatus(createStatusType(statusCode)); responseType.addAssertion(new RTChoiceType(new EncryptedAssertionType(encryptedAssertion))); return responseType; } }
} else if (JBossSAMLConstants.ENCRYPTED_ASSERTION.get().equals(elementName)) { Element encryptedAssertion = StaxParserUtil.getDOMElement(xmlEventReader); response.addAssertion(new RTChoiceType(new EncryptedAssertionType(encryptedAssertion))); } else throw logger.parserUnknownTag(elementName, startElement.getLocation());
} else if (JBossSAMLConstants.ENCRYPTED_ASSERTION.get().equals(elementName)) { Element encryptedAssertion = StaxParserUtil.getDOMElement(xmlEventReader); response.addAssertion(new RTChoiceType(new EncryptedAssertionType(encryptedAssertion))); } else throw logger.parserUnknownTag(elementName, startElement.getLocation());
response.addAssertion(new RTChoiceType(new EncryptedAssertionType(encryptedAssertion)));
response.addAssertion(new RTChoiceType(new EncryptedAssertionType(encryptedAssertion)));
} else if (JBossSAMLConstants.ENCRYPTED_ASSERTION.get().equals(elementName)) { Element encryptedAssertion = StaxParserUtil.getDOMElement(xmlEventReader); response.addAssertion(new RTChoiceType(new EncryptedAssertionType(encryptedAssertion))); } else throw logger.parserUnknownTag(elementName, startElement.getLocation());