I'm checking this in on the trunk.
This adds some new 1.5 methods to UnresolvedPermission.
Tom
Index: ChangeLog
from Tom Tromey <[EMAIL PROTECTED]>
* java/security/UnresolvedPermission.java (getUnresolvedType): New
method.
(getUnresolvedName): New method.
(getUnresolvedActions): New method.
(getUnresolvedCerts): New method.
Index: java/security/UnresolvedPermission.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/security/UnresolvedPermission.java,v
retrieving revision 1.11
diff -u -r1.11 UnresolvedPermission.java
--- java/security/UnresolvedPermission.java 2 Jul 2005 20:32:40 -0000 1.11
+++ java/security/UnresolvedPermission.java 6 Jun 2006 18:26:41 -0000
@@ -201,6 +201,47 @@
{
return new UnresolvedPermissionCollection();
}
+
+ /**
+ * Return the name of the class of the unresolved permission.
+ * @since 1.5
+ */
+ public String getUnresolvedType()
+ {
+ return type;
+ }
+
+ /**
+ * Return the name of the unresolved permission.
+ * @since 1.5
+ */
+ public String getUnresolvedName()
+ {
+ return name;
+ }
+
+ /**
+ * Return the actions of the unresolved permission, or null
+ * if there are no actions.
+ * @since 1.5
+ */
+ public String getUnresolvedActions()
+ {
+ return actions;
+ }
+
+ /**
+ * Return the certificates of the unresolved permission.
+ * If there are no certificates, null is returned. Otherwise,
+ * a new array is returned.
+ * @since 1.5
+ */
+ public Certificate[] getUnresolvedCerts()
+ {
+ if (certs == null)
+ return null;
+ return (Certificate[]) certs.clone();
+ }
} // class UnresolvedPermission
/**