The largest Interview Solution Library on the web


java tutorials/
« Previous | 1 | 2 | 3 | Next »

Another doAs() scenario(con't)


Thread / ClassPermissionsEffective Thread Permissio
Class 1{ P1, P2 }{ P1, P2 }
doAs(X){ P2, P3 }
Class 2{ P1, P2, P3 }{ P1, P2 }
doAs(Y){ P1, P3 }
Class 2{ P1, P3 }{ P1 }
checkPermission(P2)
fails!
Pc13(Pc2UPX)3(Pc2UPY)={P1}
« Previous | 1 | 2 | 3 | Next »


copyright © 2014 - all rights riserved by javatechnologycenter.com