Imported GNU Classpath 0.90
Imported GNU Classpath 0.90 * scripts/makemake.tcl: LocaleData.java moved to gnu/java/locale. * sources.am: Regenerated. * gcj/javaprims.h: Regenerated. * Makefile.in: Regenerated. * gcj/Makefile.in: Regenerated. * include/Makefile.in: Regenerated. * testsuite/Makefile.in: Regenerated. * gnu/java/lang/VMInstrumentationImpl.java: New override. * gnu/java/net/local/LocalSocketImpl.java: Likewise. * gnu/classpath/jdwp/VMMethod.java: Likewise. * gnu/classpath/jdwp/VMVirtualMachine.java: Update to latest interface. * java/lang/Thread.java: Add UncaughtExceptionHandler. * java/lang/reflect/Method.java: Implements GenericDeclaration and isSynthetic(), * java/lang/reflect/Field.java: Likewise. * java/lang/reflect/Constructor.java * java/lang/Class.java: Implements Type, GenericDeclaration, getSimpleName() and getEnclosing*() methods. * java/lang/Class.h: Add new public methods. * java/lang/Math.java: Add signum(), ulp() and log10(). * java/lang/natMath.cc (log10): New function. * java/security/VMSecureRandom.java: New override. * java/util/logging/Logger.java: Updated to latest classpath version. * java/util/logging/LogManager.java: New override. From-SVN: r113887
This commit is contained in:
parent
eaec4980e1
commit
4f9533c772
1640 changed files with 126485 additions and 104808 deletions
|
@ -43,8 +43,6 @@ import gnu.java.security.Registry;
|
|||
/**
|
||||
* The implementation of the <code>HAVAL</code> <i>Service Provider Interface</i>
|
||||
* (<b>SPI</b>) Adapter.<p>
|
||||
*
|
||||
* @version Revision: $
|
||||
*/
|
||||
public class HavalSpi extends MessageDigestAdapter
|
||||
{
|
||||
|
|
|
@ -43,8 +43,6 @@ import gnu.java.security.Registry;
|
|||
/**
|
||||
* <p>The implementation of the MD2 <i>Service Provider Interface</i>
|
||||
* (<b>SPI</b>) adapter.</p>
|
||||
*
|
||||
* @version $Revision: 1.1 $
|
||||
*/
|
||||
public class MD2Spi extends MessageDigestAdapter
|
||||
{
|
||||
|
|
|
@ -43,8 +43,6 @@ import gnu.java.security.Registry;
|
|||
/**
|
||||
* <p>The implementation of the MD4 <i>Service Provider Interface</i>
|
||||
* (<b>SPI</b>) adapter.</p>
|
||||
*
|
||||
* @version $Revision: 1.1 $
|
||||
*/
|
||||
public class MD4Spi extends MessageDigestAdapter
|
||||
{
|
||||
|
|
|
@ -43,8 +43,6 @@ import gnu.java.security.Registry;
|
|||
/**
|
||||
* The implementation of the MD5 <i>Service Provider Interface</i> (<b>SPI</b>)
|
||||
* adapter.<p>
|
||||
*
|
||||
* @version $Revision: 1.1 $
|
||||
*/
|
||||
public class MD5Spi extends MessageDigestAdapter
|
||||
{
|
||||
|
|
|
@ -59,8 +59,6 @@ import java.security.MessageDigestSpi;
|
|||
*
|
||||
* All the implementations which subclass this object, and which are serviced by
|
||||
* the GNU Crypto provider implement the {@link java.lang.Cloneable} interface.<p>
|
||||
*
|
||||
* @version $Revision: 1.1 $
|
||||
*/
|
||||
class MessageDigestAdapter extends MessageDigestSpi implements Cloneable
|
||||
{
|
||||
|
|
|
@ -43,8 +43,6 @@ import gnu.java.security.Registry;
|
|||
/**
|
||||
* The implementation of the RIPEMD-128 <i>Service Provider Interface</i>
|
||||
* (<b>SPI</b>) adapter.<p>
|
||||
*
|
||||
* @version $Revision: 1.1 $
|
||||
*/
|
||||
public class RipeMD128Spi extends MessageDigestAdapter
|
||||
{
|
||||
|
|
|
@ -43,8 +43,6 @@ import gnu.java.security.Registry;
|
|||
/**
|
||||
* The implementation of the RIPEMD-160 <i>Service Provider Interface</i>
|
||||
* (<b>SPI</b>) adapter.<p>
|
||||
*
|
||||
* @version $Revision: 1.1 $
|
||||
*/
|
||||
public class RipeMD160Spi extends MessageDigestAdapter
|
||||
{
|
||||
|
|
|
@ -43,8 +43,6 @@ import gnu.java.security.Registry;
|
|||
/**
|
||||
* The implementation of the SHA-1 (160-bit) <i>Service Provider Interface</i>
|
||||
* (<b>SPI</b>) adapter.<p>
|
||||
*
|
||||
* @version $Revision: 1.1 $
|
||||
*/
|
||||
public class Sha160Spi extends MessageDigestAdapter
|
||||
{
|
||||
|
|
|
@ -43,8 +43,6 @@ import gnu.java.security.Registry;
|
|||
/**
|
||||
* <p>The implementation of the SHA-2-1 (256-bit) <i>Service Provider Interface</i>
|
||||
* (<b>SPI</b>) adapter.</p>
|
||||
*
|
||||
* @version $Revision: 1.1 $
|
||||
*/
|
||||
public class Sha256Spi extends MessageDigestAdapter
|
||||
{
|
||||
|
|
|
@ -43,8 +43,6 @@ import gnu.java.security.Registry;
|
|||
/**
|
||||
* <p>The implementation of the SHA-2-2 (384-bit) <i>Service Provider Interface</i>
|
||||
* (<b>SPI</b>) adapter.</p>
|
||||
*
|
||||
* @version $Revision: 1.1 $
|
||||
*/
|
||||
public class Sha384Spi extends MessageDigestAdapter
|
||||
{
|
||||
|
|
|
@ -43,8 +43,6 @@ import gnu.java.security.Registry;
|
|||
/**
|
||||
* <p>The implementation of the SHA-2-3 (512-bit) <i>Service Provider Interface</i>
|
||||
* (<b>SPI</b>) adapter.</p>
|
||||
*
|
||||
* @version $Revision: 1.1 $
|
||||
*/
|
||||
public class Sha512Spi extends MessageDigestAdapter
|
||||
{
|
||||
|
|
|
@ -43,8 +43,6 @@ import gnu.java.security.Registry;
|
|||
/**
|
||||
* <p>The implementation of the Tiger <i>Service Provider Interface</i>
|
||||
* (<b>SPI</b>) adapter.</p>
|
||||
*
|
||||
* @version $Revision: 1.1 $
|
||||
*/
|
||||
public class TigerSpi extends MessageDigestAdapter
|
||||
{
|
||||
|
|
|
@ -43,8 +43,6 @@ import gnu.java.security.Registry;
|
|||
/**
|
||||
* The implementation of the Whirlpool <i>Service Provider Interface</i>
|
||||
* (<b>SPI</b>) adapter.<p>
|
||||
*
|
||||
* @version $Revision: 1.1 $
|
||||
*/
|
||||
public class WhirlpoolSpi extends MessageDigestAdapter
|
||||
{
|
||||
|
|
|
@ -42,7 +42,7 @@ import gnu.java.security.prng.LimitReachedException;
|
|||
import gnu.java.security.prng.MDGenerator;
|
||||
|
||||
import java.security.SecureRandomSpi;
|
||||
import java.util.HashMap;
|
||||
import java.util.Collections;
|
||||
|
||||
/**
|
||||
* <p>The implementation of a generic {@link java.security.SecureRandom} adapter
|
||||
|
@ -80,6 +80,7 @@ abstract class SecureRandomAdapter extends SecureRandomSpi
|
|||
super();
|
||||
|
||||
this.mdName = mdName;
|
||||
adaptee.init (Collections.singletonMap (MDGenerator.MD_NAME, mdName));
|
||||
}
|
||||
|
||||
// Class methods
|
||||
|
@ -118,9 +119,6 @@ abstract class SecureRandomAdapter extends SecureRandomSpi
|
|||
|
||||
public void engineSetSeed(byte[] seed)
|
||||
{
|
||||
HashMap attributes = new HashMap();
|
||||
attributes.put(MDGenerator.MD_NAME, mdName);
|
||||
attributes.put(MDGenerator.SEEED, seed);
|
||||
adaptee.init(attributes);
|
||||
adaptee.addRandomBytes (seed);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -57,8 +57,6 @@ import java.util.HashMap;
|
|||
* In case the client does not explicitly initialize the KeyPairGenerator (via
|
||||
* a call to an <code>initialize()</code> method), the GNU Crypto provider
|
||||
* uses a default <i>modulus</i> size (keysize) of 1024 bits.<p>
|
||||
*
|
||||
* @version $Revision: 1.3 $
|
||||
*/
|
||||
public class DSSKeyPairGeneratorSpi extends KeyPairGeneratorAdapter implements
|
||||
DSAKeyPairGenerator
|
||||
|
|
|
@ -45,8 +45,6 @@ import gnu.java.security.sig.dss.DSSSignatureRawCodec;
|
|||
* The implementation of <i>Service Provider Interface</i> (<b>SPI</b>) adapter
|
||||
* for the DSS (Digital Signature Standard) signature scheme, encoded and/or
|
||||
* decoded in RAW format.<p>
|
||||
*
|
||||
* @version $Revision: 1.1 $
|
||||
*/
|
||||
public class DSSRawSignatureSpi extends SignatureAdapter
|
||||
{
|
||||
|
|
|
@ -63,8 +63,6 @@ import java.security.spec.AlgorithmParameterSpec;
|
|||
* supplies (and document) default values to be used. For example, the GNU
|
||||
* Crypto provider uses a default <i>modulus</i> size (keysize) of 1024 bits for
|
||||
* the DSS (Digital Signature Standard) a.k.a <i>DSA</i>.<p>
|
||||
*
|
||||
* @version $Revision: 1.3 $
|
||||
*/
|
||||
public abstract class KeyPairGeneratorAdapter extends KeyPairGenerator
|
||||
{
|
||||
|
|
|
@ -84,7 +84,7 @@ public class RSAKeyFactory
|
|||
PublicKey result;
|
||||
try
|
||||
{
|
||||
result = new RSAKeyPairX509Codec().decodePublicKey(encoded);
|
||||
return new RSAKeyPairX509Codec().decodePublicKey(encoded);
|
||||
}
|
||||
catch (RuntimeException x)
|
||||
{
|
||||
|
@ -131,7 +131,7 @@ public class RSAKeyFactory
|
|||
PrivateKey result;
|
||||
try
|
||||
{
|
||||
result = new RSAKeyPairPKCS8Codec().decodePrivateKey(encoded);
|
||||
return new RSAKeyPairPKCS8Codec().decodePrivateKey(encoded);
|
||||
}
|
||||
catch (RuntimeException x)
|
||||
{
|
||||
|
|
|
@ -44,8 +44,6 @@ import gnu.java.security.sig.rsa.RSAPSSSignatureRawCodec;
|
|||
/**
|
||||
* The implementation of <i>Service Provider Interface</i> (<b>SPI</b>) adapter
|
||||
* for the RSA-PSS signature scheme, encoded and/or decoded in RAW format.<p>
|
||||
*
|
||||
* @version $Revision: 1.1 $
|
||||
*/
|
||||
public class RSAPSSRawSignatureSpi extends SignatureAdapter
|
||||
{
|
||||
|
|
|
@ -69,8 +69,6 @@ import java.util.logging.Logger;
|
|||
*
|
||||
* All the implementations which subclass this object, and which are serviced by
|
||||
* the GNU Crypto provider implement the {@link java.lang.Cloneable} interface.<p>
|
||||
*
|
||||
* @version $Revision: 1.2 $
|
||||
*/
|
||||
class SignatureAdapter extends SignatureSpi implements Cloneable
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue