< prev index next >

src/java.base/share/classes/java/security/IdentityScope.java

Print this page




  57  * @author Benjamin Renaud
  58  *
  59  * @deprecated This class is no longer used. Its functionality has been
  60  * replaced by {@code java.security.KeyStore}, the
  61  * {@code java.security.cert} package, and
  62  * {@code java.security.Principal}.
  63  */
  64 @Deprecated
  65 public abstract
  66 class IdentityScope extends Identity {
  67 
  68     private static final long serialVersionUID = -2337346281189773310L;
  69 
  70     /* The system's scope */
  71     private static IdentityScope scope;
  72 
  73     // initialize the system scope
  74     private static void initializeSystemScope() {
  75 
  76         String classname = AccessController.doPrivileged(
  77                                 new PrivilegedAction<String>() {
  78             public String run() {
  79                 return Security.getProperty("system.scope");
  80             }
  81         });
  82 
  83         if (classname == null) {
  84             return;
  85 
  86         } else {
  87 
  88             try {
  89                 Class.forName(classname);
  90             } catch (ClassNotFoundException e) {
  91                 //Security.error("unable to establish a system scope from " +
  92                 //             classname);
  93                 e.printStackTrace();
  94             }
  95         }
  96     }
  97 




  57  * @author Benjamin Renaud
  58  *
  59  * @deprecated This class is no longer used. Its functionality has been
  60  * replaced by {@code java.security.KeyStore}, the
  61  * {@code java.security.cert} package, and
  62  * {@code java.security.Principal}.
  63  */
  64 @Deprecated
  65 public abstract
  66 class IdentityScope extends Identity {
  67 
  68     private static final long serialVersionUID = -2337346281189773310L;
  69 
  70     /* The system's scope */
  71     private static IdentityScope scope;
  72 
  73     // initialize the system scope
  74     private static void initializeSystemScope() {
  75 
  76         String classname = AccessController.doPrivileged(
  77                                 new PrivilegedAction<>() {
  78             public String run() {
  79                 return Security.getProperty("system.scope");
  80             }
  81         });
  82 
  83         if (classname == null) {
  84             return;
  85 
  86         } else {
  87 
  88             try {
  89                 Class.forName(classname);
  90             } catch (ClassNotFoundException e) {
  91                 //Security.error("unable to establish a system scope from " +
  92                 //             classname);
  93                 e.printStackTrace();
  94             }
  95         }
  96     }
  97 


< prev index next >