Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6283647

Keystore typos in JSSERefGuide

XMLWordPrintable

    • b89
    • generic
    • generic

      > I've found a little bug while I'm programming your example in the
      > JSSERefGuide
      > <http://java.sun.com/j2se/1.5.0/docs/guide/security/jsse/JSSERefGuide.html>.
      > It's in the "Getting Started"-chapter. In your programm you initialize
      > the keystore and truststore, but the variable "ks" didn't exists... I
      > think you mean instead "ksKeys" and "ksTrust"... ;-)
      >
      > Here's the code:
      > .
      > // First initialize the key and trust material.
      > KeyStore ksKeys = KeyStore.getInstance("JKS");
      > ks.load(new FileInputStream("testKeys"), passphrase);
      > KeyStore ksTrust = KeyStore.getInstance("JKS");
      > ks.load(new FileInputStream("testTrust"), passphrase);
      >
      > // KeyManager's decide which key material to use.
      > .
      >
      > Kind regards,
      > Martin Rasel
      >
      >

      ###@###.### 2005-06-10 01:49:18 GMT

            xuelei Xuelei Fan
            wetmore Bradford Wetmore
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: