public class PEMKeyStoreParameters extends Object implements KeyStore.LoadStoreParameter
Constructor and Description |
---|
PEMKeyStoreParameters(String initDefaultCertDir)
This is the simplest constructor which only accepts a directory where all of the security material is stored.
|
PEMKeyStoreParameters(String initCertDirs,
String initDefaultCertDir)
This is a slightly more complicated constructor which allows the user to specify one or more directory where the
certificates are currently stored.
|
PEMKeyStoreParameters(String initCertDirs,
String initDefaultCertDir,
String initProxyFileName)
This constructor is for users who have a proxy certificate in addition to other security materials.
|
PEMKeyStoreParameters(String initCertDirs,
String initDefaultCertDir,
String initUserCertFileName,
String initUserKeyFileName,
KeyStore.ProtectionParameter initProtectionParameter)
A Constructor supporting the initial storage directories for the certificates, the default storage directory,
the filename of the user's certificate file, the file name of the user's key file and a ProtectionParameter.
|
PEMKeyStoreParameters(String initCertDirs,
String initDefaultCertDir,
String initUserCertFileName,
String initUserKeyFileName,
KeyStore.ProtectionParameter initProtectionParameter,
String initProxyFileName)
This is the full constructor for users with proxy certificates.
|
Modifier and Type | Method and Description |
---|---|
String |
getCertDirs() |
String |
getDefaultCertDir() |
KeyStore.ProtectionParameter |
getProtectionParameter() |
String |
getProxyFilename() |
String |
getUserCertFilename() |
String |
getUserKeyFilename() |
public PEMKeyStoreParameters(String initDefaultCertDir)
initDefaultCertDir
- The directory for storage of security materialpublic PEMKeyStoreParameters(String initCertDirs, String initDefaultCertDir)
initCertDirs
- Directories where security material exists.initDefaultCertDir
- A default directory for the storage of security materialpublic PEMKeyStoreParameters(String initCertDirs, String initDefaultCertDir, String initUserCertFileName, String initUserKeyFileName, KeyStore.ProtectionParameter initProtectionParameter)
initCertDirs
- Directories where security material exists.initDefaultCertDir
- A default directory for the storage of security material.initUserCertFileName
- The file name for the user's certificate.initUserKeyFileName
- The file name for the user's key.initProtectionParameter
- A protection parameter for this keystore.public PEMKeyStoreParameters(String initCertDirs, String initDefaultCertDir, String initProxyFileName)
initCertDirs
- Directories where security material exists.initDefaultCertDir
- A default directory for the storage of security material.initProxyFileName
- The file name for the user's proxy certificate.public PEMKeyStoreParameters(String initCertDirs, String initDefaultCertDir, String initUserCertFileName, String initUserKeyFileName, KeyStore.ProtectionParameter initProtectionParameter, String initProxyFileName)
initCertDirs
- Directories where security material exists.initDefaultCertDir
- A default directory for the storage of security material.initUserCertFileName
- The file name for the user's certificate.initUserKeyFileName
- The file name for the user's key.initProtectionParameter
- A protection parameter for this keystore.initProxyFileName
- The file name for the user's proxy certificate.public KeyStore.ProtectionParameter getProtectionParameter()
getProtectionParameter
in interface KeyStore.LoadStoreParameter
public String getCertDirs()
public String getDefaultCertDir()
public String getUserCertFilename()
public String getUserKeyFilename()
public String getProxyFilename()
Copyright © 2016. All rights reserved.