Upon successful return from this method the SecurityContext will be set in the name of the given user as its Subject.
On client side, realm and errors parameters will be ignored and the actual login will not occur until we actually access a resource requiring a login. And a java.rmi.AccessException with COBRA NO_PERMISSION will occur when actual login is failed.
This method is intented primarily for EJBs wishing to do programmatic login. If servlet code used this method the established identity will be propagated to EJB calls but will not be used for web container manager authorization. In general servlets should use the servlet-specific version of login instead. @param user User name. @param password Password for user. @param realm the realm name in which the user should be logged in. @param errors errors=true, propagate any exception encountered to the usererrors=false, no exceptions are propagated. @return Boolean containing true or false to indicate success orfailure of login. @throws Exception any exception encountered during Login.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|