Bernard L. Shaw, vice president of corporate security for the Hearst Corp. and the husband of Patricia Hearst Shaw, died Tuesday in Garrison, N.Y., after a long illness. He was 68.

Mr. Shaw was born in San Francisco and served as a police officer here for 15 years. In 1979, he married Patricia Hearst, granddaughter of William Randolph Hearst. Mr. Shaw joined the Hearst Corp. in 1983.

"For three decades Bernie served Hearst Corporation with loyalty and distinction," Steven R. Swartz, the corporation's president and CEO, said in a statement.

"Bernie was a dedicated employee - much beloved by his fellow workers - as well as a loving father and husband," said Frank Bennack Jr., executive vice president of the Hearst Corp., which owns The Chronicle.