-
Encryption of Network Communications using JSSE Part 4: Generating Security Certificates
The series leading up to now has been focused on the basics of unencrypted communications. Well, now we’re ready to dig into the good stuff, data encryption.
By Bryan YoungRead More
February 14, 2012 -
Encryption of Network Communications using JSSE Part 3: A Basic Socket Client
In part 2 of this series, we created an unencrypted socket server that listens for connections from a client indefinitely. Now we need to write the client that will actually connect to that server.
By Bryan YoungRead More
January 31, 2012 -
Encryption of Network Communications using JSSE Part 2: A Basic Socket Server
In part 1 of this series, we saw a general overview of what sockets are, and how JSSE is used to secure that data transfer. Now we’re going to dive in and write our own encrypted server/client system.
By Bryan YoungRead More
January 17, 2012 -
Encryption of Network Communications using JSSE Part 1: Introduction to Sockets
The Java Secure Socket Extension (JSSE) is an extension of the JDK which takes standard java sockets and adds a layer of encryption to them. It does this through the use of Secure Socket Layer (SSL) and Transport Layer Security (TLS) technologies. In a nutshell, this lets you transfer information …
By Bryan YoungRead More
December 21, 2011 -
Using Finally to Write Clean Code
If you have done anything more than a simple “Hello World” program in java, you know that one of the biggest pains in the neck is dealing with exceptions and error handling. This is done through the try – catch structure. When the program is running and an exception pops …
By Bryan YoungRead More
September 16, 2011 -
Using JDBC to Connect to MySQL Part 5
In part 4 of this series, we began creating a class that would handle all of our database needs. We created a constructor and our database Connection object, and are now ready to write the functions to query our database.
By Bryan YoungRead More
September 9, 2011 -
Using JDBC to Connect to MySQL Part 4
In part 3 of this series, we finished discussing the final points of using a database in our java programs. Now we will incorporate everything into one class that we can include in any program we write.
By Bryan YoungRead More
September 2, 2011 -
Using JDBC to Connect to MySQL Part 3
There is another kind of statement which comes in handy when you are issuing an INSERT or UPDATE query. This is the PreparedStatement. The purpose of this object is to handle any characters which would need escaping. For instance, in our UPDATE statement above, we could store our name and …
By Bryan YoungRead More
August 26, 2011 -
Using JDBC to Connect to MySQL Part 2
In part 1 of this series, we discovered how to setup a database connection and execute statements that do not return any data. Here we will handle those types of queries and the data we get from them.
By Bryan YoungRead More
August 19, 2011 -
Using JDBC to Connect to MySQL Part 1
One of the best things you can do to increase your programming abilities is to learn how to create database connections in whatever language you are using. JDBC (Java DataBase Connector) is the tool you need to make this possible in java. Once installed, using it is fairly straightforward.
By Bryan YoungRead More
August 12, 2011