Home » geronimo-2.2-source-release » org.apache.geronimo.tomcat.realm » [javadoc | source]
public class: TomcatGeronimoRealm [javadoc | source]
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 http://www.apache.org/licenses/LICENSE-2.0 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.
Field Summary
protected static final  String info    Descriptive information about this Realm implementation. 
protected static final  String name    Descriptive information about this Realm implementation. 
 public TomcatGeronimoRealm() 
Method from org.apache.geronimo.tomcat.realm.TomcatGeronimoRealm Summary:
authenticate,   hasResourcePermission,   hasRole,   hasUserDataPermission,   start,   stop
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,
    String credentials) 
    Return the Principal associated with the specified username and credentials, if there is one; otherwise return null.

    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,
    Response response,
    SecurityConstraint[] constraint,
    Context context) throws IOException 
    Perform access control based on the specified authorization constraint. Return true if this constraint is satisfied and processing should continue, or false otherwise.
 public boolean hasRole(Principal principal,
    String role) 
    Return true if the specified Principal has the specified security role, within the context of this Realm; otherwise return false.
 public boolean hasUserDataPermission(Request request,
    Response response,
    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 false if we have created a response already.
 public  void start() throws LifecycleException 
    Prepare for active use of the public methods of this Component.
 public  void stop() throws LifecycleException 
    Gracefully shut down active use of the public methods of this Component.