vdkoogh 2003/11/20 00:39:12
Modified: src/org/apache/xml/security/keys/content/keyvalues
RSAKeyValue.java
Log:
Removed unnecessary casts
CVS: ----------------------------------------------------------------------
CVS: PR:
CVS: If this change addresses a PR in the problem report tracking
CVS: database, then enter the PR number(s) here.
CVS: Obtained from:
CVS: If this change has been taken from another system, such as NCSA,
CVS: then name the system in this line, otherwise delete it.
CVS: Submitted by:
CVS: If this code has been contributed to Apache by someone else; i.e.,
CVS: they sent us a patch or a new module, then include their name/email
CVS: address here. If this is your work then delete this line.
CVS: Reviewed by:
CVS: If we are doing pre-commit code reviews and someone else has
CVS: reviewed your changes, include their name(s) here.
CVS: If you have not had it reviewed then delete this line.
Revision Changes Path
1.9 +3 -4
xml-security/src/org/apache/xml/security/keys/content/keyvalues/RSAKeyValue.java
Index: RSAKeyValue.java
===================================================================
RCS file:
/home/cvs/xml-security/src/org/apache/xml/security/keys/content/keyvalues/RSAKeyValue.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- RSAKeyValue.java 29 Apr 2003 21:36:54 -0000 1.8
+++ RSAKeyValue.java 20 Nov 2003 08:39:12 -0000 1.9
@@ -67,7 +67,6 @@
import java.security.PublicKey;
import java.security.interfaces.RSAPublicKey;
import java.security.spec.InvalidKeySpecException;
-import java.security.spec.KeySpec;
import java.security.spec.RSAPublicKeySpec;
import org.apache.xml.security.exceptions.XMLSecurityException;
@@ -134,7 +133,7 @@
XMLUtils.addReturnToElement(this._constructionElement);
if (JavaUtils.implementsInterface(
- (Object) key, "java.security.interfaces.RSAPublicKey")) {
+ key, "java.security.interfaces.RSAPublicKey")) {
this.addBigIntegerElement(((RSAPublicKey) key).getModulus(),
Constants._TAG_MODULUS);
this.addBigIntegerElement(((RSAPublicKey) key).getPublicExponent(),
@@ -167,7 +166,7 @@
.SignatureSpecNS), this
.getBigIntegerFromChildElement(Constants
._TAG_EXPONENT, Constants.SignatureSpecNS));
- PublicKey pk = rsaFactory.generatePublic((KeySpec) rsaKeyspec);
+ PublicKey pk = rsaFactory.generatePublic(rsaKeyspec);
return pk;
} catch (NoSuchAlgorithmException ex) {