Class PolicyUtil
java.lang.Object
com.sun.ts.lib.util.sec.security.util.PolicyUtil
A utility class for getting a KeyStore instance from policy information. In addition, a supporting getInputStream
method.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InputStream
getInputStream
(URL url) static KeyStore
getKeyStore
(URL policyUrl, String keyStoreName, String keyStoreType, String keyStoreProvider, String storePassURL, Debug debug) this is intended for use by policytool and the policy parser to instantiate a KeyStore from the information in the GUI/policy file
-
Constructor Details
-
PolicyUtil
public PolicyUtil()
-
-
Method Details
-
getInputStream
- Throws:
IOException
-
getKeyStore
public static KeyStore getKeyStore(URL policyUrl, String keyStoreName, String keyStoreType, String keyStoreProvider, String storePassURL, Debug debug) throws KeyStoreException, MalformedURLException, IOException, NoSuchProviderException, NoSuchAlgorithmException, CertificateException this is intended for use by policytool and the policy parser to instantiate a KeyStore from the information in the GUI/policy file
-