| org.apache.geronimo.tomcat.realm.TomcatGeronimoRealm
All known Subclasses: org.apache.geronimo.tomcat.realm.TomcatEJBWSGeronimoRealm,
TomcatGeronimoRealm | public class TomcatGeronimoRealm extends JAASRealm (Code) | | |
Field Summary | |
final protected static String | info Descriptive information about this Realm implementation. | final protected static String | name Descriptive information about this Realm implementation. |
Method Summary | |
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). | public Principal | authenticate(X509Certificate[] certs) | public Principal | authenticate(CallbackHandler callbackHandler, String principalName) | public boolean | hasResourcePermission(Request request, Response response, SecurityConstraint[] constraints, Context context) Perform access control based on the specified authorization constraint. | 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) Enforce any user data constraint required by the security constraint
guarding this request URI. | public static String | setRequestWrapperName(String requestWrapperName) | public void | start() Prepare for active use of the public methods of this Component . | public void | stop() Gracefully shut down active use of the public methods of this Component . |
info | final protected static String info(Code) | | Descriptive information about this Realm implementation.
|
name | final protected static String name(Code) | | Descriptive information about this Realm implementation.
|
TomcatGeronimoRealm | public TomcatGeronimoRealm()(Code) | | |
authenticate | public Principal authenticate(String username, String credentials)(Code) | | 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.
Parameters: username - Username of the Principal to look up Parameters: credentials - Password or other credentials to use in authenticating thisusername |
hasResourcePermission | public boolean hasResourcePermission(Request request, Response response, SecurityConstraint[] constraints, Context context) throws IOException(Code) | | Perform access control based on the specified authorization constraint.
Return true if this constraint is satisfied and processing
should continue, or false otherwise.
Parameters: request - Request we are processing Parameters: response - Response we are creating Parameters: constraints - Security constraints we are enforcing Parameters: context - The Context to which client of this class is attached. throws: java.io.IOException - if an input/output error occurs |
hasRole | public boolean hasRole(Principal principal, String role)(Code) | | Return true if the specified Principal has the specified
security role, within the context of this Realm; otherwise return
false .
Parameters: principal - Principal for whom the role is to be checked Parameters: role - Security role to be checked |
hasUserDataPermission | public boolean hasUserDataPermission(Request request, Response response, SecurityConstraint[] constraints) throws IOException(Code) | | 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.
Parameters: request - Request we are processing Parameters: response - Response we are creating Parameters: constraints - Security constraint being checked throws: IOException - if an input/output error occurs |
setRequestWrapperName | public static String setRequestWrapperName(String requestWrapperName)(Code) | | |
start | public void start() throws LifecycleException(Code) | | Prepare for active use of the public methods of this Component .
throws: org.apache.catalina.LifecycleException - if this component detects a fatal errorthat prevents it from being started |
stop | public void stop() throws LifecycleException(Code) | | Gracefully shut down active use of the public methods of this Component .
throws: LifecycleException - if this component detects a fatal errorthat needs to be reported |
|
|