A Characterization of Operator Algebras