Section extends Component implements ParagraphContainer,
		TableContainer, ListContainer { public void setProtectionKeyDigestProvider( ProtectionKeyDigestProvider provider) { protectionKeyDigestProvider = provider; } private  Section(Document doc, TextSectionElement element); static Section getInstance(TextSectionElement element); Document getOwnerDocument(); String getName(); void setName(String name); void remove(); TextSectionElement getOdfElement(); void setProtected(boolean isProtected); boolean isProtected(); void setProtectedWithPassword(String key); String getProtectedPassword(); String getProtectionKeyDigestAlgorithm(); void setProtectionKeyDigestProvider(
			ProtectionKeyDigestProvider provider); ProtectionKeyDigestProvider getProtectionKeyDigestProvier(); ProtectionKeyDigestProvider getDefaultProtectionKeyDigestProvider(); @Override boolean equals(Object obj); Paragraph addParagraph(String textContent); OdfElement getParagraphContainerElement(); boolean removeParagraph(Paragraph para); Paragraph getParagraphByIndex(int index, boolean isEmptyParagraphSkipped); Paragraph getParagraphByReverseIndex(int reverseIndex, boolean isEmptyParagraphSkipped); Iterator<Paragraph> getParagraphIterator(); Table addTable(); Table addTable(int numRows, int numCols); TableBuilder getTableBuilder(); Table getTableByName(String name); OdfElement getTableContainerElement(); List<Table> getTableList(); org.odftoolkit.simple.text.list.List addList(); org.odftoolkit.simple.text.list.List addList(ListDecorator decorator); void clearList(); OdfElement getListContainerElement(); Iterator<org.odftoolkit.simple.text.list.List> getListIterator(); boolean removeList(org.odftoolkit.simple.text.list.List list); Section getEmbeddedSectionByName(String chdSecName);  }
@Test public void testSetProtectionKeyDigestProvider() { try { TextDocument doc = TextDocument.newTextDocument(); Section section = doc.appendSection("Section1"); section.addParagraph("Section 1"); Assert.assertNotNull(section); section.setProtectionKeyDigestProvider(new MyDigestGenerator()); section.setProtectedWithPassword("12345"); Assert.assertEquals(true, section.isProtected()); Assert.assertEquals("gnzLDuqKcGxMNKFokfhOew==", section.getProtectedPassword()); Assert.assertEquals("http: section.getProtectionKeyDigestAlgorithm()); section.setProtectionKeyDigestProvider(null); section.setProtectedWithPassword("12345"); Assert.assertEquals(true, section.isProtected()); Assert.assertEquals("LyQWujvPXbGDYsrSDKkAiVFavg8=", section.getProtectedPassword()); Assert.assertEquals("http: section.getProtectionKeyDigestAlgorithm()); } catch (Exception e) { e.printStackTrace(); Assert.fail(); } }