Author: dimuthul
Date: Fri Feb 1 02:07:35 2008
New Revision: 13218
Log:
Propagating the exceptions upwards.
Modified:
trunk/solutions/identity/modules/token-verifier-core/src/main/java/org/wso2/solutions/identity/relyingparty/SelfSignVerficationKeyHolder.java
Modified:
trunk/solutions/identity/modules/token-verifier-core/src/main/java/org/wso2/solutions/identity/relyingparty/SelfSignVerficationKeyHolder.java
==============================================================================
---
trunk/solutions/identity/modules/token-verifier-core/src/main/java/org/wso2/solutions/identity/relyingparty/SelfSignVerficationKeyHolder.java
(original)
+++
trunk/solutions/identity/modules/token-verifier-core/src/main/java/org/wso2/solutions/identity/relyingparty/SelfSignVerficationKeyHolder.java
Fri Feb 1 02:07:35 2008
@@ -23,20 +23,12 @@
private PublicKey publicKey = null;
public void setPublicKey(BigInteger modulus, BigInteger publicExponent)
- throws RelyingPartyException {
- try {
+ throws NoSuchAlgorithmException, InvalidKeySpecException {
RSAPublicKeySpec spec = new RSAPublicKeySpec(modulus,
publicExponent);
KeyFactory keyFactory = KeyFactory.getInstance("RSA");
publicKey = keyFactory.generatePublic(spec);
- } catch (NoSuchAlgorithmException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (InvalidKeySpecException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- }
+ }
public PublicKey getPublicKey() {
return publicKey;
_______________________________________________
Identity-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/identity-dev