public interface PasswordProvider
ParseContext
supplied to Parser.parse(java.io.InputStream, org.xml.sax.ContentHandler, Metadata, ParseContext)
to provide a way to get the document password.
An implementation of this interface defines some specific selection
or lookup criteria, to be applied against the document metadata passed
to the getPassword(Metadata)
method.Modifier and Type | Method and Description |
---|---|
String |
getPassword(Metadata metadata)
Looks up the password for a document with the given metadata,
and returns it for the Parser.
|
String getPassword(Metadata metadata)
metadata
- document metadatanull
if not knownCopyright © 2007–2016 The Apache Software Foundation. All rights reserved.