javax.annotation.security.DeclareRoles javax.annotation.security.DenyAll javax.annotation.security.PermitAll javax.annotation.security.RolesAllowed
7.4.1 javax.annotation.security.DeclareRoles
Target: Class Defines the security roles that will be used in the Java EE container. You typically use this annotation to define roles that can be tested from within the methods of the annotated class, such as using the isUserInRole method. You can also use the annotation to explicitly declare roles that are implicitly declared if you use the RolesAllowed annotation on the class or a method of the class. You create security roles in WebLogic Server using the Administration Console. For details, see Manage Security Roles. Attributes7.4.2 javax.annotation.security.DenyAll
Target: Method Specifies that no security role is allowed to access the annotated method, or in other words, the method is excluded from execution in the Java EE container. This annotation does not have any attributes.7.4.3 javax.annotation.security.PermitAll
Target: Method Specifies that all security roles currently defined for WebLogic Server are allowed to access the annotated method. This annotation does not have any attributes.7.4.4 javax.annotation.security.RolesAllowed
Target: Class, Method Specifies the list of security roles that are allowed to access methods in the Java EE container. If you specify it at the class-level, then it applies to all methods in the application component. If you specify it at the method-level, then it only applies to that method. If you specify the annotation at both the class- and method-level, the method value overrides the class value. You create security roles in WebLogic Server using the Administration Console. For details, see Manage Security Roles. Attributes Table 7–3 Attributes of the javax.annotation.security.DeclareRoles Annotation Name Description Data Type Required? value Specifies an array of security roles that will be used in the Java EE container. String[] Yes Table 7–4 Attributes of the javax.annotation.security.RolesAllowed Annotation Name Description Data Type Required? value List of security roles that are allowed to access methods of the Java EE container. String[] Yes 7-8 Developing Applications for Oracle WebLogic Server7.4.5 javax.annotation.security.RunAs
Parts
» Oracle Fusion Middleware Online Documentation Library
» Document Scope and Audience WebLogic Server and the Java EE Platform
» Servlets JavaServer Pages Web Application Modules
» EJB Overview EJBs and WebLogic Server
» Java EE Programming Model Packaging and Deployment Overview
» Overview of Java EE Applications and Modules Connector Modules WebLogic Web Services
» Automatically Generating Deployment Descriptors EJBGen Java-based Command-line Utilities
» JMS and JDBC Modules Deployment Plans
» Source Code Editor or IDE Database System and JDBC Driver Web Browser
» Third-Party Software Development Software
» Basic Steps for Using wlserver Sample build.xml Files for wlserver
» What the wlconfig Ant Task Does
» Basic Steps for Using wlconfig wlconfig Ant Task Reference
» query invoke Nested Elements
» Source and Build Directories
» Deploying from a Split Development Directory Split Development Directory Ant Tasks
» Source Directory Overview Enterprise Application Configuration Web Applications
» EJBs Important Notes Regarding EJB Descriptors
» weblogic.BuildXMLGen Syntax Generating a Basic build.xml File Using weblogic.BuildXMLGen
» Organizing Libraries and Classes Shared by Multiple EARs
» Annotation Parsing Deployment View of Annotation Configuration Compiling Annotated Classes
» javax.annotation.PostConstruct javax.annotation.PreDestroy
» Java Classloader Hierarchy Loading a Class
» prefer-web-inf-classes Element Changing Classes in a Running Program
» Configuring Class Caching Java Classloading
» Overview of WebLogic Server Application Classloading Application Classloader Hierarchy
» Custom Module Classloader Hierarchies Declaring the Classloader Hierarchy
» Individual EJB Classloader for Implementation Classes
» Application Classloading and Pass-by-Value or Reference Using a Filtering Classloader
» What is a Filtering ClassLoader Configuring a FilteringClassLoader
» Resource Loading Order WebLogic Server Application Classloading
» About Resource Adapter Classes Packaging Shared Utility Classes Manifest Class-Path
» Using the Classloader Analysis Tool CAT
» Optional Packages Overview of Shared Java EE Libraries and Optional Packages
» Library Directories Versioning Support for Libraries
» Shared Java EE Libraries and Optional Packages Compared
» Assembling Shared Java EE Library Files
» Assembling Optional Package Class Files Editing Manifest Attributes for Shared Java EE Libraries
» Referencing Optional Packages from a Java EE Application or Module
» Web Application Shared Java EE Library Information Using WebApp Libraries With Web Applications
» Best Practices for Using Shared Java EE Libraries
» Understanding Application Life Cycle Events
» Example of Production Deployment Sequence When Using Application Version Life Cycle Events
» Programming Context Propagation: Main Steps Programming Context Propagation in a Client
» Programming Context Propagation in an Application
» Configuring JavaMail for WebLogic Server Sending Messages with JavaMail
» Reading Messages with JavaMail
Show more