Package javacard.security


package javacard.security

Provides classes and interfaces that contain publicly-available functionality for implementing a security and cryptography framework on the Java Card platform. Classes which contain security and cryptography functionality which may be subject to export controls are contained in the optional package javacardx.crypto.

Classes in the javacard.security package provide the definitions of algorithms that perform these security and cryptography functions:

  • Class
    Description
    AESKey contains a 16/24/32 byte key for AES computations based on the Rijndael algorithm.
    A (transparent) specification of cryptographic parameters.
    The Checksum class is the base class for CRC (cyclic redundancy check) checksum algorithms.
    CryptoException represents a cryptography-related exception.
    DESKey contains an 8/16/24-byte key for single/2 key triple DES/3 key triple DES operations.
    The DHKey interface is the base interface for the DH algorithm's private and public key implementations.
    The DHPrivateKey interface is used to sign data using the DH algorithm.
    The DHPublicKey interface is used to verify signatures on signed data using the DH algorithm.
    The DSAKey interface is the base interface for the DSA algorithm's private and public key implementations.
    The DSAPrivateKey interface is used to sign data using the DSA algorithm.
    The DSAPublicKey interface is used to verify signatures on signed data using the DSA algorithm.
    The ECKey interface is the base interface for the EC algorithm's private and public key implementations.
    The ECPrivateKey interface is used to generate signatures on data using the ECDSA (Elliptic Curve Digital Signature Algorithm) and to generate shared secrets using the ECDH (Elliptic Curve Diffie-Hellman) algorithm.
    The ECPublicKey interface is used to verify signatures on signed data using the ECDSA algorithm and to generate shared secrets using the ECDH algorithm.
    GenericSecretKey contains sensitive data value.
    HMACKey contains a key for HMAC operations.
    The InitializedMessageDigest class is a subclass of the base class MessageDigest.
    The OneShot class is a specialization of the InitializedMessageDigest class intended to support efficient one-shot hash operations that may avoid persistent memory writes entirely.
    The Key interface is the base interface for all keys.
    The KeyAgreement class is the base class for key agreement algorithms such as Diffie-Hellman and EC Diffie-Hellman [IEEE P1363].
    The KeyBuilder class is a key object factory.
    This class is a container for a key pair (a public key and a private key).
    KoreanSEEDKey contains an 16-byte key for Korean Seed Algorithm operations.
    The MessageDigest class is the base class for hashing algorithms.
    The OneShot class is a specialization of the MessageDigest class intended to support efficient one-shot hash operations that may avoid persistent memory writes entirely.
    This class is used to specify any algorithm parameters that are determined by a standard name.
    The PrimalityTestParamSpec interface can be used for key pair generation (e.g RSA) for configuring the primality test algorithm.
    The PrivateKey interface is the base interface for private keys used in asymmetric algorithms.
    The PublicKey interface is the base interface for public keys used in asymmetric algorithms.
    The RandomData abstract class is the base class for random number generation.
    The OneShot class is a specialization of the RandomData class intended to support efficient one-shot random data generation operations that may avoid persistent memory writes entirely.
    The RSAPrivateCrtKey interface is used to sign data using the RSA algorithm in its Chinese Remainder Theorem form.
    The RSAPrivateKey class is used to sign data using the RSA algorithm in its modulus/exponent form.
    The RSAPublicKey is used to verify signatures on signed data using the RSA algorithm.
    The SecretKey class is the base interface for keys used in symmetric algorithms (DES, for example).
    The Signature class is the base class for Signature algorithms.
    The OneShot class is a specialization of the Signature class intended to support efficient one-shot signing and verification operations that may avoid persistent memory writes entirely.
    A subclass of the abstract Signature class must implement this SignatureMessageRecovery interface to provide message recovery functionality.
    The SM2KeyAgreementParameterSpec interface can be used for KeyAgreement operation as defined in the GM/T 0003.3-2012 (Public Key Cryptographic Algorithm SM2 Based on Elliptic Curves Part 3: Key Exchange Protocol).
    SM4Key contains a 128-bit key for SM4 computations.
    The XECKey interface is the base interface for all EC keys used for named curves with predefined parameters and encoding.
    The XECPrivateKey interface is the base interface for EC private keys for named curves with predefined parameters.
    The XECPublicKey interface is the base interface for EC public keys for named curves with predefined parameters.