@Test(expected = DS4PException.class) public void testMaskElement_Throws_DS4PException() throws Exception { @SuppressWarnings("unused") String s = documentMasker.maskDocument("", EncryptTool.generateKeyEncryptionKey(), ruleExecutionContainer, xacmlResultMock); }
@Override public String maskDocument(String document, Key deSedeMaskKey, RuleExecutionContainer ruleExecutionContainer, XacmlResult xacmlResult) { Document xmlDocument = null; String xmlString = null; try { xmlDocument = documentXmlConverter.loadDocument(document); xmlString = documentXmlConverter.convertXmlDocToString(xmlDocument); } catch (final Exception e) { logger.error(e.getMessage(), e); throw new DS4PException(e.toString(), e); } return xmlString; }
DocumentMaskerImpl implements DocumentMasker { @Override public String maskDocument(String document, Key deSedeMaskKey, RuleExecutionContainer ruleExecutionContainer, XacmlResult xacmlResult) { Document xmlDocument = null; String xmlString = null; try { xmlDocument = documentXmlConverter.loadDocument(document); xmlString = documentXmlConverter.convertXmlDocToString(xmlDocument); } catch (final Exception e) { logger.error(e.getMessage(), e); throw new DS4PException(e.toString(), e); } return xmlString; } }
DocumentMaskerImpl implements DocumentMasker { @Override public String maskDocument(String document, Key deSedeMaskKey, RuleExecutionContainer ruleExecutionContainer, XacmlResult xacmlResult) { Document xmlDocument = null; String xmlString = null; try { xmlDocument = documentXmlConverter.loadDocument(document); xmlString = documentXmlConverter.convertXmlDocToString(xmlDocument); } catch (final Exception e) { logger.error(e.getMessage(), e); throw new DS4PException(e.toString(), e); } return xmlString; } DocumentMaskerImpl(DocumentXmlConverter documentXmlConverter); }
DocumentMaskerImpl implements DocumentMasker { @Override public String maskDocument(String document, Key deSedeMaskKey, RuleExecutionContainer ruleExecutionContainer, XacmlResult xacmlResult) { Document xmlDocument = null; String xmlString = null; try { xmlDocument = documentXmlConverter.loadDocument(document); xmlString = documentXmlConverter.convertXmlDocToString(xmlDocument); } catch (final Exception e) { logger.error(e.getMessage(), e); throw new DS4PException(e.toString(), e); } return xmlString; } DocumentMaskerImpl(DocumentXmlConverter documentXmlConverter); @Override String maskDocument(String document, Key deSedeMaskKey,
			RuleExecutionContainer ruleExecutionContainer,
			XacmlResult xacmlResult); }
DocumentMaskerImpl implements DocumentMasker { @Override public String maskDocument(String document, Key deSedeMaskKey, RuleExecutionContainer ruleExecutionContainer, XacmlResult xacmlResult) { Document xmlDocument = null; String xmlString = null; try { xmlDocument = documentXmlConverter.loadDocument(document); xmlString = documentXmlConverter.convertXmlDocToString(xmlDocument); } catch (final Exception e) { logger.error(e.getMessage(), e); throw new DS4PException(e.toString(), e); } return xmlString; } DocumentMaskerImpl(DocumentXmlConverter documentXmlConverter); @Override String maskDocument(String document, Key deSedeMaskKey,
			RuleExecutionContainer ruleExecutionContainer,
			XacmlResult xacmlResult);  }