Class TrustedAuthFilter
- All Implemented Interfaces:
javax.servlet.Filter
Trust is established based on client host or client certificate. Trusted hosts are specified in the wt.auth.trustedHosts entry in wt.properties as a whitespace and/or comma delimited list. The localhost of the server is also trusted unless the localHostIsTrusted init parameter is specified with a value of "false". Trusted client certificates can be specified via trustedSubject.* and/or trustedSubjectPattern.* init parameters to the filter for exact and regular expression pattern matches of certificate subjects, respectively. Host-based trust can be disabled by specifying the trustTrustedHosts init parameter with a value of "false". Alternatively, one can require that requests have a client certificate with a trusted subject and come from a trusted host by specifying the requireTrustedHostAndCert init parameter with a value of "true".
The requested user id is specified by the wt.effectiveUid request parameter. If the client handles cookies, then this only needs to be specified on the initial request as subsequent requests will provide this via a cookie of the same name.
If wt.effectiveUid is specified, but the client is untrusted, then the request will be rejected.
Supported API: true
Extendable: false
-
Method Summary