+1 go for it.

-- dims

On 9/19/05, Granqvist, Hans <[EMAIL PROTECTED]> wrote:
>  
> I saw this was solved in another way, but you're right, IBM's JDK doesn't
> implement "SHA1PRNG", but 
> rather "IBMSecureRandom". The best way to solve this error is to change the
> code to: 
>   
>   try{ 
>     ...getInstance("SHA1PRNG")... 
>   } catch (NSAE e) { 
>       try { 
>         ...getInstance("IBMSecureRandom")... 
>       } 
>   ... and so on 
>   
> Anyone mind me updating WSS4J in this way? 
>   
> Hans 
>  
>  
>  ________________________________
>  From: Juan Cervera [mailto:[EMAIL PROTECTED] 
> Sent: Friday, September 16, 2005 4:03 AM
> To: [email protected]
> Subject: Errors during Signature verification and Encryption with WAS
> 
>  
>  
> Hi, 
>   
> I'm having a couple of error with WAS 5.1 and WSS4J. 
>   
> The first one, produces an error in the WAS logs but all works fine ...
> quite interesting. The error happens during signature verification: 
>   
> [9/16/05 11:13:24:859 BST] 5616f41a SystemErr     R
> java.security.NoSuchAlgorithmException: SHA1PRNG
> SecureRandom not available
> [9/16/05 11:13:24:859 BST] 5616f41a SystemErr     R     at
> java.security.Security.getAlgClassName(Security.java(Compiled
> Code))
> [9/16/05 11:13:24:860 BST] 5616f41a SystemErr     R     at
> java.security.Security.getAlgClassName(Security.java:598)
> [9/16/05 11:13:24:860 BST] 5616f41a SystemErr     R     at
> java.security.Security.getImpl(Security.java:1079)
> [9/16/05 11:13:24:860 BST] 5616f41a SystemErr     R     at
> java.security.SecureRandom.getInstance(SecureRandom.java:241)
> [9/16/05 11:13:24:866 BST] 5616f41a SystemErr     R     at      at
> org.apache.ws.security.message.token.UsernameToken.<clinit>(UsernameToken.java:72).null(Unknown
> Source)
> [9/16/05 11:13:24:866 BST] 5616f41a SystemErr     R     at
> org.apache.ws.security.WSSecurityEngine.verifyXMLSignature(WSSecurityEngine.java:509)
> [9/16/05 11:13:24:866 BST] 5616f41a SystemErr     R     at
> org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:320)
> [9/16/05 11:13:24:866 BST] 5616f41a SystemErr     R     at
> org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:245)
> [9/16/05 11:13:24:866 BST] 5616f41a SystemErr     R     at
> org.apache.ws.axis.security.WSDoAllReceiver.invoke(WSDoAllReceiver.java:156)
> [9/16/05 11:13:24:866 BST] 5616f41a SystemErr     R     at
> org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
>  
> but the regular log says: 
> [9/16/05 11:13:24:785 BST] 5616f41a CryptoFactory I
> org.apache.ws.security.components.crypto.CryptoFactory 
> Using Crypto Engine
> [org.apache.ws.security.components.crypto.Merlin] 
> [9/16/05 11:13:24:968 BST] 5616f41a Reference     I
> org.apache.xml.security.signature.Reference  Verification
> successful for URI "#id-21909041"
>  
> And in fact the message gets answered without problems afterwards ... I have
> read that this error may be due to IBM having their own version of the
> SHA1PRNG algorithm, which seems to be called "IBM SHA1PRNG". Not sure if
> there is a way though to get rid of this error message. 
>   
>   
> The other error I have is more serious as is stopping me to perform
> encryption: 
>   
> WSHandler: Encryption: error during message
> processingorg.apache.ws.security.WSSecurityException: An
> unsupported signature or encrypti
> on algorithm was used; nested exception is: 
>    
> org.apache.xml.security.encryption.XMLEncryptionException:
> Paddding: ISO10126Padding not implemented
> Original Exception was javax.crypto.NoSuchPaddingException:
> Paddding: ISO10126Padding not implemented; nested exception is: 
>     org.apache.ws.security.WSSecurityException: WSHandler:
> Encryption: error during message
> processingorg.apache.ws.security.WSSecurityEx
> ception: An unsupported signature or encryption algorithm was used; nested
> exception is: 
>    
> org.apache.xml.security.encryption.XMLEncryptionException:
> Paddding: ISO10126Padding not implemented
> Original Exception was javax.crypto.NoSuchPaddingException:
> Paddding: ISO10126Padding not implemented
>  
> Not sure what this ISO10126Padding is and if it is again a problem with
> IBM's Java 1.4 and if I can sort it out in some way or not. Any ideas? 
>   
> Any help is welcomed 
>   
> Thanks, 
>   
> Juan 


-- 
Davanum Srinivas : http://wso2.com/ - Oxygenating The Web Service Platform

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to