Package org.globus.gsi.stores
Class PEMKeyStoreParameters
java.lang.Object
org.globus.gsi.stores.PEMKeyStoreParameters
- All Implemented Interfaces:
KeyStore.LoadStoreParameter
This parameter class provides all of the options for creating a FileBasedKeyStore.
It is immutable.
- Since:
- 1.0
- Version:
- ${vesion}
-
Constructor Summary
ConstructorsConstructorDescriptionPEMKeyStoreParameters
(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. -
Method Summary
Modifier and TypeMethodDescription
-
Constructor Details
-
PEMKeyStoreParameters
This is the simplest constructor which only accepts a directory where all of the security material is stored. New security material written to this KeyStore will be stored in this directory as well.- Parameters:
initDefaultCertDir
- The directory for storage of security material
-
PEMKeyStoreParameters
This is a slightly more complicated constructor which allows the user to specify one or more directory where the certificates are currently stored. The user can also specify a default directory where new security material can be stored.- Parameters:
initCertDirs
- Directories where security material exists.initDefaultCertDir
- A default directory for the storage of security material
-
PEMKeyStoreParameters
public 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.- Parameters:
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.
-
PEMKeyStoreParameters
public PEMKeyStoreParameters(String initCertDirs, String initDefaultCertDir, String initProxyFileName) This constructor is for users who have a proxy certificate in addition to other security materials.- Parameters:
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.
-
PEMKeyStoreParameters
public PEMKeyStoreParameters(String initCertDirs, String initDefaultCertDir, String initUserCertFileName, String initUserKeyFileName, KeyStore.ProtectionParameter initProtectionParameter, String initProxyFileName) This is the full constructor for users with proxy certificates.- Parameters:
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.
-
-
Method Details
-
getProtectionParameter
- Specified by:
getProtectionParameter
in interfaceKeyStore.LoadStoreParameter
-
getCertDirs
-
getDefaultCertDir
-
getUserCertFilename
-
getUserKeyFilename
-
getProxyFilename
-