The office of government is not to confer happiness, but to give men opportunity to work out happiness for themselves.
—William Ellery Channing
This chapter demonstrates ways to augment the security architecture. We explain how to develop custom implementations of the various security classes that support either extensibility or substitution mechanisms. We also describe the mechanics of implementing a custom Permission class, extending the functionality of the SecurityManager class, implementing a custom Policy provider, and implementing a DomainCombiner interface.