You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fx-dev@ws.apache.org by Peter Gerstbach <pe...@gmail.com> on 2006/11/23 09:30:46 UTC

WSS4J using IAIK crypto provider

Hello,

has anybody succeeded using the IAIK crypto provider with WSS4J?

Just using the following line in crypto.properties produces an exception.
org.apache.ws.security.crypto.provider=iaik.security.provider.IAIK

java.lang.NoSuchMethodException:
iaik.security.provider.IAIK.<init>(java.util.Properties,
java.lang.ClassLoader)
    at java.lang.Class.getConstructor0(Class.java:1937)
    at java.lang.Class.getConstructor(Class.java:1027)
    at org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:141)
    at org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:115)
    at org.apache.ws.security.handler.WSHandler.loadSignatureCrypto(WSHandler.java:337)
    at org.apache.ws.security.handler.WSHandler.doSenderAction(WSHandler.java:123)
    at org.apache.ws.axis.security.WSDoAllSender.invoke(WSDoAllSender.java:170)

Is there a way to set the correct way to create the provider in the
properties file?

Regards,
Peter Gerstbach

---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org


Re: WSS4J using IAIK crypto provider

Posted by Clemens Orthacker <cl...@iaik.tugraz.at>.
Am Mittwoch, 6. Dezember 2006 12:39 schrieb Peter Gerstbach:
> Does anybody know how I get it running with IAIK?
>

You would have to implement the  
org.apache.ws.security.components.crypto.Crypto Interface (AbstractCrypto, 
resp.) for the IAIK JCA/JCE crypto provider. Should not be a big deal, apart 
from the validateCertPath(X509Certificate[] certs) method.

Regards,
Clemens

-- 
Clemens Orthacker  IAIK, Graz University of Technology
Inffeldgasse 16a, 8010 Graz, Austria
Tel: +43 316 873 5512      Web: http://iaik.tugraz.at/

---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org


Re: WSS4J using IAIK crypto provider

Posted by Clemens Orthacker <cl...@iaik.tugraz.at>.
Am Mittwoch, 6. Dezember 2006 12:39 schrieb Peter Gerstbach:
> Does anybody know how I get it running with IAIK?
>

You would have to implement the  
org.apache.ws.security.components.crypto.Crypto Interface (AbstractCrypto, 
resp.) for the IAIK JCA/JCE crypto provider. Should not be a big deal, apart 
from the validateCertPath(X509Certificate[] certs) method.

Regards,
Clemens

-- 
Clemens Orthacker  IAIK, Graz University of Technology
Inffeldgasse 16a, 8010 Graz, Austria
Tel: +43 316 873 5512      Web: http://iaik.tugraz.at/

---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org


Re: WSS4J using IAIK crypto provider

Posted by Peter Gerstbach <pe...@gmail.com>.
With wss4j 1.5.1 this is still not working. :(

2006/11/23, Dennis Sosnoski <dm...@sosnoski.com>:
> I just found the same thing, trying to use BouncyCastle as the crypto
> provider. Looks like somebody changed the constructor signature used by
> the factory without changing any of the implementations except for Merlin.

I have never implemented such a thing, but I thought every
implementation of java.security.Provider is supported.

Does anybody know how I get it running with IAIK?

Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org


Re: WSS4J using IAIK crypto provider

Posted by Peter Gerstbach <pe...@gmail.com>.
With wss4j 1.5.1 this is still not working. :(

2006/11/23, Dennis Sosnoski <dm...@sosnoski.com>:
> I just found the same thing, trying to use BouncyCastle as the crypto
> provider. Looks like somebody changed the constructor signature used by
> the factory without changing any of the implementations except for Merlin.

I have never implemented such a thing, but I thought every
implementation of java.security.Provider is supported.

Does anybody know how I get it running with IAIK?

Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org


Re: WSS4J using IAIK crypto provider

Posted by Dennis Sosnoski <dm...@sosnoski.com>.
Hi Peter,

I just found the same thing, trying to use BouncyCastle as the crypto 
provider. Looks like somebody changed the constructor signature used by 
the factory without changing any of the implementations except for Merlin.

  - Dennis

Dennis M. Sosnoski
SOA, Web Services, and XML
Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-296-6194 - Wellington, NZ +64-4-298-6117



Peter Gerstbach wrote:
> Hello,
>
> has anybody succeeded using the IAIK crypto provider with WSS4J?
>
> Just using the following line in crypto.properties produces an exception.
> org.apache.ws.security.crypto.provider=iaik.security.provider.IAIK
>
> java.lang.NoSuchMethodException:
> iaik.security.provider.IAIK.<init>(java.util.Properties,
> java.lang.ClassLoader)
>    at java.lang.Class.getConstructor0(Class.java:1937)
>    at java.lang.Class.getConstructor(Class.java:1027)
>    at 
> org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:141) 
>
>    at 
> org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:115) 
>
>    at 
> org.apache.ws.security.handler.WSHandler.loadSignatureCrypto(WSHandler.java:337) 
>
>    at 
> org.apache.ws.security.handler.WSHandler.doSenderAction(WSHandler.java:123) 
>
>    at 
> org.apache.ws.axis.security.WSDoAllSender.invoke(WSDoAllSender.java:170)
>
> Is there a way to set the correct way to create the provider in the
> properties file?
>
> Regards,
> Peter Gerstbach
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: wss4j-dev-help@ws.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org


Re: WSS4J using IAIK crypto provider

Posted by Dennis Sosnoski <dm...@sosnoski.com>.
Hi Peter,

I just found the same thing, trying to use BouncyCastle as the crypto 
provider. Looks like somebody changed the constructor signature used by 
the factory without changing any of the implementations except for Merlin.

  - Dennis

Dennis M. Sosnoski
SOA, Web Services, and XML
Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-296-6194 - Wellington, NZ +64-4-298-6117



Peter Gerstbach wrote:
> Hello,
>
> has anybody succeeded using the IAIK crypto provider with WSS4J?
>
> Just using the following line in crypto.properties produces an exception.
> org.apache.ws.security.crypto.provider=iaik.security.provider.IAIK
>
> java.lang.NoSuchMethodException:
> iaik.security.provider.IAIK.<init>(java.util.Properties,
> java.lang.ClassLoader)
>    at java.lang.Class.getConstructor0(Class.java:1937)
>    at java.lang.Class.getConstructor(Class.java:1027)
>    at 
> org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:141) 
>
>    at 
> org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:115) 
>
>    at 
> org.apache.ws.security.handler.WSHandler.loadSignatureCrypto(WSHandler.java:337) 
>
>    at 
> org.apache.ws.security.handler.WSHandler.doSenderAction(WSHandler.java:123) 
>
>    at 
> org.apache.ws.axis.security.WSDoAllSender.invoke(WSDoAllSender.java:170)
>
> Is there a way to set the correct way to create the provider in the
> properties file?
>
> Regards,
> Peter Gerstbach
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: wss4j-dev-help@ws.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org