public byte[] toByteArray() throws IllegalStateException {
  if (nulled) {
    throw new IllegalStateException(res.getString("NoGetPasswordNulled.message"));
  }
  if (wrappedPassword == null) {
    return null;
  }
  byte[] passwordBytes=new byte[wrappedPassword.length];
  for (int i=0; i < wrappedPassword.length; i++) {
    passwordBytes[i]=(byte)wrappedPassword[i];
  }
  return passwordBytes;
}

public byte [ ] toByteArray ( ) throws IllegalStateException { if ( nulled ) { throw new IllegalStateException ( res . getString ( "NoGetPasswordNulled.message" ) ) ; } if ( wrappedPassword == null ) { return null ; } byte [ ] passwordBytes = new byte [ wrappedPassword . length ] ; for ( int i = 0 ; i < wrappedPassword . length ; i ++ ) { passwordBytes [ i ] = ( byte ) wrappedPassword [ i ] ; } return passwordBytes ; }
get wrapped password as a byte array .
