Package com.sun.ts.lib.util.sec.security.util

# Class PolicyUtil

java.lang.Object
com.sun.ts.lib.util.sec.security.util.PolicyUtil

public class PolicyUtil extends Object
A utility class for getting a KeyStore instance from policy information. In addition, a supporting getInputStream method.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `PolicyUtil()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static 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

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### PolicyUtil

    public PolicyUtil()

- ## Method Details

  - ### getInputStream

    public static InputStream getInputStream(URL url) throws IOException
    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
    Throws:
      `KeyStoreException`
      `MalformedURLException`
      `IOException`
      `NoSuchProviderException`
      `NoSuchAlgorithmException`
      `CertificateException`