Concept Classes

The and javax.crypto packages have classes and interfaces that represent the cryptographic concepts that were introduced in Chapter 2. Table 3.2 summarizes the cryptographic concepts represented in the classes included in JDK 1.2 and JCE 1.2.

Table 3-2. Cryptographic Concept Classes

Class or Interface


A cryptographic certificate


A cipher , , ,javax.crypto.SecretKey

A key, used for signing or encryption


A secret key exchange protocol

Translates public and private keys from one format to another


Creates keys for symmetric ciphers

Creates pairs of public and private keys for signing or encryption


A Message Authentication Code (MAC)

A cryptographic hash function


Translates secret keys from one format to another

A cryptographically strong random number engine

A digital signature

Get Java Cryptography now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.