Skip navigation links

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

E14650-02


oracle.security.jps.util
Class JpsAuth

java.lang.Object
  extended by oracle.security.jps.util.JpsAuth


public final class JpsAuth
extends java.lang.Object

An Authorization related utility class


Nested Class Summary
static interface JpsAuth.Authorizer
           

 

Constructor Summary
JpsAuth()
           

 

Method Summary
static void checkPermission(java.security.Permission perm)
          Utility method to perform checkPermission.
static JpsAuth.Authorizer getSystemAuthorizer()
          Returns the system-level Authorizer
static boolean hasPermission(javax.security.auth.Subject subject, java.security.Permission perm)
           

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

JpsAuth

public JpsAuth()

Method Detail

getSystemAuthorizer

public static JpsAuth.Authorizer getSystemAuthorizer()
Returns the system-level Authorizer
Returns:
the system-level Authorizer

checkPermission

public static void checkPermission(java.security.Permission perm)
                            throws java.security.AccessControlException
Utility method to perform checkPermission. <p/> The check proceeds as follows:
  1. If SecurityManager is set, call SecurityManager.checkPermission
  2. [else] If system property "java.security.policy" is set, call AccessController.checkPermission
  3. [else] do nothing
Note that this algorithm is tentative & subject to change.
Parameters:
perm - permission to be checked
Throws:
java.security.AccessControlException - if the specified permission is not permitted, based on the current security policy.

hasPermission

public static boolean hasPermission(javax.security.auth.Subject subject,
                                    java.security.Permission perm)

Skip navigation links

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

E14650-02


Copyright © 2009, Oracle. All rights reserved.