security: In BasicIdentityStorage and FilePrivateKeyStorage, use File because java.nio.file.Path is not available before Java 7.