Skip navigation links

Oracle Fusion Middleware Management Java API Reference for Oracle Entitlements Server
11g Release 2 (11.1.2)

E27155-01 ESAPI


Uses of Interface
oracle.security.jps.principals.JpsRole

Packages that use JpsRole
oracle.security.jps.principals   
oracle.security.jps.service.policystore   

 

Uses of JpsRole in oracle.security.jps.principals

 

Subinterfaces of JpsRole in oracle.security.jps.principals
 interface JpsAnonymousRole
           
 interface JpsApplicationRole
          A representation of an Application Role.
 interface JpsAuthenticatedRole
           
 interface JpsEnterpriseRole
           

 

Uses of JpsRole in oracle.security.jps.service.policystore

 

Classes in oracle.security.jps.service.policystore that implement JpsRole
 class ApplicationRole
          Deprecated. FOR JPS INTERNAL USE ONLY.

This class will be removed from the JPS public APIs. Customers are advised to modify their code to in order to obtain a reference to an ApplicationRole.

Instead of instantiating an ApplicationRole, query the ApplicationPolicy for the desired JpsApplicationRole. Use the resulting Principal as a parameter for methods such as

  1. ApplicationPolicy.grant(Principal[], CodeSource, Permission[])
  2. ApplicationPolicy.revoke(Principal[], CodeSource, Permission[])

To query the desired JpsApplicationRole, refer to the code snippet below.

                  JpsApplicationRole myRole;
                  // Obtain an application policy for the desired application.
                  ApplicationPolicy ap ;
                  ....
                  String appRolename="myApplicationRole";
             
List <AppRoleEntry> appRoles = ap.searchAppRoles(appRoleName); AppRoleEntry entry; entry = appRoles.get(0); myRole = entry.getApplicationRole();

 


Skip navigation links

Oracle Fusion Middleware Management Java API Reference for Oracle Entitlements Server
11g Release 2 (11.1.2)

E27155-01 ESAPI


Copyright © 2011,2012, Oracle and/or its affiliates. All rights reserved.