Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.2)

Part Number E27170-02

weblogic.jws.security
Annotation Type RunAs


@Retention(value=RUNTIME)
@Target(value=java.lang.annotation.ElementType.TYPE)
public @interface RunAs

Defines the identity the Web Service assumes during execution. Normally a Web Service assumes the identity of the authenticated caller. This annotation allows the developer to override this behavior so that the Web Service instead executes as a particular role. The role must map to user/group information in the container's security realm.


Required Element Summary
 String mapToPrincipal
          maps the runAs role in the to the name of security principal
 String role
          A Web Service that includes this member-value assumes the permission-level of the role specified and may access other resources accordingly.
 

Element Detail

role

public abstract String role
A Web Service that includes this member-value assumes the permission-level of the role specified and may access other resources accordingly.


mapToPrincipal

public abstract String mapToPrincipal
maps the runAs role in the to the name of security principal


Copyright 1996, 2013, 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.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.2)

Part Number E27170-02