Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

## org.acegisecurity.annotation
Annotation Type Secured

    @Target(value={METHOD,TYPE})
    @Retention(value=RUNTIME)
    public @interface Secured

Java 5 annotation for describing service layer security attributes.

The `Secured` annotation is used to define a list of security configuration attributes for business methods. This annotation can be used as a Java 5 alternative to XML configuration.

For example:

         @Secured ({"ROLE_USER"})
         public void create(Contact contact);

         @Secured ({"ROLE_USER", "ROLE_ADMIN"})
         public void update(Contact contact);

         @Secured ({"ROLE_ADMIN"})
         public void delete(Contact contact);

Version:
  $Id: Secured.java,v 1.2 2005/11/17 00:55:48 benalex Exp $
Author:
  Mark St.Godard

Required Element Summary
`String[]` | `value` Returns the list of security configuration attributes.

Element Detail

### value

    public abstract String[] value

  Returns the list of security configuration attributes. (i.e. ROLE_USER, ROLE_ADMIN etc.)

  Returns:
    String[] The secure method attributes

Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

Copyright © 2004-2005 Acegi Technology Pty Limited. All Rights Reserved.