@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 |
---|---|
java.lang.String |
getPassword(java.lang.String resourceKey) |
static FilePasswordProvider |
of(java.lang.String password) |
static final FilePasswordProvider EMPTY
null
- i.e., unprotected key filejava.lang.String getPassword(java.lang.String resourceKey) throws java.io.IOException
resourceKey
- The resource key representing the private
filenull
/empty then no password is requiredjava.io.IOException
- if cannot resolve passwordstatic FilePasswordProvider of(java.lang.String password)