private InputStream parseSAMLRequestRedirectBinding(String samlMessage) { InputStream is; is = RedirectBindingUtil.base64DeflateDecode(samlMessage); return is; }
private InputStream parseSAMLRequestRedirectBinding(String samlMessage) { InputStream is; is = RedirectBindingUtil.base64DeflateDecode(samlMessage); return is; }
private InputStream parseSAMLRequestRedirectBinding(String samlMessage) { InputStream is; is = RedirectBindingUtil.base64DeflateDecode(samlMessage); return is; }
public RequestAbstractType getSAMLRequest(String samlMessage) throws ParsingException, ConfigurationException, ProcessingException { InputStream is = null; SAML2Request saml2Request = new SAML2Request(); if (redirectProfile) { try { is = RedirectBindingUtil.base64DeflateDecode(samlMessage); } catch (Exception e) { log.error("Exception in parsing saml message:", e); throw new ParsingException(); } } else { byte[] samlBytes = PostBindingUtil.base64Decode(samlMessage); if (trace) log.trace("SAMLRequest=" + new String(samlBytes)); is = new ByteArrayInputStream(samlBytes); } return saml2Request.getRequestType(is); }
public RequestAbstractType getSAMLRequest(String samlMessage) throws ParsingException, ConfigurationException, ProcessingException { InputStream is = null; SAML2Request saml2Request = new SAML2Request(); if (redirectProfile) { try { is = RedirectBindingUtil.base64DeflateDecode(samlMessage); } catch (Exception e) { log.error("Exception in parsing saml message:", e); throw new ParsingException(); } } else { byte[] samlBytes = PostBindingUtil.base64Decode(samlMessage); if (trace) log.trace("SAMLRequest=" + new String(samlBytes)); is = new ByteArrayInputStream(samlBytes); } return saml2Request.getRequestType(is); }
public SAMLDocumentHolder getSAMLDocumentHolder(String samlMessage) throws ParsingException, ConfigurationException, ProcessingException { InputStream is = null; SAML2Request saml2Request = new SAML2Request(); if (redirectProfile) { is = RedirectBindingUtil.base64DeflateDecode(samlMessage); } else { try { byte[] samlBytes = PostBindingUtil.base64Decode(samlMessage); if (trace) log.trace("SAMLRequest=" + new String(samlBytes)); is = new ByteArrayInputStream(samlBytes); } catch (Exception rte) { if (trace) log.trace("Error in base64 decoding saml message: " + rte); throw new ParsingException(rte); } } saml2Request.getSAML2ObjectFromStream(is); return saml2Request.getSamlDocumentHolder(); }
public SAMLDocumentHolder getSAMLDocumentHolder(String samlMessage) throws ParsingException, ConfigurationException, ProcessingException { InputStream is = null; SAML2Request saml2Request = new SAML2Request(); if (redirectProfile) { is = RedirectBindingUtil.base64DeflateDecode(samlMessage); } else { try { byte[] samlBytes = PostBindingUtil.base64Decode(samlMessage); if (trace) log.trace("SAMLRequest=" + new String(samlBytes)); is = new ByteArrayInputStream(samlBytes); } catch (Exception rte) { if (trace) log.trace("Error in base64 decoding saml message: " + rte); throw new ParsingException(rte); } } saml2Request.getSAML2ObjectFromStream(is); return saml2Request.getSamlDocumentHolder(); }
public RequestAbstractType getSAMLRequest(String samlMessage) throws ParsingException, ConfigurationException, ProcessingException { InputStream is = null; SAML2Request saml2Request = new SAML2Request(); if (redirectProfile) { try { is = RedirectBindingUtil.base64DeflateDecode(samlMessage); } catch (Exception e) { logger.samlParsingError(e); throw logger.parserError(e); } } else { byte[] samlBytes = PostBindingUtil.base64Decode(samlMessage); logger.trace("SAML Request Document: " + new String(samlBytes)); is = new ByteArrayInputStream(samlBytes); } return saml2Request.getRequestType(is); }
private Document toSAMLResponseDocument(String samlResponse, boolean isPostBinding) throws ParsingException { InputStream dataStream = null; if (isPostBinding) { // deal with SAML response from IDP dataStream = PostBindingUtil.base64DecodeAsStream(samlResponse); } else { // deal with SAML response from IDP dataStream = RedirectBindingUtil.base64DeflateDecode(samlResponse); } try { return DocumentUtil.getDocument(dataStream); } catch (Exception e) { logger.samlResponseFromIDPParsingFailed(); throw new ParsingException("", e); } }
private Document toSAMLResponseDocument(String samlResponse, boolean isPostBinding) throws ParsingException { InputStream dataStream = null; if (isPostBinding) { // deal with SAML response from IDP dataStream = PostBindingUtil.base64DecodeAsStream(samlResponse); } else { // deal with SAML response from IDP dataStream = RedirectBindingUtil.base64DeflateDecode(samlResponse); } try { return DocumentUtil.getDocument(dataStream); } catch (Exception e) { logger.samlResponseFromIDPParsingFailed(); throw new ParsingException("", e); } }
private Document toSAMLResponseDocument(String samlResponse, boolean isPostBinding) throws ParsingException { InputStream dataStream = null; if (isPostBinding) { // deal with SAML response from IDP dataStream = PostBindingUtil.base64DecodeAsStream(samlResponse); } else { // deal with SAML response from IDP dataStream = RedirectBindingUtil.base64DeflateDecode(samlResponse); } try { return DocumentUtil.getDocument(dataStream); } catch (Exception e) { logger.samlResponseFromIDPParsingFailed(); throw new ParsingException("", e); } }
private Document toSAMLResponseDocument(String samlResponse, boolean isPostBinding) throws ParsingException { InputStream dataStream = null; if (isPostBinding) { // deal with SAML response from IDP dataStream = PostBindingUtil.base64DecodeAsStream(samlResponse); } else { // deal with SAML response from IDP dataStream = RedirectBindingUtil.base64DeflateDecode(samlResponse); } try { return DocumentUtil.getDocument(dataStream); } catch (Exception e) { logger.samlResponseFromIDPParsingFailed(); throw new ParsingException("", e); } }
private Document toSAMLResponseDocument(String samlResponse, boolean isPostBinding) throws ParsingException { InputStream dataStream = null; if (isPostBinding) { // deal with SAML response from IDP dataStream = PostBindingUtil.base64DecodeAsStream(samlResponse); } else { // deal with SAML response from IDP dataStream = RedirectBindingUtil.base64DeflateDecode(samlResponse); } try { return DocumentUtil.getDocument(dataStream); } catch (Exception e) { logger.samlResponseFromIDPParsingFailed(); throw new ParsingException("", e); } }
private Document toSAMLResponseDocument(String samlResponse, boolean isPostBinding) throws ParsingException { InputStream dataStream = null; if (isPostBinding) { // deal with SAML response from IDP dataStream = PostBindingUtil.base64DecodeAsStream(samlResponse); } else { // deal with SAML response from IDP dataStream = RedirectBindingUtil.base64DeflateDecode(samlResponse); } try { return DocumentUtil.getDocument(dataStream); } catch (Exception e) { logger.samlResponseFromIDPParsingFailed(); throw new ParsingException("", e); } }
private Document toSAMLResponseDocument(String samlResponse, boolean isPostBinding) throws ParsingException { InputStream dataStream = null; if (isPostBinding) { // deal with SAML response from IDP dataStream = PostBindingUtil.base64DecodeAsStream(samlResponse); } else { // deal with SAML response from IDP dataStream = RedirectBindingUtil.base64DeflateDecode(samlResponse); } try { return DocumentUtil.getDocument(dataStream); } catch (Exception e) { logger.samlResponseFromIDPParsingFailed(); throw new ParsingException("", e); } }
public SAMLDocumentHolder getSAMLDocumentHolder(String samlMessage) throws ParsingException, ConfigurationException, ProcessingException { InputStream is = null; SAML2Request saml2Request = new SAML2Request(); try { if (redirectProfile) { is = RedirectBindingUtil.base64DeflateDecode(samlMessage); } else { byte[] samlBytes = PostBindingUtil.base64Decode(samlMessage); logger.trace("SAML Request Document: " + new String(samlBytes)); is = new ByteArrayInputStream(samlBytes); } } catch (Exception rte) { logger.samlBase64DecodingError(rte); throw logger.parserError(rte); } saml2Request.getSAML2ObjectFromStream(is); return saml2Request.getSamlDocumentHolder(); }
base64DecodedResponse = RedirectBindingUtil.base64DeflateDecode(samlResponse); } else { base64DecodedResponse = PostBindingUtil.base64DecodeAsStream(samlResponse);
private SAMLDocumentHolder getSAMLDocumentHolder(String samlResponse) throws ParsingException, ConfigurationException, ProcessingException { SAML2Response saml2Response = new SAML2Response(); InputStream dataStream = null; if (isPostBinding()) { // deal with SAML response from IDP dataStream = PostBindingUtil.base64DecodeAsStream(samlResponse); } else { // deal with SAML response from IDP dataStream = RedirectBindingUtil.base64DeflateDecode(samlResponse); } try { saml2Response.getSAML2ObjectFromStream(dataStream); } catch (ProcessingException pe) { logger.samlResponseFromIDPParsingFailed(); throw pe; } catch (ParsingException pe) { logger.samlResponseFromIDPParsingFailed(); throw pe; } return saml2Response.getSamlDocumentHolder(); } }
private SAMLDocumentHolder getSAMLDocumentHolder(String samlResponse) throws ParsingException, ConfigurationException, ProcessingException { SAML2Response saml2Response = new SAML2Response(); InputStream dataStream = null; if (isPostBinding()) { // deal with SAML response from IDP dataStream = PostBindingUtil.base64DecodeAsStream(samlResponse); } else { // deal with SAML response from IDP dataStream = RedirectBindingUtil.base64DeflateDecode(samlResponse); } try { saml2Response.getSAML2ObjectFromStream(dataStream); } catch (ProcessingException pe) { logger.samlResponseFromIDPParsingFailed(); throw pe; } catch (ParsingException pe) { logger.samlResponseFromIDPParsingFailed(); throw pe; } return saml2Response.getSamlDocumentHolder(); } }
private SAMLDocumentHolder getSAMLDocumentHolder(String samlResponse) throws ParsingException, ConfigurationException, ProcessingException { SAML2Response saml2Response = new SAML2Response(); InputStream dataStream = null; if (isPostBinding()) { // deal with SAML response from IDP dataStream = PostBindingUtil.base64DecodeAsStream(samlResponse); } else { // deal with SAML response from IDP dataStream = RedirectBindingUtil.base64DeflateDecode(samlResponse); } try { saml2Response.getSAML2ObjectFromStream(dataStream); } catch (ProcessingException pe) { logger.samlResponseFromIDPParsingFailed(); throw pe; } catch (ParsingException pe) { logger.samlResponseFromIDPParsingFailed(); throw pe; } return saml2Response.getSamlDocumentHolder(); } }