After completing one of my j2ee application I needed to secure it but how ?
The first idea that came into my mind was to develop my own custom security module. What I did but somewhere along the lines I change my mind for a built-in REALM.
Implementing the built-in security that come with glassfish is straight forward
as you can see from these blogs
An easier way to do this will just be to use the following
I will be back on this topics soon
The first idea that came into my mind was to develop my own custom security module. What I did but somewhere along the lines I change my mind for a built-in REALM.
Implementing the built-in security that come with glassfish is straight forward
as you can see from these blogs
- http://blog.eisele.net/2011/01/jdbc-security-realm-and-form-based.html
- http://jugojava.blogspot.com/2011/02/jdbc-security-realm-with-glassfish-and.html
- http://www.greenkode.com/2011/09/user-authentication-and-authorization-using-jaas-and-servlet-3-0-login/
An easier way to do this will just be to use the following
HttpServletRequest httpServletRequest = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();
String ip = httpServletRequest.getRemoteAddr();To get the incoming ip and .... rocks!!
I will be back on this topics soon
No comments:
Post a Comment