Declaring Security Role Names Referenced from Enterprise Bean Code

Chapter 11 - Security Management

    Declaring Security Role Names Referenced from Enterprise Bean Code

  • Declaring Security Role Names Referenced from Enterprise Bean Code

    A security role reference, including the name defined by the reference, is scoped to the component whose bean class contains the @DeclareRoles annotation or whose deployment descriptor element contains the security-role-ref deployment descriptor element.

    The security-role-ref elements for those references that were declared in annotations and linked to a security-role whose name differs from the reference value.

    security role reference is not linked to a security role in this way, the container must map the reference name to the security role of the name.

    Example:

    • Declaring Security Roles Using Annotations

    • Declaring Security Roles Using Deployment Descriptor Elements

© 2015 by Learncertification All Rights Reserved. The certification names are the trademarks of their respective owners. Terms & Privacy Policy