@FunctionalInterface public interface FilePasswordProvider
| Modifier and Type | Field and Description |
|---|---|
static FilePasswordProvider |
EMPTY
An "empty" provider that returns
null - i.e., unprotected key file |
| Modifier and Type | Method and Description |
|---|---|
String |
getPassword(String resourceKey) |
static FilePasswordProvider |
of(String password) |
static final FilePasswordProvider EMPTY
null - i.e., unprotected key fileString getPassword(String resourceKey) throws IOException
resourceKey - The resource key representing the private
filenull/empty then no password is requiredIOException - if cannot resolve passwordstatic FilePasswordProvider of(String password)
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.