Beta Draft: 2017-03-27

2 Java Security Overview

A broad overview of security in the Java Platform, Standard Edition Release 9, from secure language features to the security APIs, tools, and built-in provider services, highlighting key packages and classes where applicable.

Introduction to Java Security

The Java platform was designed with a strong emphasis on security. At its core, the Java language itself is type-safe and provides automatic garbage collection, enhancing the robustness of application code. A secure class loading and verification mechanism ensures that only legitimate Java code is executed.

The initial version of the Java platform created a safe environment for running potentially untrusted code, such as Java applets downloaded from a public network. As the platform has grown and widened its range of deployment, the Java security architecture has correspondingly evolved to support an increasing set of services. Today the architecture includes a large set of application programming interfaces (APIs), tools, and implementations of commonly-used security algorithms, mechanisms, and protocols. This provides the developer a comprehensive security framework for writing applications, and also provides the user or administrator a set of tools to securely manage applications.

The Java security APIs span a wide range of areas. Cryptographic and public key infrastructure (PKI) interfaces provide the underlying basis for developing secure applications. Interfaces for performing authentication and access control enable applications to guard against unauthorized access to protected resources.

The APIs allow for multiple interoperable implementations of algorithms and other security services. Services are implemented in providers, which are plugged into the Java platform via a standard interface that makes it easy for applications to obtain security services without having to know anything about their implementations. This allows developers to focus on how to integrate security into their applications, rather than on how to actually implement complex security mechanisms.

The Java platform includes a number of providers that implement a core set of security services. It also allows for additional custom providers to be installed. This enables developers to extend the platform with new security mechanisms.

Java Language Security and Bytecode Verification

The Java language is designed to be type-safe and easy to use. It provides automatic memory management, garbage collection, and range-checking on arrays. This reduces the overall programming burden placed on developers, leading to fewer subtle programming errors and to safer, more robust code.

In addition, the Java language defines different access modifiers that can be assigned to Java classes, methods, and fields, enabling developers to restrict access to their class implementations as appropriate. The language defines four distinct access levels:
  • private

  • protected

  • public

  • If access level is not specified then it considered as package level access.

The most restrictive modifier is private access is not allowed outside the particular class in which the private member (a method, for example) is defined. The protected modifier allows access to any subclass, or to other classes within the same package. Package level access only allows access to classes within the same package.

A compiler translates Java programs into a machine-independent bytecode representation. A bytecode verifier is invoked to ensure that only legitimate bytecodes are executed in the Java runtime. It checks that the bytecodes conform to the Java Language Specification and do not violate Java language rules or namespace restrictions. The verifier also checks for memory management violations, stack underflows or overflows, and illegal data typecasts. Once bytecodes have been verified, the Java runtime prepares them for execution.

Basic Security Architecture

The Java platform defines a set of APIs spanning major security areas, including cryptography, public key infrastructure, authentication, secure communication, and access control.

The Java platform defines a set of APIs spanning major security areas, including cryptography, public key infrastructure, authentication, secure communication, and access control. The APIs allow developers to easily integrate security into their application code.

The APIs are designed around the following principles:

Implementation independence
Applications do not need to implement security themselves. Rather, they can request security services from the Java platform. Security services are implemented in Security Providers, which are plugged into the Java platform via a standard interface. An application may rely on multiple independent providers for security functionality.
Implementation interoperability
Providers are interoperable across applications. Specifically, an application is not bound to a specific provider, and a provider is not bound to a specific application.
Algorithm extensibility
The Java platform includes a number of built-in providers that implement a basic set of security services that are widely used today. However, some applications may rely on emerging standards not yet implemented, or on proprietary services. The Java platform supports the installation of custom providers that implement such services.

Security Providers

The class encapsulates the notion of a security provider in the Java platform. It specifies the provider's name and lists the security services it implements. Multiple providers may be configured at the same time, and are listed in order of preference. When a security service is requested, the highest priority provider that implements that service is selected.

Applications rely on the relevant getInstance method to obtain a security service from an underlying provider.

Message digest creation represents one type of service available from providers. See Cryptography. The following figures illustrate options for requesting an SHA-256 message digest implementation. Figure 2-1 and Figure 2-2 show three providers that implement message digest algorithms. An application invokes the getInstance method in the class to obtain an implementation of a specific message digest algorithm, such as SHA-256.

Figure 2-1 Request SHA-256 Message Digest Implementation without Provider

Description of Figure 2-1 follows
Description of "Figure 2-1 Request SHA-256 Message Digest Implementation without Provider"
The following program requests SHA-256 algorithm implementation without specifying a provider name:
    MessageDigest md = MessageDigest.getInstance("SHA-256");

Figure 2-2 Request SHA-256 Message Digest with ProviderC

Description of Figure 2-2 follows
Description of "Figure 2-2 Request SHA-256 Message Digest with ProviderC"

The following program requests an implementation from a specific provider ProviderC, by indicating the provider name in the getInstance function:

    MessageDigest md = 
        MessageDigest.getInstance("SHA-256", "ProviderC");

The Java platform implementation from Oracle includes a number of pre-configured default providers that implement a basic set of security services that can be used by applications. Note that other vendor implementations of the Java platform may include different sets of providers that encapsulate vendor-specific sets of security services. The term built-in default providers is referring to the providers available in Oracle's implementation.

File Locations

A list of Java security files and tools.

Table 2-1 Java security files and tools

Filename Location

The file is in the directory <java-home>/conf/security , where <java-home> is the directory where Java Development Kit (JDK) is installed.

Certain aspects of Java security such as configuring the providers, may be customized by setting security properties. You may set security properties statically in the file. Security properties may also be set dynamically by calling appropriate methods of the Security class (in the package).


The file is in the directory <java-home>/lib/security , where <java-home> is the directory where Java Development Kit (JDK) is installed..

Tools and Commands

The tools and commands are in the <java-home>/bin directory, where <java-home> is the directory where Java Development Kit (JDK) is installed.

Java Cryptography

The Java cryptography architecture is a framework for accessing and developing cryptographic functionality for the Java platform.

It includes APIs for a large variety of cryptographic services, including the following:

  • Message digest algorithms
  • Digital signature algorithms
  • Symmetric bulk encryption
  • Symmetric stream encryption
  • Asymmetric encryption
  • Password-based encryption (PBE)
  • Elliptic Curve Cryptography (ECC)
  • Key agreement algorithms
  • Key generators
  • Message Authentication Codes (MACs)
  • (Pseudo-)random number generators
For historical (export control) reasons, the cryptography APIs are organized into two distinct packages:
  • The package contains classes that are not subject to export controls (like Signature and MessageDigest)

  • The javax.crypto package contains classes that are subject to export controls (like Cipher and KeyAgreement).

The cryptographic interfaces are provider-based, allowing for multiple and interoperable cryptography implementations. Some providers may perform cryptographic operations in software; others may perform the operations on a hardware token. For example, on a smartcard device or on a hardware cryptographic accelerator. Providers that implement export-controlled services must be digitally signed.

The Java platform includes built-in providers for many of the most commonly used cryptographic algorithms, including the RSA, DSA, and ECDSA signature algorithms, the DES, AES, and ARCFOUR encryption algorithms, the MD5, SHA-1, and SHA-256 message digest algorithms, and the Diffie-Hellman and ECDH key agreement algorithms. These default providers implement cryptographic algorithms in Java code.

The Java platform also includes a built-in provider that acts as a bridge to a native PKCS#11 (v2.x) token. This provider, named SunPKCS11, allows Java applications to access seamless cryptographic services located on PKCS#11-compliant tokens.

On Windows, the Java platform includes a built-in provider that acts as a bridge to the native Microsoft CryptoAPI. This provider, named SunMSCAPI, allows Java applications to access seamless cryptographic services on Windows through the CryptoAPI.

Public Key Infrastructure

Public Key Infrastructure (PKI) is a term used for a framework that enables secure exchange of information based on public key cryptography.

It allows identities (of people, organizations, etc.) to be bound to digital certificates and provides a means of verifying the authenticity of certificates. PKI encompasses keys, certificates, public key encryption, and trusted Certification Authorities (CAs) who generate and digitally sign certificates.

The Java platform includes APIs and provider support for X.509 digital certificates and Certificate Revocation Lists (CRLs), as well as PKIX-compliant certification path building and validation. The classes related to PKI are located in the and packages.

Key and Certificate Storage

The Java platform provides for long-term persistent storage of cryptographic keys and certificates via key and certificate stores.

The class represents a key store, a secure repository of cryptographic keys and/or trusted certificates (to be used, for example, during certification path validation), and the class represents a certificate store, a public and potentially vast repository of unrelated and typically untrusted certificates. A CertStore may also store CRLs.

KeyStore and CertStore implementations are distinguished by types. The Java platform includes the standard PKCS11 and PKCS12 key store types (whose implementations are compliant with the corresponding PKCS specifications from RSA Security). It also contains a proprietary file-based key store type called JKS (which stands for "Java Key Store"), and a type called DKS ("Domain Key Store") which is a collection of keystores that are presented as a single logical keystore.

The Java platform includes a special built-in JKS key store, cacerts, that contains a number of certificates for well-known, trusted CAs. The keytool utility is able to list the certificates included in cacerts (see the security features documentation link in Section 10).

The SunPKCS11 provider mentioned in Cryptography includes a PKCS11 KeyStore implementation. This means that keys and certificates residing in secure hardware (such as a smartcard) can be accessed and used by Java applications via the KeyStore API. Note that smartcard keys may not be permitted to leave the device. In such cases, the object reference returned by the KeyStore API may simply be a reference to the key (that is, it would not contain the actual key material). Such a Key object can only be used to perform cryptographic operations on the device where the actual key resides.

The Java platform also includes an LDAP certificate store type (for accessing certificates stored in an LDAP directory), as well as an in-memory Collection certificate store type (for accessing certificates managed in a java.util.Collection object).

Public Key Infrastructure Tools

The tools keytool and jarsigner are used to create and manage key stores.

There are two built-in tools for working with keys, certificates, and key stores:

  • The keytool is used to create and manage key stores. The tool can be used for the following:

    • Create public/private key pairs
    • Display, import, and export X.509 v1, v2, and v3 certificates stored as files
    • Create self-signed certificates
    • Issue certificate (PKCS#10) requests to be sent to CAs
    • Create certificates based on certificate requests
    • Import certificate replies (obtained from the CAs sent certificate requests)
    • Designate public key certificates as trusted
    • Accept a password and store it securely as a secret key
  • The jarsigner tool is used to sign JAR files, or to verify signatures on signed JAR files. The Java ARchive (JAR) file format enables the bundling of multiple files into a single file. Typically a JAR file contains the class files and auxiliary resources associated with applets and applications.

To digitally sign code, perform the following:
  1. Use keytool to generate or import appropriate keys and certificates into your key store (if they are not there already).

  2. Use the jar tool to place the code in a JAR file.

  3. Use the jarsigner tool to sign the JAR file. The jarsigner tool accesses a key store to find any keys and certificates needed to sign a JAR file or to verify the signature of a signed JAR file.


    jarsigner can optionally generate signatures that include a timestamp. Systems (such as Java Plug-in) that verify JAR file signatures can check the timestamp and accept a JAR file that was signed while the signing certificate was valid rather than requiring the certificate to be current. (Certificates typically expire annually, and it is not reasonable to expect JAR file creators to re-sign deployed JAR files annually.)


Authentication is the process of determining the identity of a user.

In the context of the Java runtime environment, it is the process of identifying the user of an executing Java program. In certain cases, this process may rely on the services described in the Cryptography.

The Java platform provides APIs that enable an application to perform user authentication via pluggable login modules. Applications call into the LoginContext class (in the package), which in turn references a configuration. The configuration specifies which login module (an implementation of the interface) is to be used to perform the actual authentication.

Since applications solely talk to the standard LoginContext API, they can remain independent from the underlying plug-in modules. New or updated modules can be plugged in for an application without having to modify the application itself. The following figure illustrates the independence between applications and underlying login modules:

Figure 2-3 Authentication Login Modules Plugging into the Authentication Framework

Description of Figure 2-3 follows
Description of "Figure 2-3 Authentication Login Modules Plugging into the Authentication Framework"

It is important to note that although login modules are pluggable components that can be configured into the Java platform, they are not plugged in via security Providers. Therefore, they do not follow the Provider searching model described in Security Providers. Instead, as is shown in the above diagram, login modules are administered by their own unique configuration.

The Java platform provides the following built-in LoginModules, all in the package:

  • Krb5LoginModule for authentication using Kerberos protocols
  • JndiLoginModule for username/password authentication using LDAP or NIS databases
  • KeyStoreLoginModule for logging into any type of key store, including a PKCS#11 token key store

Authentication can also be achieved during the process of establishing a secure communication channel between two peers. The Java platform provides implementations of a number of standard communication protocols, which are discussed in the following section.

Secure Communication

Java platform provides API support and provider implementations for standard secure communication protocols.

The data that travels across a network can be accessed by someone who is not the intended recipient. When the data includes private information, such as passwords and credit card numbers, steps must be taken to make the data unintelligible to unauthorized parties. It is also important to ensure that you are sending the data to the appropriate party, and that the data has not been modified, either intentionally or unintentionally, during transport.

Cryptography forms the basis required for secure communication. See Cryptography. The Java platform also provides API support and provider implementations for a number of standard secure communication protocols.

SSL, TLS, and DTLS Protocols

The Java platform provides APIs and an implementation of the SSL, TLS, and DTLS protocols that includes functionality for data encryption, message integrity, server authentication, and optional client authentication.

Applications can use SSL/TLS/DTLS to provide for the secure passage of data between two peers over any application protocol, such as HTTP on top of TCP/IP.

The class represents a network socket that encapsulates SSL/TLS support on top of a normal stream socket ( Some applications might want to use alternate data transport abstractions (e.g., New-I/O); the class is available to produce and consume SSL/TLS/DTLS packets.

The Java platform also includes APIs that support the notion of pluggable (provider-based) key managers and trust managers. A key manager is encapsulated by the class, and manages the keys used to perform authentication. A trust manager is encapsulated by the TrustManager class (in the same package), and makes decisions about who to trust based on certificates in the key store it manages.

The Java platform includes a built-in provider that implements the SSL/TLS/DTLS protocols:

  • SSLv3
  • TLSv1
  • TLSv1.1
  • TLSv1.2
  • DTLSv1.0
  • DTLSv1.2

Simple Authentication and Security Layer (SASL)

Simple Authentication and Security Layer (SASL) is an Internet standard that specifies a protocol for authentication and optional establishment of a security layer between client and server applications. The Java SASL API defines classes and interfaces for applications that use SASL mechanisms.

SASL defines how authentication data is to be exchanged, but does not itself specify the contents of that data. It is a framework into which specific authentication mechanisms that specify the contents and semantics of the authentication data can fit. There are a number of standard SASL mechanisms defined by the Internet community for various security levels and deployment scenarios.

The Java SASL API defines classes and interfaces for applications that use SASL mechanisms. It is defined to be mechanism-neutral; an application that uses the API need not be hardwired into using any particular SASL mechanism. Applications can select the mechanism to use based on desired security features. The API supports both client and server applications. The class is used to create SaslClient and SaslServer objects.

SASL mechanism implementations are supplied in provider packages. Each provider may support one or more SASL mechanisms and is registered and invoked via the standard provider architecture.

The Java platform includes a built-in provider that implements the following SASL mechanisms:

  • CRAM-MD5, DIGEST-MD5, EXTERNAL, GSSAPI, NTLM, and PLAIN client mechanisms
  • CRAM-MD5, DIGEST-MD5, GSSAPI, and NTLM server mechanisms

GSS-API and Kerberos

The Java platform contains an API with the Java language bindings for the Generic Security Service Application Programming Interface (GSS-API).

GSS-API offers application programmers uniform access to security services atop a variety of underlying security mechanisms. The Java GSS-API currently requires use of a Kerberos v5 mechanism, and the Java platform includes a built-in implementation of this mechanism. At this time, it is not possible to plug in additional mechanisms.


The Krb5LoginModule mentioned in Authentication can be used in conjunction with the GSS Kerberos mechanism.

The Java platform also includes a built-in implementation of the Simple and Protected GSSAPI Negotiation Mechanism (SPNEGO) GSS-API mechanism.

Before two applications can use the Java GSS-API to securely exchange messages between them, they must establish a joint security context. The context encapsulates shared state information that might include, for example, cryptographic keys. Both applications create and use an org.ietf.jgss.GSSContext object to establish and maintain the shared information that makes up the security context. Once a security context has been established, it can be used to prepare secure messages for exchange.

The Java GSS APIs are in the org.ietf.jgss package. The Java platform also defines basic Kerberos classes, like KerberosPrincipal, KerberosTicket, KerberosKey, and KeyTab, which are located in the package.

Access Control

The access control architecture in the Java platform protects access to sensitive resources (for example, local files) or sensitive application code (for example, methods in a class)

All access control decisions are mediated by a security manager, represented by the java.lang.SecurityManager class. A SecurityManager must be installed into the Java runtime in order to activate the access control checks.

Java applets and Java Web Start applications are automatically run with a SecurityManager installed. However, local applications executed via the java command are by default not run with a SecurityManager installed. In order to run local applications with a SecurityManager, either the application itself must programmatically set one via the setSecurityManager method (in the java.lang.System class), or java must be invoked with a argument on the commandline.


A permission represents access to a system resource. In order for a resource access to be allowed for an applet (or an application running with a security manager), the corresponding permission must be explicitly granted to the code attempting the access.

When Java code is loaded by a class loader into the Java runtime, the class loader automatically associates the following information with that code:

  • Where the code was loaded from
  • Who signed the code (if anyone)
  • Default permissions granted to the code

This information is associated with the code regardless of whether the code is downloaded over an untrusted network (e.g., an applet) or loaded from the filesystem (e.g., a local application). The location from which the code was loaded is represented by a URL, the code signer is represented by the signer's certificate chain, and default permissions are represented by objects.

The default permissions automatically granted to downloaded code include the ability to make network connections back to the host from which it originated. The default permissions automatically granted to code loaded from the local filesystem include the ability to read files from the directory it came from, and also from subdirectories of that directory.

Note that the identity of the user executing the code is not available at class loading time. It is the responsibility of application code to authenticate the end user if necessary (see, Authentication). Once the user has been authenticated, the application can dynamically associate that user with executing code by invoking the doAs method in the class.

Security Policy

A limited set of default permissions are granted to code by class loaders. Administrators have the ability to flexibly manage additional code permissions via a security policy.

The Java platform encapsulates the notion of a security policy in the class. There is only one Policy object installed into the Java runtime at any given time. The basic responsibility of the Policy object is to determine whether access to a protected resource is permitted to code (characterized by where it was loaded from, who signed it, and who is executing it). How a Policy object makes this determination is implementation-dependent. For example, it may consult a database containing authorization data, or it may contact another service.

The Java platform includes a default Policy implementation that reads its authorization data from one or more ASCII (UTF-8) files configured in the security properties file. These policy files contain the exact sets of permissions granted to code: specifically, the exact sets of permissions granted to code loaded from particular locations, signed by particular entities, and executing as particular users. The policy entries in each file must conform to a documented proprietary syntax, and may be composed via a simple text editor or the graphical policytool utility.

Access Control Enforcement

The Java runtime keeps track of the sequence of Java calls that are made as a program executes. When access to a protected resource is requested, the entire call stack, by default, is evaluated to determine whether the requested access is permitted.

As mentioned earlier, resources are protected by the SecurityManager. Security-sensitive code in the Java platform and in applications protects access to resources via code like the following:

SecurityManager sm = System.getSecurityManager();
if (sm != null) {

where perm is the Permission object that corresponds to the requested access. For example, if an attempt is made to read the file /tmp/abc, the permission may be constructed as follows:

Permission perm = 
    new"/tmp/abc", "read");

The default implementation of SecurityManager delegates its decision to the implementation. The AccessController traverses the call stack, passing to the installed security Policy each code element in the stack, along with the requested permission (for example, the FilePermission in the above example). The Policy determines whether the requested access is granted, based on the permissions configured by the administrator. If access is not granted, the AccessController throws a java.lang.SecurityException.

Figure 2-4 illustrates access control enforcement. In this particular example, there are initially two elements on the call stack, ClassA and ClassB. ClassA invokes a method in ClassB, which then attempts to access the file /tmp/abc by creating an instance of The FileInputStream constructor creates a FilePermission, perm, as shown above, and then passes perm to the SecurityManager's checkPermission method. In this particular case, only the permissions for ClassA and ClassB need to be checked, because all system code, including FileInputStream, SecurityManager, and AccessController, automatically receives all permissions.

In this example, ClassA and ClassB have different code characteristics – they come from different locations and have different signers. Each may have been granted a different set of permissions. The AccessController only grants access to the requested file if the Policy indicates that both classes have been granted the required FilePermission.

Figure 2-4 Controlling access to resources

Description of Figure 2-4 follows
Description of "Figure 2-4 Controlling access to resources"

XML Signature

The Java XML Digital Signature API is a standard Java API for generating and validating XML Signatures.

XML Signatures can be applied to data of any type, XML or binary (see XML Signature Syntax and Processing). The resulting signature is represented in XML. An XML Signature can be used to secure your data and provide data integrity, message authentication, and signer authentication.

The API is designed to support all of the required or recommended features of the W3C Recommendation for XML-Signature Syntax and Processing. The API is extensible and pluggable and is based on the Java Cryptography Service Provider Architecture.

The Java XML Digital Signature APIs consist of six packages:

  • javax.xml.crypto
  • javax.xml.crypto.dsig
  • javax.xml.crypto.dsig.keyinfo
  • javax.xml.crypto.dsig.spec
  • javax.xml.crypto.dom
  • javax.xml.crypto.dsig.dom


This topic describes additional resources to help you understand Java security.

Additional Java security documentation can be found online at

Java SE Security and in the book Inside Java 2 Platform Security, Second Edition: Architecture, API Design and Implementation.


Historically, as new types of security services were added to the Java platform (sometimes initially as extensions), various acronyms were used to refer to them. Since these acronyms are still in use in the Java security documentation, here is an explanation of what they represent: JSSE (Java Secure Socket Extension) refers to the SSL-related services described in SSL and TLS Protocols, JCE (Java Cryptography Extension) refers to cryptographic services Cryptography, and JAAS (Java Authentication and Authorization Service) refers to the authentication and user-based access control services described in Authentication and Access Control, respectively.

Appendix A: Classes Summary

This topic describes interface names, packages, and usage of the Java security classes and interfaces.

Table 2-2 Java security packages and classes

Package Class/Interface Name Usage JndiLoginModule Performs username/password authentication using LDAP or NIS KeyStoreLoginModule Performs authentication based on key store login Krb5LoginModule Performs authentication using Kerberos protocols
java.lang SecurityException Indicates a security violation
java.lang SecurityManager Mediates all access control decisions
java.lang System Installs the SecurityManager AccessController Called by default implementation of SecurityManager to make access control decisions DomainLoadStoreParameter Stores parameters for the Domain keystore (DKS) Key Represents a cryptographic key KeyStore Represents a repository of keys and trusted certificates MessageDigest Represents a message digest Permission Represents access to a particular resource PKCS12Attribute Supports attributes in PKCS12 keystores Policy Encapsulates the security policy Provider Encapsulates security service implementations Security Manages security providers and security properties Signature Creates and verifies digital signatures Certificate Represents a public key certificate CertStore Represents a repository of unrelated and typically untrusted certificates CRL Represents a CRL
javax.crypto Cipher Performs encryption and decryption
javax.crypto KeyAgreement Performs a key exchange KeyManager Manages keys used to perform SSL/TLS authentication SSLEngine Produces/consumes SSL/TLS packets, allowing the application freedom to choose a transport mechanism SSLSocket Represents a network socket that encapsulates SSL/TLS support on top of a normal stream socket TrustManager Makes decisions about who to trust in SSL/TLS interactions (for example, based on trusted certificates in key stores) Subject Represents a user KerberosPrincipal Represents a Kerberos principal KerberosTicket Represents a Kerberos ticket KerberosKey Represents a Kerberos key KerberosTab Represents a Kerberos keytab file LoginContext Supports pluggable authentication LoginModule Implements a specific authentication mechanism Sasl Creates SaslClient and SaslServer objects SaslClient Performs SASL authentication as a client SaslServer Performs SASL authentication as a server
org.ietf.jgss GSSContext Encapsulates a GSS-API security context and provides the security services available via the context

Appendix B: Deprecated Security APIs Marked for Removal

This topic describes a list of deprecated security APIs marked for removal in the next major JDK release.

Appendix C: Tools Summary

This topic describes the Java security and Kerberos-related tools.

Table 2-3 Java Security Tools

Tool Usage
jar Creates Java Archive (JAR) files
jarsigner Signs and verifies signatures on JAR files
keytool Creates and manages key stores
policytool Creates and edits policy files for use with default Policy implementation


The policytool is deprecated and marked for removal in the next major JDK release.

There are also three Kerberos-related tools that are shipped with the Java platform for Windows. Equivalent functionality is provided in tools of the same name that are automatically part of the Solaris and Linux operating environments.

Table 2-4 Kerberos-related Tools

Tool Usage
kinit Obtains and caches Kerberos ticket-granting tickets
klist Lists entries in the local Kerberos credentials cache and key table
ktab Manages the names and service keys stored in the local Kerberos key table

Appendix D: Built-in Providers

The Java platform implementation from Oracle includes a number of built-in provider packages. See Oracle Providers.