Shylock calls the judge a second Daniel. That alludes to the story of Susannah and the elders, which the Reformers relegated to the Apocrypha (since it's not in the Hebrew Bible)...Shakespeare evidently could expect his audience to be familiar with it anyway.
Shakespeare used a stock cliche (which he did for many of his plays) in Shylock-- but so did Walter Scott in "Ivanhoe" to very little criticism. Shylock is unforgettable and brilliant-- Othello and his Iago (can't stand Desdemona) are my other favorites from Shakespeare.