public final class KVSecurityUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
protected static void |
createLocalKVSecurity(String clientLoginFile,
String serverLoginFile)
Creates the artifacts required to connect to and interact with
a secure store; specifically, a login file, a trust file, and
PasswordCredentials. |
protected static String |
getClientTrustFlnm() |
protected static PasswordCredentials |
getPasswordCredentials() |
protected static String |
getServerLoginFlnm() |
protected static boolean |
removeDir(File fd) |
protected static void createLocalKVSecurity(String clientLoginFile, String serverLoginFile) throws IOException
PasswordCredentials. To create the login and trust
files in the local file system, this method uses the given file
names to retrieve the contents of each respective file as a
resource from the classpath and then writes the contents to the
local file system, in a directory owned by the application. This
is done so that this information is available to the frontend,
client-side of the application when attempting to connect to a
secure store.
This method also caches the names of the given files (as well
as the PasswordCredentials) so that this information
can be retrieved and sent to another party, such as the backend,
server-side of an application; for example, the InputFormat and
InputSplits of a MapReduce job.
IOExceptionprotected static String getServerLoginFlnm()
protected static PasswordCredentials getPasswordCredentials()
protected static String getClientTrustFlnm()
protected static boolean removeDir(File fd) throws IOException
IOExceptionCopyright (c) 2011, 2015 Oracle and/or its affiliates. All rights reserved.