diff options
| author | Raif S. Naffah <raif@swiftdsl.com.au> | 2006-02-26 04:49:18 +0000 |
|---|---|---|
| committer | Raif S. Naffah <raif@swiftdsl.com.au> | 2006-02-26 04:49:18 +0000 |
| commit | ab4f88077ed757e042bf3c132ae0cb693d6ff7d4 (patch) | |
| tree | e0bf4f3f2686eaa298da7f40fda78ed62bd500dc /gnu/java/security/provider/PKIXCertPathValidatorImpl.java | |
| parent | 21e14eddf7837b2578c4a6a8b83278706c3b2f6e (diff) | |
| download | classpath-ab4f88077ed757e042bf3c132ae0cb693d6ff7d4.tar.gz | |
2006-02-26 Raif S. Naffah <raif@swiftdsl.com.au>
* java/security/SecureRandom.java (SecureRandom): Use GNU-CRYPTO class
as the fallback SPI.
* gnu/java/security/provider/Gnu.java (run): Replaced mappings with new
ones referencing GNU-CRYPTO classes.
* gnu/java/security/provider/PKIXCertPathValidatorImpl.java
(engineValidate): Use GNU-CRYPTO class.
* gnu/java/security/provider/DiffieHellmanKeyFactoryImpl: Removed.
* gnu/java/security/provider/DiffieHellmanKeyPairGeneratorImpl: Likewise.
* gnu/java/security/provider/DSAKeyFactory: Likewise.
* gnu/java/security/provider/DSAKeyPairGenerator: Likewise.
* gnu/java/security/provider/DSAParameters: Likewise.
* gnu/java/security/provider/DSASignature: Likewise.
* gnu/java/security/provider/EncodedKeyFactory: Likewise.
* gnu/java/security/provider/GnuDHPublicKey: Likewise.
* gnu/java/security/provider/GnuDSAPrivateKey: Likewise.
* gnu/java/security/provider/GnuDSAPublicKey: Likewise.
* gnu/java/security/provider/GnuRSAPrivateKey: Likewise.
* gnu/java/security/provider/GnuRSAPublicKey: Likewise.
* gnu/java/security/provider/MD2withRSA: Likewise.
* gnu/java/security/provider/MD4withRSA: Likewise.
* gnu/java/security/provider/MD5: Likewise.
* gnu/java/security/provider/MD5withRSA: Likewise.
* gnu/java/security/provider/RSA: Likewise.
* gnu/java/security/provider/RSAKeyFactory: Likewise.
* gnu/java/security/provider/SHA: Likewise.
* gnu/java/security/provider/SHA1PRNG: Likewise.
* gnu/java/security/provider/SHA1withRSA: Likewise.
* gnu/javax/crypto/GnuDHPrivateKey: Likewise.
Diffstat (limited to 'gnu/java/security/provider/PKIXCertPathValidatorImpl.java')
| -rw-r--r-- | gnu/java/security/provider/PKIXCertPathValidatorImpl.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gnu/java/security/provider/PKIXCertPathValidatorImpl.java b/gnu/java/security/provider/PKIXCertPathValidatorImpl.java index ab8943443..880163731 100644 --- a/gnu/java/security/provider/PKIXCertPathValidatorImpl.java +++ b/gnu/java/security/provider/PKIXCertPathValidatorImpl.java @@ -39,6 +39,8 @@ exception statement from your version. */ package gnu.java.security.provider; import gnu.java.security.OID; +import gnu.java.security.Registry; +import gnu.java.security.key.dss.DSSPublicKey; import gnu.java.security.x509.GnuPKIExtension; import gnu.java.security.x509.PolicyNodeImpl; import gnu.java.security.x509.X509CRLSelectorImpl; @@ -241,8 +243,11 @@ public class PKIXCertPathValidatorImpl extends CertPathValidatorSpi if (!(prevKey instanceof DSAPublicKey)) throw new InvalidKeyException("DSA keys not chainable"); dsa = ((DSAPublicKey) prevKey).getParams(); - pubKey = new GnuDSAPublicKey(((DSAPublicKey) pubKey).getY(), - dsa.getP(), dsa.getQ(), dsa.getG()); + pubKey = new DSSPublicKey(Registry.X509_ENCODING_ID, + dsa.getP(), + dsa.getQ(), + dsa.getG(), + ((DSAPublicKey) pubKey).getY()); } } if (sigProvider == null) |
