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

## weblogic.jws.security
Annotation Type SecurityRoles

Deprecated.

    @Retention(value=RUNTIME)
    @Target(value={java.lang.annotation.ElementType.TYPE, java.lang.annotation.ElementType.METHOD})
    public @interface SecurityRoles

See Also:
  `Defines the roles that are allowed to access the operations on the service. Roles may be applied at either the service (class) level or at the level of an individual method. The hosting container is responsible for ensuring that the security settings of the service are honored.`

Optional Element Summary
`String[]` | `rolesAllowed` Deprecated. Specifies a list of roles permitted to access the Web Service.
`String[]` | `rolesReferenced` Deprecated. Specifies a list of roles referenced by the Web Service.

### rolesAllowed

    public abstract String[] rolesAllowed

  Deprecated.
  Specifies a list of roles permitted to access the Web Service. If the @SecurityRoles annotation is applied at the class level, then the roles listed may call any method on the Web Service. If the @SecurityRoles annotation is applied at the method level, then the roles expand the list of roles allowed to access that operation. This annotation is the equivalent of the <method-permission> entry in ejb-jar.xml

  Default:
    {}

### rolesReferenced

    public abstract String[] rolesReferenced

  Deprecated.
  Specifies a list of roles referenced by the Web Service. The Web Service may access other resources using the credentials of the roles listed. This annotation is the equivalent of the <security-role-ref> entry in ejb-jar.xml

  Default:
    {}

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Documentation is available at http://edocs.bea.com/wls/docs103 Copyright 1996,2008, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT