@SuppressWarnings("unchecked") public Enumeration<Permission> elements(){
synchronized (this) {
    return Collections.enumeration((List<Permission>)(List)perms);
  }
}

@ SuppressWarnings ( "unchecked" ) public Enumeration < Permission > elements ( ) { synchronized ( this ) { return Collections . enumeration ( ( List < Permission > ) ( List ) perms ) ; } }
returns an enumeration of all the socketpermission objects in the container .
