Makefile.in: Rebuilt.
* Makefile.in: Rebuilt. * Makefile.am (ordinary_java_source_files): Add new security files. * java/security/NoSuchAlgorithmException.java, java/security/MessageDigest.java: New files. * include/javaprims.h: Add security namespace. From-SVN: r26536
This commit is contained in:
parent
a3f2e0fcd3
commit
fac6189871
@ -1,3 +1,13 @@
|
||||
1999-04-19 Anthony Green <green@cygnus.com>
|
||||
|
||||
* Makefile.in: Rebuilt.
|
||||
* Makefile.am (ordinary_java_source_files): Add new security files.
|
||||
|
||||
* java/security/NoSuchAlgorithmException.java,
|
||||
java/security/MessageDigest.java: New files.
|
||||
|
||||
* include/javaprims.h: Add security namespace.
|
||||
|
||||
1999-04-16 Per Bothner <bothner@cygnus.com>
|
||||
|
||||
* gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
|
||||
|
@ -517,6 +517,8 @@ java/net/URLStreamHandler.java \
|
||||
java/net/URLStreamHandlerFactory.java \
|
||||
java/net/UnknownHostException.java \
|
||||
java/net/UnknownServiceException.java \
|
||||
java/security/MessageDigest.java \
|
||||
java/security/NoSuchAlgorithmException.java \
|
||||
java/text/BreakIterator.java \
|
||||
java/text/CharacterIterator.java \
|
||||
java/text/ChoiceFormat.java \
|
||||
|
File diff suppressed because one or more lines are too long
@ -175,6 +175,12 @@ extern "Java"
|
||||
};
|
||||
};
|
||||
|
||||
namespace security
|
||||
{
|
||||
class MessageDigest;
|
||||
class NoSuchAlgorithmException;
|
||||
};
|
||||
|
||||
namespace util
|
||||
{
|
||||
class BitSet;
|
||||
|
64
libjava/java/security/MessageDigest.java
Normal file
64
libjava/java/security/MessageDigest.java
Normal file
@ -0,0 +1,64 @@
|
||||
// MessageDigest.java
|
||||
|
||||
/* Copyright (C) 1999 Cygnus Solutions
|
||||
|
||||
This file is part of libgcj.
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
|
||||
package java.security;
|
||||
|
||||
// FIXME: This is just a stub for a proper implementation.
|
||||
public abstract class MessageDigest
|
||||
{
|
||||
private static final byte[] dummy = { 0 };
|
||||
|
||||
public static MessageDigest getInstance(String algorithm)
|
||||
throws NoSuchAlgorithmException
|
||||
{
|
||||
Object obj;
|
||||
|
||||
try {
|
||||
obj = Class.forName(algorithm).newInstance();
|
||||
} catch (Exception e) {
|
||||
throw new NoSuchAlgorithmException("algorithm "
|
||||
+ algorithm
|
||||
+ " not available.");
|
||||
}
|
||||
|
||||
return (MessageDigest) obj;
|
||||
}
|
||||
|
||||
public void update(byte input)
|
||||
{
|
||||
// FIXME
|
||||
}
|
||||
|
||||
public void update(byte[] input, int offset, int len)
|
||||
{
|
||||
// FIXME
|
||||
}
|
||||
|
||||
public void update(byte[] input)
|
||||
{
|
||||
// FIXME
|
||||
}
|
||||
|
||||
public byte[] digest()
|
||||
{
|
||||
return dummy;
|
||||
}
|
||||
|
||||
public byte[] digest(byte[] input)
|
||||
{
|
||||
update(input);
|
||||
return digest();
|
||||
}
|
||||
|
||||
public void reset()
|
||||
{
|
||||
// FIXME
|
||||
}
|
||||
}
|
22
libjava/java/security/NoSuchAlgorithmException.java
Normal file
22
libjava/java/security/NoSuchAlgorithmException.java
Normal file
@ -0,0 +1,22 @@
|
||||
/* Copyright (C) 1999 Cygnus Solutions
|
||||
|
||||
This file is part of libgcj.
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
|
||||
package java.security;
|
||||
|
||||
public class NoSuchAlgorithmException extends Exception
|
||||
{
|
||||
public NoSuchAlgorithmException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public NoSuchAlgorithmException(String msg)
|
||||
{
|
||||
super(msg);
|
||||
}
|
||||
}
|
@ -96,14 +96,10 @@ libgcj_basedir = @libgcj_basedir@
|
||||
AUTOMAKE_OPTIONS = foreign dejagnu no-installinfo
|
||||
|
||||
# Setup the testing framework, if you have one
|
||||
EXPECT = `if [ -f $(top_builddir)/../expect/expect ] ; then \
|
||||
echo $(top_builddir)/../expect/expect ; \
|
||||
else echo expect ; fi`
|
||||
EXPECT = `if [ -f $(top_builddir)/../expect/expect ] ; then echo $(top_builddir)/../expect/expect ; else echo expect ; fi`
|
||||
|
||||
|
||||
RUNTEST = `if [ -f $(top_srcdir)/../dejagnu/runtest ] ; then \
|
||||
echo $(top_srcdir)/../dejagnu/runtest ; \
|
||||
else echo runtest; fi`
|
||||
RUNTEST = `if [ -f $(top_srcdir)/../dejagnu/runtest ] ; then echo $(top_srcdir)/../dejagnu/runtest ; else echo runtest; fi`
|
||||
|
||||
|
||||
RUNTESTFLAGS = @AM_RUNTESTFLAGS@
|
||||
|
Loading…
Reference in New Issue
Block a user