diff options
Diffstat (limited to 'libjava/classpath/java/security/UnresolvedPermission.java')
-rw-r--r-- | libjava/classpath/java/security/UnresolvedPermission.java | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/libjava/classpath/java/security/UnresolvedPermission.java b/libjava/classpath/java/security/UnresolvedPermission.java index d3f671a9c06..449454aaf85 100644 --- a/libjava/classpath/java/security/UnresolvedPermission.java +++ b/libjava/classpath/java/security/UnresolvedPermission.java @@ -201,6 +201,47 @@ public final class UnresolvedPermission extends Permission { 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 /** |