|
|
|
![]() |
![]() |
![]() |
![]() |
IBM developerWorks : Java : Education - Tutorials![]() | ![]() ![]() ![]() ![]() |
![]() |
![]() | |||||
![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
![]() | ||||
We're at the last step. All the work we've done so far has given us an SSLContext, which we're going to use to make a connection to a remote machine, as shown in the code sample below: SSLSocketFactory sf = sslContext.getSocketFactory(); SSLSocket socket = (SSLSocket)sf.createSocket( host, port ); We've just made a secure connection to port port on the machine host. |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
![]() |
|
|