Skip to main content
IBM  
Shop Support Downloads
IBM Home Products Consulting Industries News About IBM
IBM developerWorks : Java : Education - Tutorials
Using JSSE for secure socket communication
ZIPPDF (letter)PDF (A4)e-mail
Main menuSection menuFeedbackPreviousNext
5. Using JSSE sockets
  


Reading keystores page 7 of 11


In the previous panel, we read the key information from server.public, which contains the server side's public key. We also need to read the client key pair from client.private, as shown here:


    private void setupClientKeyStore()
        throws GeneralSecurityException, IOException {
      clientKeyStore = KeyStore.getInstance( "JKS" );
      clientKeyStore.load( new FileInputStream( "client.private" ),
                         "public".toCharArray() );
    }

Main menuSection menuFeedbackPreviousNext
Privacy Legal Contact