javacommons/security/javasrc.cdc/com/nokia/mj/impl/security/midp/authorization/SecurityPolicy.java
branchRCL_3
changeset 21 4376525cdefb
parent 14 04becd199f91
equal deleted inserted replaced
19:71c436fe3ce0 21:4376525cdefb
   130         // process the buffer
   130         // process the buffer
   131         index = 0;
   131         index = 0;
   132         int domainLength = buf[index];
   132         int domainLength = buf[index];
   133         index++;
   133         index++;
   134         protectionDomain = new String(buf, index, domainLength);
   134         protectionDomain = new String(buf, index, domainLength);
       
   135         boolean activeSettings = true;
   135         index+= domainLength;
   136         index+= domainLength;
   136         int permissions = buf[index];
   137         int permissions = buf[index];
   137         index++;
   138         index++;
   138         policyPermissions = new SecurityPolicyPermission[permissions];
   139         policyPermissions = new SecurityPolicyPermission[permissions];
   139         for (int i=0; i<permissions; i++)
   140         for (int i=0; i<permissions; i++)
   140         {
   141         {
   141             policyPermissions[i] = SecurityPolicyPermission.getFromBytes(buf);
   142             policyPermissions[i] = SecurityPolicyPermission.getFromBytes(buf, activeSettings);
   142         }
   143         }
   143     }
   144     }
   144 }
   145 }