question: public boolean implies ( Permission permission ) { if ( ! ( permission instanceof SocketPermission ) ) return false ; SocketPermission np = ( SocketPermission ) permission ; int desired = np . getMask ( ) ; int effective = 0 ; int needed = desired ; synchronized ( this ) { int len = perms . size ( ) ; for ( int i = 0 ; i < len ; i ++ ) { SocketPermission x = perms . get ( i ) ; if ( ( ( needed & x . getMask ( ) ) != 0 ) && x . impliesIgnoreMask ( np ) ) { effective |= x . getMask ( ) ; if ( ( effective & desired ) == desired ) return true ; needed = ( desired ^ effective ) ; } } } return false ; }
target:  Check and see if this collection of permissions implies the permissions expressed in "permission".