Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7618967
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T03:32:26+00:00 2026-05-31T03:32:26+00:00

I am looking into the security model of Tomcat and have a question regarding

  • 0

I am looking into the security model of Tomcat and have a question regarding when security realms come into effect. I have secured a portion of my web app:

<security-constraint>
  <display-name>My Realm</display-name>
    <web-resource-collection>
      <web-resource-name>MyServices</web-resource-name>
      <url-pattern>/service/*</url-pattern>
    </web-resource-collection>
  <auth-constraint>
    <description>AUser</description>
    <role-name>AUser</role-name>
  </auth-constraint>
</security-constraint>

and have configured this web app to use JDBCRealm.

I have an initial Filter defined where getSession() is invoked, and thus a cookie is returned to the client’s browser during the response. When the client makes another request, is the security realm bypassed when the cookie is returned (current authenticated session)? What class makes this decision (to invoke a security realm or not)? JDBCRealm has no notion of cookies or sessions, and RealmBase looks like it has some cookie logic, but not much.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T03:32:27+00:00Added an answer on May 31, 2026 at 3:32 am

    It happens per session if possible, and happens here in AuthenticatorBase

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm an iOS dev looking into some security aspects of a native iPhone app
I have a simple Vaadin Web App and I am looking for a simple
I've been looking into using Spring Security for the authentication/authorization of my web application
While looking into parallel programming, and subsequently evaluation strategies, the question whether thunks are
Am looking into developing an iPhone native app using Titanium Developer Since this is
I've been looking into using the System.Security.SecureString class to hold credit card numbers in
I've been looking into a legacy application with a web-based user interface. Given its
I'm attempting to move a web app we have (written in Perl) from an
I'm currently looking into the spring-security framework - great stuff so far, pretty impressed.
I'm looking into creating a web-based code editor pane on my CMS. I would

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.