Create an in-memory realm. You can replace it for contexts with a real one. The Realm created here will be added to the Engine by default and may be replaced at the Engine level or over-ridden (as per normal Tomcat behaviour) at the Host or Context level. @return a realm instance
()
| 778 | * @return a realm instance |
| 779 | */ |
| 780 | protected Realm createDefaultRealm() { |
| 781 | return new SimpleRealm(); |
| 782 | } |
| 783 | |
| 784 | |
| 785 | private class SimpleRealm extends RealmBase { |