I wonder how Seam Identity is coupled with JAAS. Seam uses JAAS, but I don't know how to do this . if you have any idea because I wanted to do my api like Seam identity?
try the documentation first before asking the forum. It contains an impressive chapter about securing your application, identity JASS etc.