jaas

How to access authentication alias from EJB deployed to Websphere 6.1

限于喜欢 提交于 2019-11-27 15:39:11
I need to provide password for keystore in my EJB but I don't want it to be visible to developers. My idea was to create Authentication Alias in Websphere Console and later lookup for MY_ALIAS and obtain password from alias. I found some discussion related to subject at: http://www.coderanch.com/t/79439/Websphere/Authentication-Data Do anybody knows can alias be lookuped? What is your suggested method to achieve my goal? Thank you very much! You can use the following code to obtain credentials from J2C authentication data entry: import com.ibm.wsspi.security.auth.callback.Constants; import com

Migration from glassfish 4.0 to Glassfish 4.1.1 - JDBC Realm issue

╄→гoц情女王★ 提交于 2019-11-27 09:49:42
I have this security configuration in Glassfish domain.xml which works for 4.0 but fail in 4.1.1 can someone help to identify what is wrong. The only difference is the class package "ee" GF 4.0 (with extra ee ) <auth-realm classname="com.sun.enterprise.security.ee.auth.realm.jdbc.JDBCRealm" name="authentication-realm"> <property name="jaas-context" value="jdbcRealm"></property> <property name="password-column" value="password"></property> <property name="datasource-jndi" value="jdbc/SomeDS"></property> <property name="group-table" value="v_user_role"></property> <property name="charset" value=

When to move from Container managed security to alternatives like Apache Shiro, Spring Security?

点点圈 提交于 2019-11-27 07:07:44
I am trying to secure my application which is built using JSF2.0. I am confused about when do people choose to go with security alternatives like Shiro, Spring Security or owasp's esapi leaving behind container managed security. Having seen some of related questions on Stack Overflow, where I realized that container based security was more preferred by JSF developers in past. But I have also been strongly recommended to use Apache Shiro. I am novice in terms of the security issues and have no idea what may be the relevant issues & how to deal with them. Therefore I'm looking for something that

JAAS for human beings

∥☆過路亽.° 提交于 2019-11-27 05:54:48
I am having a hard time understanding JAAS. It all seems more complicated than it should be (especially the Sun tutorials). I need a simple tutorial or example on how to implement security (authentication + authorization) in java application based on Struts + Spring + Hibernate with custom user repository. Can be implemented using ACEGI. Here are some of the links I used to help understand JAAS: http://www.owasp.org/index.php/JAAS_Tomcat_Login_Module http://www.javaworld.com/jw-09-2002/jw-0913-jaas.html http://jaasbook.wordpress.com/ http://roneiv.wordpress.com/2008/02/18/jaas-authentication

LoginException: Login failed: Security Exception

我的梦境 提交于 2019-11-26 20:59:18
问题 I am attempting to setup container managed security with GlassFish v3.1.1 Build 12 and JSF 2.1. I keep getting the following exception for some reason and I am unable to login. WARNING: WEB9102: Web Login Failed: com.sun.enterprise.security.auth.login.common.LoginException: Login failed: Security Exception WARNING: Exception com.sun.enterprise.security.auth.login.common.LoginException: Login failed: Security Exception at com.sun.enterprise.security.auth.login.LoginContextDriver

How to access authentication alias from EJB deployed to Websphere 6.1

不羁的心 提交于 2019-11-26 17:15:12
问题 I need to provide password for keystore in my EJB but I don't want it to be visible to developers. My idea was to create Authentication Alias in Websphere Console and later lookup for MY_ALIAS and obtain password from alias. I found some discussion related to subject at: http://www.coderanch.com/t/79439/Websphere/Authentication-Data Do anybody knows can alias be lookuped? What is your suggested method to achieve my goal? Thank you very much! 回答1: You can use the following code to obtain

JAAS for human beings

流过昼夜 提交于 2019-11-26 11:46:42
问题 I am having a hard time understanding JAAS. It all seems more complicated than it should be (especially the Sun tutorials). I need a simple tutorial or example on how to implement security (authentication + authorization) in java application based on Struts + Spring + Hibernate with custom user repository. Can be implemented using ACEGI. 回答1: Here are some of the links I used to help understand JAAS: http://www.owasp.org/index.php/JAAS_Tomcat_Login_Module http://www.javaworld.com/jw-09-2002

Performing user authentication in Java EE / JSF using j_security_check

走远了吗. 提交于 2019-11-25 22:58:27
问题 I\'m wondering what the current approach is regarding user authentication for a web application making use of JSF 2.0 (and if any components do exist) and Java EE 6 core mechanisms (login/check permissions/logouts) with user information hold in a JPA entity. The Oracle Java EE tutorial is a bit sparse on this (only handles servlets). This is without making use of a whole other framework, like Spring-Security (acegi), or Seam, but trying to stick hopefully with the new Java EE 6 platform (web