This chapter includes the following sections:
This document explains how to use the WebLogic Server security programming features.
See Related Information for a description of other WebLogic Server security documentation.
This document is intended for the following audiences:
Application Developers
Java programmers who focus on developing client applications, adding security to Web applications and Enterprise JavaBeans (EJBs). They work with other engineering, Quality Assurance (QA), and database teams to implement security features. Application developers have in-depth/working knowledge of Java (including Java Platform, Enterprise Edition (Java EE) components such as servlets/JSPs and JSEE) and Java security.
Application developers use the WebLogic security and Java security application programming interfaces (APIs) to secure their applications. Therefore, this document provides instructions for using those APIs for securing Web applications, Java applications, and Enterprise JavaBeans (EJBs).
Security Developers
Developers who focus on defining the system architecture and infrastructure for security products that integrate into WebLogic Server and on developing custom security providers for use with WebLogic Server. They work with application architects to ensure that the security architecture is implemented according to design and that no security holes are introduced. They also work with WebLogic Server administrators to ensure that security is properly configured. Security developers have a solid understanding of security concepts, including authentication, authorization, auditing (AAA), in-depth knowledge of Java (including Java Management eXtensions (JMX), and working knowledge of WebLogic Server and security provider functionality.
Security developers use the Security Service Provider Interfaces (SSPIs) to develop custom security providers for use with WebLogic Server. This document does not address this task; for information on how to use the SSPIs to develop custom security providers, see Overview of the Development Process in Developing Security Providers for Oracle WebLogic Server.
Server Administrators
Administrators who work closely with application architects to design a security scheme for the server and the applications running on the server, to identify potential security risks, and to propose configurations that prevent security problems. Related responsibilities may include maintaining critical production systems, configuring and managing security realms, implementing authentication and authorization schemes for server and application resources, upgrading security features, and maintaining security provider databases. WebLogic Server administrators have in-depth knowledge of the Java security architecture, including Web application and EJB security, Public Key security, and SSL.
Application Administrators
Administrators who work with WebLogic Server administrators to implement and maintain security configurations and authentication and authorization schemes, and to set up and maintain access to deployed application resources in defined security realms. Application administrators have general knowledge of security concepts and the Java Security architecture. They understand Java, XML, deployment descriptors, and can identify security events in server and audit logs.
While administrators typically use the WebLogic Server Administration Console to deploy, configure, and manage applications when they put the applications into production, application developers may also use the WebLogic Server Administration Console to test their applications before they are put into production. At a minimum, testing requires that applications be deployed and configured. This document does not cover some aspects of administration as it relates to security, rather, it references Administering Security for Oracle WebLogic Server, Securing Resources Using Roles and Policies for Oracle WebLogic Server, and Oracle WebLogic Server Administration Console Online Help for descriptions of how to use the WebLogic Server Administration Console to perform security tasks.
This document is organized as follows:
WebLogic Security Programming Overview discusses the need for security, and the WebLogic Security application programming Interfaces (APIs).
Securing Web Applications describes how to implement security in Web applications.
Using JAAS Authentication in Java Clients describes how to implement JAAS authentication in Java clients.
Using SSL Authentication in Java Clients describes how to implement SSL and digital certificate authentication in Java clients.
Securing Enterprise JavaBeans (EJBs) describes how to implement security in Enterprise JavaBeans.
Using Network Connection Filtersdescribes how to implement network connection filters.
Using Java Security to Protect WebLogic Resourcesdiscusses using Java security to protect WebLogic resources.
SAML APIs describes the WebLogic SAML APIs.
Using CertPath Building and Validation describes how to build and validate certification paths.
Using JASPIC for a Web Application describes how to use the Java Authentication Service Provider Interface for Containers (JASPIC) with a Web application.
Deprecated Security APIs provides a list of weblogic.security
packages in which APIs have been deprecated.
Note:
This document does not supply detailed information for developers who want to write custom security providers for use with WebLogic Server. For information on developing custom security providers, see Developing Security Providers for Oracle WebLogic Server.
In addition to this document, Developing Applications with the WebLogic Security Service, the following documents provide information on the WebLogic Security Service:
Understanding Security for Oracle WebLogic Server—This document summarizes the features of the WebLogic Security Service and presents an overview of the architecture and capabilities of the WebLogic Security Service. It is the starting point for understanding the WebLogic Security Service.
Securing a Production Environment for Oracle WebLogic Server— This document highlights essential security measures for you to consider before you deploy WebLogic Server into a production environment.
Developing Security Providers for Oracle WebLogic Server—This document provides security vendors and application developers with the information needed to develop custom security providers that can be used with WebLogic Server.
Administering Security for Oracle WebLogic Server—This document explains how to configure security for WebLogic Server.
Securing Resources Using Roles and Policies for Oracle WebLogic Server—This document introduces the various types of WebLogic resources, and provides information that allows you to secure these resources using WebLogic Server.
Oracle WebLogic Server Administration Console Online Help—This document describes how to use the WebLogic Server Administration Console to perform security tasks.
Java API Reference for Oracle WebLogic Server —This document includes reference documentation for the WebLogic security packages that are provided with and supported by the WebLogic Server software.
In addition to the documents listed in Related Information, Oracle provides a variety of code samples for developers.
WebLogic Server optionally installs API code examples in the EXAMPLES_HOME
\src\examples
directory, where EXAMPLES_HOME
represents the directory in which the WebLogic Server code examples are configured and can be found at ORACLE_HOME
\wlserver\samples\server
. For more information about the WebLogic Server code examples, see Sample Applications and Code Examples in Understanding Oracle WebLogic Server.
The following examples illustrate WebLogic security features:
Java Authentication and Authorization Service
Outbound and Two-way SSL
The security tasks and code examples provided in this document assume that you are using the WebLogic security providers that are included in the WebLogic Server distribution, not custom security providers. The usage of the WebLogic security APIs does not change if you elect to use custom security providers, however, the management procedures of your custom security providers may be different.
Note:
This document does not provide comprehensive instructions on how to configure WebLogic Security providers or custom security providers. For information on configuring WebLogic security providers and custom security providers, see Configuring Security Providers in Administering Security for Oracle WebLogic Server.
For a comprehensive listing of the new WebLogic Server features introduced in this release, see What's New in Oracle WebLogic Server 12.2.1.3.0.