Oracle

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:
{}

Documentation is available at
http://edocs.bea.com/wls/docs103
Copyright 2008 Oracle