public class: TomcatGeronimoRealm
Copyright 2003-2004 The Apache Software Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
|protected static final String ||info ||Descriptive information about this |
|protected static final String ||name ||Descriptive information about this |
|Methods from java.lang.Object:|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait|
|Method from org.apache.geronimo.tomcat.realm.TomcatGeronimoRealm Detail:|
public Principal authenticate(String username,
Principal associated with the specified
username and credentials, if there is one; otherwise return
If there are any errors with the JDBC connection, executing the query or
anything we return null (don't authenticate). This event is also logged,
and the connection will be closed so that a subsequent request will
automatically re-open it.
public boolean hasResourcePermission(Request request,
Context context) throws IOException
Perform access control based on the specified authorization constraint.
true if this constraint is satisfied and processing
should continue, or
public boolean hasRole(Principal principal,
true if the specified Principal has the specified
security role, within the context of this Realm; otherwise return
public boolean hasUserDataPermission(Request request,
SecurityConstraint constraints) throws IOException
Enforce any user data constraint required by the security constraint
guarding this request URI. Return
true if this constraint
was not violated and processing should continue, or
if we have created a response already.
public void start() throws LifecycleException
Prepare for active use of the public methods of this
public void stop() throws LifecycleException
Gracefully shut down active use of the public methods of this