title: Check if primitive array contains another array
body: <p>Is there any easy way to check if one array contains another array in Java?</p>
  
  <p>Essentially, I want to do something like this:</p>
  
  <pre><code>private static final String NOT_ALLOWED;
  
  public boolean isPasswordOkay(char[] password){
      return new String(password).contains(NOT_ALLOWED);
  }
  </code></pre>
  
  <p>...but without converting the password to a <code>String</code>, which <a href="http://download.oracle.com/javase/1.5.0/docs/guide/security/jce/JCERefGuide.html#PBEEx" rel="nofollow">Sun indicates could be a security risk</a>. Is there a neater method than manually iterating over every element of the array?</p>