This method of the UIPermission Class determines whether the permission object indicates that top-level windows require warning banners.
public boolean getWarningBannersRequired();
Returns true if the permission object indicates that top-level windows require warning banners; otherwise, returns false.