src/share/classes/javax/security/auth/kerberos/ServicePermission.java

Print this page

        

*** 257,267 **** /** * Returns the canonical string representation of the actions. * Always returns present actions in the following order: * initiate, accept. */ - public String getActions() { if (actions == null) actions = getActions(this.mask); return actions; --- 257,266 ----
*** 278,298 **** * be implemented in an efficient (and consistent) manner. * * @return a new PermissionCollection object suitable for storing * ServicePermissions. */ - public PermissionCollection newPermissionCollection() { return new KrbServicePermissionCollection(); } /** * Return the current action mask. * * @return the actions mask. */ - int getMask() { return mask; } /** --- 277,295 ----
*** 299,309 **** * Convert an action string to an integer actions mask. * * @param action the action string * @return the action mask */ - private static int getMask(String action) { if (action == null) { throw new NullPointerException("action can't be null"); } --- 296,305 ----
*** 466,481 **** /** * Check and see if this collection of permissions implies the permissions * expressed in "permission". * ! * @param p the Permission object to compare * * @return true if "permission" is a proper subset of a permission in * the collection, false if not. */ - public boolean implies(Permission permission) { if (! (permission instanceof ServicePermission)) return false; ServicePermission np = (ServicePermission) permission; --- 462,476 ---- /** * Check and see if this collection of permissions implies the permissions * expressed in "permission". * ! * @param permission the Permission object to compare * * @return true if "permission" is a proper subset of a permission in * the collection, false if not. */ public boolean implies(Permission permission) { if (! (permission instanceof ServicePermission)) return false; ServicePermission np = (ServicePermission) permission;
*** 515,525 **** * ServicePermission * * @exception SecurityException - if this PermissionCollection object * has been marked readonly */ - public void add(Permission permission) { if (! (permission instanceof ServicePermission)) throw new IllegalArgumentException("invalid permission: "+ permission); if (isReadOnly()) --- 510,519 ----
*** 582,593 **** /* * Reads in a Vector of ServicePermissions and saves them in the perms field. */ @SuppressWarnings("unchecked") ! private void readObject(ObjectInputStream in) throws IOException, ! ClassNotFoundException { // Don't call defaultReadObject() // Read in serialized fields ObjectInputStream.GetField gfields = in.readFields(); --- 576,588 ---- /* * Reads in a Vector of ServicePermissions and saves them in the perms field. */ @SuppressWarnings("unchecked") ! private void readObject(ObjectInputStream in) ! throws IOException, ClassNotFoundException ! { // Don't call defaultReadObject() // Read in serialized fields ObjectInputStream.GetField gfields = in.readFields();