Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Platform Security Services
11g Release 1 (11.1.1)

E14650-04


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

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

 

Uses of JpsPrincipal in oracle.security.jps.principals

 

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

 

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

 

Classes in oracle.security.jps.service.policystore that implement JpsPrincipal
 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. <p/> <p/> 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[])
<p/>

To query the desired JpsApplicationRole, refer to the code snippet below. <p/>

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

 


Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Platform Security Services
11g Release 1 (11.1.1)

E14650-04


Copyright © 2011, Oracle. All rights reserved.