1
14
15 package com.liferay.portal.security.jaas.ext.weblogic;
16
17 import com.liferay.portal.kernel.util.InstanceFactory;
18 import com.liferay.portal.security.jaas.ext.BasicLoginModule;
19
20 import java.security.Principal;
21
22 import javax.security.auth.login.LoginException;
23
24
29 public class PortalLoginModule extends BasicLoginModule {
30
31 protected Principal getPortalPrincipal(String name) throws LoginException {
32 try {
33 return (Principal)InstanceFactory.newInstance(
34 _WLS_USER_IMPL, String.class, name);
35 }
36 catch (Exception e) {
37 throw new LoginException(e.getMessage());
38 }
39 }
40
41 private static final String _WLS_USER_IMPL =
42 "weblogic.security.principal.WLSUserImpl";
43
44 }