AccessController.java (checkPermission): Now throws AccessControlException.
* java/security/AccessController.java (checkPermission): Now throws AccessControlException. * java/security/AllPermission.java: Class now final. * java/security/Permission.java (getName): Now final. (name): Now private. (equals): New abstract method. * java/security/PermissionCollection.java (linesep): Now private. * java/security/Permissions.java: Class now final. * java/security/Security.java (Security): New private constructor. * java/security/UnresolvedPermission.java: Import java.security.cert.Certificate. Class now final. * java/security/acl/Group.java: Now extends Principal. (isMember): Added Principal argument. * java/security/spec/X509EncodedKeySpec.java (getFormat): Now final. * java/security/spec/PKCS8EncodedKeySpec.java (getFormat): Now final. From-SVN: r46246
This commit is contained in:
parent
4f96ff63b3
commit
41bd2b1cc2
11 changed files with 59 additions and 20 deletions
|
@ -1,5 +1,5 @@
|
|||
/* Permission.java -- The superclass for all permission objects
|
||||
Copyright (C) 1998 Free Software Foundation, Inc.
|
||||
Copyright (C) 1998, 2001 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
|
@ -59,7 +59,7 @@ public abstract class Permission implements Guard, Serializable
|
|||
/**
|
||||
* This is the name assigned to this permission object.
|
||||
*/
|
||||
protected String name; // Taken from the serializable form information
|
||||
private String name; // Taken from the serializable form information
|
||||
|
||||
/**
|
||||
* This method initializes a new instance of <code>Permission</code> to
|
||||
|
@ -75,7 +75,7 @@ public abstract class Permission implements Guard, Serializable
|
|||
*
|
||||
* @return The name of this <code>Permission</code>
|
||||
*/
|
||||
public String getName()
|
||||
public final String getName()
|
||||
{
|
||||
return (name);
|
||||
}
|
||||
|
@ -106,6 +106,11 @@ public abstract class Permission implements Guard, Serializable
|
|||
sm.checkPermission(this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check to see if this object equals OBJ.
|
||||
*/
|
||||
public abstract boolean equals (Object obj);
|
||||
|
||||
/**
|
||||
* This method tests whether this <code>Permission</code> implies that the
|
||||
* specified <code>Permission</code> is also granted.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue