Can someone tell me how to call this custom Authentication provider through my program?
Is the provider not supposed to do that on its own. Declaratively, I would expect the provider to understand my auth requirements. Example, mention the user principal, group etc in web.xml and the provider should be able to tell me through j_security_check if the user exists in the realm. Is that not what you are trying to do ?
Lets say you use a LDAP authentication provider. Weblogic's job is to tell anyone asking weblogic if a particular user name and password are valid. It is the provider's job to enable the client and weblogic to understand each other. I am assuming the provider provides some interfaces that enable you to define this since I have never implemented the provider myself.
Once you assign the provider to weblogic, you can use the security based elements in web.xml to constrain a web resource and require that a user be authenticated. This in tandem with weblogic.xml can enable what you are trying to do. The web.xml file can use declarative form based authentication for example.
@Prasanna : Can you send us the source code or the domain's config.xml, I was trying to implement a custom authentication but it's giving me exception when server starts up
<Jun 2, 2010 9:19:32 AM EEST> <Error> <Security> <BEA-090870> <The realm "myrealm" failed to be loaded: weblogic.security.service.SecurityServiceException: com.bea.common.engine.Se
rviceInitializationException: com.bea.common.engine.SecurityServiceRuntimeException: [Security:097533]SecurityProvider service class name for My Authentication Trial is not specified..
I don't understand what the problem is, I have already placed the jar file in WL_HOME/server/lib/mbeantypes