Client/server applications can be written utilizing both the java.net and java.rmi packages. Security is also covered in detail throughout several chapters including security policies and data encryption. XML parsing is done using the JAXP API. Programmers can use C and C++ functions from their Java programs using JNI. The course ends with several chapters on design patterns and how they can be put to best use in different types of Java applications.
Target Audience:
Java programmers who wish to increase their depth of knowledge in Java programming and explore the uses of the various advanced packages.
Pre-requisites:
Either Java Programming or Java Fundamentals for Non-C Programmers is required.
Outline:
Advanced I/O - Object Serialization
What is Serialization?
Serializable Objects
Writing an Object
Reading an Object
Handling Exceptions
Customizing Serialization
Controlling Serialization
Versioning
Advanced I/O New I/O
The java.nio package
Buffers and Channels
Buffer Implementations
Buffer Methods
ByteBuffer Methods
FileChannel
File Locking
MappedByteBuffer
Transferring Data Between Channels
Character Sets
Reflection
Introduction to Reflection
The Class Class
The reflect Package
Constructors
Fields
Methods
Exception Handling and Reflection
JavaBeans
Dynamic Programming
Advanced JDBC
JDBC SQL Escape Syntax
The execute() Method
Batch Updates
Updatable Result Sets
Large Objects
Working with Savepoints
RowSets
CachedRowSets
DataSources
Networking with Sockets
Clients and Servers
Ports, Addresses and Protocols
The Socket Class
Communication Using I/O
Servers
The ServerSocket Class
Concurrent Servers
The URL Class
The URLConnection Class
Remote Method Invocation
Distributed Applications
Stubs
Steps to Create a Remote Object
An RMI Client
An RMI Server
RMI Classes and Interfaces
Class Distribution
RMI Utilities
Parameter Passing and Serialization
Advanced RMI
Client Callbacks
Dynamic Class Loading
Activation
Activatable Objects
Registering Activatable Objects
Security and Activation
JNDI and RMI Registry
RMI-IIOP
Managing Security Policies
Untrusted Code
Security Managers
The Java Security Model
Policy Entries
Policy Files
Using the Policy Tool
Securing Applets
Securing Applications
Keys, Signatures, and Certificates
Jar Files
Data Security Concerns
Message Digests
Digital Signatures
Using keytool
Using jarsigner
Certificates
Certificate Chains
Managing Keys and Certificates
Security Policies for Signed Code
Java Cryptography Architecture
Encryption with the javax.crypto Package
Cryptography Concepts
Encryption Keys
Cipher Algorithms
Modes and Padding Schemes
The Cipher Class
Encrypting and Decrypting Data
Cipher Output Stream
Cipher Input Stream
Encryption using Password Ciphers
Exchanging Encrypted Keys
Sealed Objects
Java Authentication and Authorization Service (JAAS)