code: public void setData(byte[] data) {
          byte[] copy = new byte[data.length];
          System.arraycopy(data, 0, copy, 0, data.length);
          this.data = copy;
      }
docs: Sets the data which contains the key store.
  
  @param data the byte array that contains the key store