private String readContextPassword(XMLEventReader reader)
            throws JournalException, XMLStreamException {
        XMLEvent startTag = readStartTag(reader, QNAME_TAG_PASSWORD);
        passwordType =
                getOptionalAttributeValue(startTag.asStartElement(),
                                          QNAME_ATTR_PASSWORD_TYPE);
        return readCharactersUntilEndTag(reader, QNAME_TAG_PASSWORD);
    }
private String readContextPassword ( XMLEventReader reader ) throws JournalException , XMLStreamException { XMLEvent startTag = readStartTag ( reader , QNAME_TAG_PASSWORD ) ; passwordType = getOptionalAttributeValue ( startTag . asStartElement ( ) , QNAME_ATTR_PASSWORD_TYPE ) ; return readCharactersUntilEndTag ( reader , QNAME_TAG_PASSWORD ) ; }
Read the context password from XML. Note: While doing this, fetch the
password type, and store it to use when deciphering the password. Not the
cleanest structure, perhaps, but it will serve for now.