Is there a Forum for Sun Access Manager

59 byte By KappeSra at 2007-11-26 21:14:37
Please send me the forum link for Sun Access Manager

Enabling global security in WAS 5.0

16775 byte By alvandipa at 2007-11-26 21:46:42
Hi,I get this error when i try to enable the security in WAS 5.0.I have LTPA as the authentication. I really dont know anything regarding the security or how to enable it. Please help.[15/03/07 17:58:34:490 GMT] 659c2c64 LTPAServerObj E SECJ0369E: Authentication failed when using LTPA. The ...

Sing text with certificate from Firefox keystore

179 byte By pedropnuneza at 2007-11-26 21:54:52
Hi,I need to sign a text with a certificate stored in Firefox keystore using an applet (online signature). Has someone achieved this before?Thanks in advance.

can some one tell me how to convert pem to cer?

142 byte By Legolas.wa at 2007-11-26 22:06:31
HiThank you for reading my post.Can some one tell me how to convert a pem file to a cer file using keytool ?Thanks

Global Security in WSAD

858 byte By alvandipa at 2007-11-26 22:14:43
Hi i am trying to enable global security in WSAD5.0. as soon as i check the "Enable java Security" and click on apply it says "Validation failed for user WASAdmin. Please try again..."I have the following setting in the global security settings:EnabledtrueEnforce Java 2 SecurityfalseActive ...

Security Policy File

521 byte By JahnviVyasa at 2007-11-26 22:21:53
Hi,I want to write security policy for my JMX MBeanServer and for other MBean related things. I wrote the code for granting permission in java.policy file. But I am not sure how much this policy file is reliable? If there is any possiblity that someone makes changes in this file, then the whole ...

Other Security APIs, Tools, and Issues - Help with SecurityManager

1259 byte By diribufa at 2007-11-26 23:06:07
I'm trying to setup a SecurityManager so I can check if the user running the application has the proper file acesses.System.setSecurityManager( new SecurityManager() );SecurityManager secMgr = System.getSecurityManager();if( secMgr !=null ) {try {secMgr.checkRead("/path/.archive");} ...

Other Security APIs, Tools, and Issues - How to get user name using access control api?

709 byte By imp.luka at 2007-11-26 23:10:02
Hi,can anybody tell me how can distinguish the user name and role name when using access control api?currently, i can only get a set of principals that user principal and role principal mix togethersee below:java.security.AccessControlContext context = ...

Other Security APIs, Tools, and Issues - Server to Server 2 way SSL

200 byte By Marvelousa at 2007-11-26 23:20:23
Has anyone any links or experience with 2 way SSL for Server to Server? Web Server A to Web Server B for web services.The norm is Server to Client.Any help is appreciated. Thanks!

Other Security APIs, Tools, and Issues - Problem with granting permissions in the security polic

6048 byte By JahnviVyasa at 2007-11-26 23:27:35
Hi,I have a security policy file. I am granting permissions to some files. Now even if I have given permissions explicitly it doesnt taking it and gives error. My code snippet is as follows:...grant codeBase "file:${jboss.server.home.dir}/deploy/jboss-ws4ee.sar/-"{permission ...

Other Security APIs, Tools, and Issues - How Secure Is Java?

1583 byte By ChrisDSmitha at 2007-11-26 23:31:33
As an organisation we have been through a process of evaluating Java, primarily for the development of applets that will consume SOAP services so as to provide a very rich 'web' interface.There are however various 'security' concerns that we have no answer for at this time and so we would ...

Java Client + basic authentication IIS - problem...

570 byte By herbatniczeka at 2007-11-26 23:42:44
Hi,I try to connect to IIS 5 and I've set the checkbox 'Integrated WIndows authentication'In my client I use:String credentials=new String("tester:tester");String auth=new String(credentials.getBytes());sconnection.setRequestProperty("Authorization", "Basic "+ auth);Generally in the ...

SunMSCAPI

393 byte By sgloora at 2007-11-26 23:43:18
Helo.As a Java Security teacher, I'd like to know how a Java Developer can access the Microsoft public keys of other user through SunMSCAPI provider.Windows-MY --> own, logged in user private keysWindows-ROOT --> root ca'sBut ? other, public key certficates ?Thanks and kind ...

Urgent help pls: SSL

641 byte By mkunasek123a at 2007-11-26 23:49:57
Hi Experts,I am new this concept of SSL.I have a ejb sitting in a weblogic. I dont have user based authentication. But only from certain hosts, my ejb should be accessible.I read lot of theoires about certificate, keystore, CA etc. But can any one please tell me how to do this practically.What ...

backup a single key pair

189 byte By kulkuria at 2007-11-27 0:02:21
Keytool can export certificates, but they do not include the key pair entry. How can I extract a single private/public key pair and use it in a different keystore in another machine?

Is it possible to ristrict folder access through policy file?

644 byte By Vasu.Babu_Pa at 2007-11-27 0:04:25
Hi,Application is having download file functionality. I want to make sure that files should be download from only form specific set of folders. Validating folders and path is tedious at application level. Is it possible to set only few folders, which should be used while downloading the file? ...

Granting Permissions

321 byte By JNooreza at 2007-11-27 0:21:50
How would I grant all permissions to all the standard java api libraries but restrict permissions to my own resources? I tried using a grant block like the following:grant codeBase "file:${java.home}/lib/-" {permission java.security.AllPermission;};but it didn't work. Can anyone ...

expiration date: how it works

191 byte By filipea at 2007-11-27 0:32:55
Hi!!I want to make an app that expires after 45 days. It seems to be easy but how to avoid that the user changes the clock and use the app forever?Any ideas?Filipe

prohibited package name

222 byte By BELLE_SEBASTIANa at 2007-11-27 0:35:52
I guess the class loader wouln't let you use any package named the same as java core onesIs there a way I avoid the prohibited package name exception?I mean by using the java.policy file

Can I create a cert with the Java API only?

1224 byte By MidnightJavaa at 2007-11-27 0:37:13
I'm building a client/server app that will use SSL and client certs for authenticating the client to the server. I'd like for each user to be able to create a keypair and an associated self-signed cert that they can provide to the server through some other means, to be included in the ...

Jasypt (Java Simplified Encryption) 1.2 released

851 byte By daniel.fernandez.garridoa at 2007-11-27 0:38:27
Jasypt (Java Simplified Encryption) is a library aimed at providing developers a simple way to add encryption capabilities to their projects including: password digesting, text/binary encryption, Hibernate transparent encryption and Spring Security (ACEGI) integration.What's new in 1.2: * ...

Roles based access

687 byte By Neo2001a at 2007-11-27 0:41:26
hi Friends Im creating a web based application where users of different rules can login into the application. nowProblem 1On their role i want to give them access to certain links. So here e.g. theres some jsps where there are 3 buttons. now user A with role R1 should access only button 1 & ...

Securing a Jar?

111 byte By AliasXNeoa at 2007-11-27 1:01:43
Can anyone suggest methods besides obfuscation for securing a Jar file? Thanks.Cheers,Josh

Import X509 Certificate and RSA Private Key into keystore

2921 byte By crisyalea at 2007-11-27 1:36:43
Hi I need to import my X509 Certificate and thier RSA Private key in the key store.I have my certificate and my key in two pem files. I can import the certificate but when I'm trying to import the key I get an error.This is my certificate:--BEGIN ...

Siteminder Exception

1089 byte By vishyscreena at 2007-11-27 1:49:13
Hello All, In our application we have siteminder as our webserver par , for every request it hits the siteminder and then the control comes to the weblogic.The strange problem we are facing now is, it was all working fine in the development environment when the same EAR is deployed in our ...

Siteminder Error

521 byte By vishyscreena at 2007-11-27 1:49:15
Hello All, In our application , when the rquest is sent to the siteminder it is throwing following exception.[20/Apr/2007:20:09:59] failure ( 3322): for host 10.2.3.4 trying to GET /AB/siteMinderInterface, wl-proxy reports: exception occurred for backend host '10.2.3.201/9808': ...

problem reading usercert.pem with FileReader and BufferedReader

5006 byte By jana.nguyen@gmail.coma at 2007-11-27 2:06:42
Hi,I have to store a userccert.pem (public key) files sitting in the user home dir into a MySQL DB. Since I believe a pem file is ascii character so I read the usercert.pem as a String. I have tried to get the credential out as a String, and it is printing out the credential. But it is not ...

"Choose a digital certificate" pop up when save Excel spreadsheet in IE

672 byte By MacArthura at 2007-11-27 2:12:29
One reporting page in our SSL application will generate an Excel spreadsheet. User will be prompted to either Save it to harddrive or Open it within the IE. If user chooses to Open it inside IE, then go "File --> Save as", this "Choose a digital certificate" dialog box will pop up, but ...

What is content level security?

153 byte By RamSaia at 2007-11-27 2:21:05
Hello All,What is content level security? how is it different from role/access based security?Please clarify.ThanksRam

How to get Subject from within Policy.implies()?

427 byte By Alisa at 2007-11-27 2:46:23
I have to create a dynamic (changeable at runtime) security environment, so I have extended Policy class and overridden implies method. I need to make decisions based on subject. How can find it from within this method?Is there already any Policy implementation that can do this(dynamic ...

javax.net.ssl.SSLException error

6273 byte By BillLea at 2007-11-27 2:54:55
I'm getting the following error on Apache Tomcat/4.1.24 (Java version is 1.4.2_11-b06). Can anyone shed some light on what may be the cause of this error?2007-05-01 12:20:11 StandardWrapperValve[default]: Servlet.service() for servlet default threw exceptionjavax.net.ssl.SSLException: ...

isUserInRole Question

982 byte By josephquinn80a at 2007-11-27 2:57:35
Hi All. I've read a chapter on this in a book I have and in the book when you submit the form and the j_security_check action is performed tomcat looks up the tomcat-users.xml file for the users there and authenticates against those. I would like to use this security mechanism but not store ...

XMLDSig in two web applications

2575 byte By cacia at 2007-11-27 3:02:37
Hello All,I've a problem in my code. I have two web applications deployed in JBoss.I wrote the next code in two differentes methods (one in application A and other in application B):String providerName = System.getProperty("jsr105Provider", ...

How can i protect J2EE applications from piracy?

363 byte By chintana at 2007-11-27 3:05:10
I m looking for solution to protect Web application from piracy. I want my application run on web server for which it is built, & it musn't run on any other web server. how can i protect my web application from piracy?.Our .Net applications we protect using Hardware ID binding , How can i ...

SSL obtaining server key

677 byte By charlie.babitt1a at 2007-11-27 3:05:36
When for example a webbrowser like firefox connects to a https page it automatically optains the public key of the server and uses it for encryption with e.g. SSL. How can java do this (can java do this). Up to now I have to manually insert the public key of the server in the keystore of the ...

How can I change policy permissions at RUNTIME?

206 byte By Alisa at 2007-11-27 3:07:39
How can I change policy permissions at runtime?For example giving write permission for a file to a subject and some time latter removing this permission, all at the same runtime?

Certificates for Trusted CA's in JRE 1.5.0_11

1226 byte By PazTelloa at 2007-11-27 3:11:10
Hello,I have JRE 1.5.0_11 installed, and one application launched using Java Webstart. The *.JAR files of that application are signed with an X.509 certificate provided by a CA.The root certificate of the CA who signed my certificate is configured in my browser (IExplorer 6) in "Trusted root ...

Accessing MSCAPI with JAVA 6 - Problem with identical aliases

1446 byte By BorisZa at 2007-11-27 3:19:15
Hi all,I'm trying to access MS Windows keystore from JAVA. It works with the new JAVA 6 SunMSCAPI support. But: I have three certificates in the MS store - all with the same 'alias'. The KeyStore.aliases() Enumeration gives me these three identical Strings, but afterwards I can not access a ...

can unsigned applet connect to servers from same domain?

241 byte By fserj_a at 2007-11-27 3:20:17
helloanybody know if unsigned applet can connect to servers from same domain?Let say applet is loaded from onesite.com and I want to have connection from applet to server1.onesite.com, server2.onesite.com...thanks

JDBCRealm with digested passwords.

1186 byte By josephquinn80a at 2007-11-27 3:21:24
Hi,I've sucessfully set up a JDBCRealm to accept users and there log in details but the passwords are currently cleartext. I need to encrypt them with MD5. I've followed the instructions here: http://tomcat.apache.org/tomcat-3.3-doc/JDBCRealm-howto.htmlso I've added digest="MD5" to the Realm ...

XML Signatures and X509 private key

594 byte By dglkea at 2007-11-27 3:23:36
I need to sign an XML document in an applet, using JavaTM XML Digital Signature API Specification (JSR 105) using an individual's X509 certificate.All the example code I have seen generate a key pair on the fly or pull one from a keystore. I need to sign using the private key from the ...

How can authorized user logout when using tomcat 6.0

343 byte By wai__a at 2007-11-27 3:42:45
I have implemented the login flow for user using standard authorization configuration in web.xml.However, I cannot find a way to logout so that user can login again using the another user account.I am using tomcat 6.0 and cannot find related information for logout process from tomcat doc. Can ...

SecureRandom Generator

710 byte By namon20a at 2007-11-27 3:44:55
I am trying to create Salt fo my passwords. This is my functionpublic byte[] generateSalt() throws Exception{random = SecureRandom.getInstance(SECURE_RANDOM_ALGORITHM);random.setSeed(System.currentTimeMillis());byte[] salt = new byte[8];random.nextBytes(salt);return salt;}I called this function ...

JAAS in servlet engine

846 byte By dirkdaemsa at 2007-11-27 3:52:53
Hi,I want to use an existing JAAS loginmodule in Tomcat. I don't want to use the built in JAASRealm functionality of Tomcat. In a JSF managed bean (called AuthenticationBean) I create a LoginContext and call it's login method. When the user logs out, the invalidate method of the HttpSession ...

Creating Token for Login Method

2752 byte By namon20a at 2007-11-27 3:53:58
I am writing a login method that will authencticate user and return token for web services. Next time user will send is token and we will validate the token but requirement is that we donot wnat to keep any state of token at server.What does it mean that when we receive token, we should be able ...

How To Provide Authorization For Jsp Pages

70 byte By swathij_jangama at 2007-11-27 4:04:26
How to Provide authorization for Jsp Pages in a web Application

How to Store Private/Public Key in Keystore

959 byte By namon20a at 2007-11-27 4:07:47
I can not simply make sense of this KeySTore Class.I have private and public key and I simply want to use them in KeyStore to use later.KeyPairGenerator keyGen = KeyPairGenerator.getInstance("DSA"); SecureRandom random = SecureRandom.getInstance("SHA1PRNG", "SUN"); ...

j_security_check using database

395 byte By Powerhouse_ba at 2007-11-27 4:09:57
Hi. I have just read the tutorial abut securing web applications. I saw you can use j_security_check and let the application server do the authentication. But in the tutorial, it said to define users using the AdminConsole.But i want to be able to register user, so i must use a a database where ...

Setting a JDBC Realm using the Tomcat Administration tool

162 byte By Batsupa at 2007-11-27 4:20:48
Is it possible to do it? I got a hosting where i cant get to the server.xml, so i would need to set my JDBC Realm using the Admin tool.Thanks Batsup

Changing Browser Variables - Help Needed Urgent!!!

383 byte By BalajiRamnatha at 2007-11-27 4:41:44
Hello ,We have a web application in which the browser performs user authentication. The authentication window prompts for User Name and Password. The User enters his user name in "Domain/User Name" format. Is there any way to tweak the browser/browser variables so that it prompts for User Name, ...