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

Print this page

        

@@ -257,11 +257,10 @@
     /**
      * 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;

@@ -278,21 +277,19 @@
      * 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;
     }
 
     /**

@@ -299,11 +296,10 @@
      * 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");
         }

@@ -466,16 +462,15 @@
 
     /**
      * Check and see if this collection of permissions implies the permissions
      * expressed in "permission".
      *
-     * @param p the Permission object to compare
+     * @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,11 +510,10 @@
      *                                       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())

@@ -582,12 +576,13 @@
 
     /*
      * Reads in a Vector of ServicePermissions and saves them in the perms field.
      */
     @SuppressWarnings("unchecked")
-    private void readObject(ObjectInputStream in) throws IOException,
-    ClassNotFoundException {
+    private void readObject(ObjectInputStream in)
+        throws IOException, ClassNotFoundException
+    {
         // Don't call defaultReadObject()
 
         // Read in serialized fields
         ObjectInputStream.GetField gfields = in.readFields();