2005-04-18 Michael Koch <konqueror@gmx.de>
+ * gnu/java/awt/Buffers.java,
+ gnu/java/awt/image/ImageDecoder.java,
+ gnu/java/awt/image/XBMDecoder.java,
+ gnu/java/awt/peer/ClasspathFontPeer.java,
+ gnu/java/net/CRLFInputStream.java,
+ gnu/java/net/EmptyX509TrustManager.java,
+ gnu/java/net/LineInputStream.java,
+ gnu/java/net/protocol/ftp/ActiveModeDTP.java,
+ gnu/java/net/protocol/ftp/BlockInputStream.java,
+ gnu/java/net/protocol/ftp/CompressedInputStream.java,
+ gnu/java/net/protocol/ftp/DTP.java,
+ gnu/java/net/protocol/ftp/DTPInputStream.java,
+ gnu/java/net/protocol/ftp/FTPConnection.java,
+ gnu/java/net/protocol/ftp/FTPURLConnection.java,
+ gnu/java/net/protocol/ftp/PassiveModeDTP.java,
+ gnu/java/net/protocol/ftp/StreamInputStream.java,
+ gnu/java/net/protocol/http/ChunkedInputStream.java,
+ gnu/java/net/protocol/http/HTTPConnection.java,
+ gnu/java/net/protocol/http/HTTPURLConnection.java,
+ gnu/java/net/protocol/http/Headers.java,
+ gnu/java/net/protocol/http/Request.java,
+ gnu/java/nio/ChannelInputStream.java,
+ gnu/java/nio/ChannelOutputStream.java,
+ gnu/java/nio/InputStreamChannel.java,
+ gnu/java/nio/OutputStreamChannel.java,
+ gnu/java/nio/SelectorProviderImpl.java,
+ gnu/java/rmi/RMIMarshalledObjectInputStream.java,
+ gnu/java/rmi/RMIMarshalledObjectOutputStream.java,
+ gnu/java/rmi/dgc/DGCImpl.java,
+ gnu/java/rmi/registry/RegistryImpl.java,
+ gnu/java/rmi/server/ProtocolConstants.java,
+ gnu/java/rmi/server/RMIDefaultSocketFactory.java,
+ gnu/java/rmi/server/RMIIncomingThread.java,
+ gnu/java/rmi/server/RMIObjectInputStream.java,
+ gnu/java/rmi/server/RMIObjectOutputStream.java,
+ gnu/java/rmi/server/RMIVoidValue.java,
+ gnu/java/rmi/server/UnicastConnectionManager.java,
+ gnu/java/rmi/server/UnicastRef.java,
+ gnu/java/rmi/server/UnicastRemoteCall.java,
+ gnu/java/rmi/server/UnicastRemoteStub.java,
+ gnu/java/rmi/server/UnicastServerRef.java,
+ gnu/java/security/OID.java,
+ gnu/java/security/der/DERReader.java,
+ gnu/java/security/provider/CollectionCertStoreImpl.java,
+ gnu/java/security/provider/DSAParameterGenerator.java,
+ gnu/java/security/provider/DefaultPolicy.java,
+ gnu/java/security/provider/EncodedKeyFactory.java,
+ gnu/java/security/provider/GnuDHPublicKey.java,
+ gnu/java/security/provider/GnuDSAPrivateKey.java,
+ gnu/java/security/provider/GnuDSAPublicKey.java,
+ gnu/java/security/provider/GnuRSAPrivateKey.java,
+ gnu/java/security/provider/GnuRSAPublicKey.java,
+ gnu/java/security/provider/PKIXCertPathValidatorImpl.java,
+ gnu/java/security/provider/RSA.java,
+ gnu/java/security/provider/SHA1PRNG.java,
+ gnu/java/security/provider/SHA1withRSA.java,
+ gnu/java/security/provider/X509CertificateFactory.java,
+ gnu/java/security/x509/GnuPKIExtension.java,
+ gnu/java/security/x509/X500DistinguishedName.java,
+ gnu/java/security/x509/X509CRL.java,
+ gnu/java/security/x509/X509CRLEntry.java,
+ gnu/java/security/x509/X509CertPath.java,
+ gnu/java/security/x509/X509CertSelectorImpl.java,
+ gnu/java/security/x509/X509Certificate.java,
+ gnu/java/security/x509/ext/AuthorityKeyIdentifier.java,
+ gnu/java/security/x509/ext/BasicConstraints.java,
+ gnu/java/security/x509/ext/CRLNumber.java,
+ gnu/java/security/x509/ext/CertificatePolicies.java,
+ gnu/java/security/x509/ext/ExtendedKeyUsage.java,
+ gnu/java/security/x509/ext/Extension.java,
+ gnu/java/security/x509/ext/GeneralNames.java,
+ gnu/java/security/x509/ext/IssuerAlternativeNames.java,
+ gnu/java/security/x509/ext/KeyUsage.java,
+ gnu/java/security/x509/ext/PolicyConstraint.java,
+ gnu/java/security/x509/ext/PolicyMappings.java,
+ gnu/java/security/x509/ext/PrivateKeyUsagePeriod.java,
+ gnu/java/security/x509/ext/ReasonCode.java,
+ gnu/java/security/x509/ext/SubjectAlternativeNames.java,
+ gnu/java/security/x509/ext/SubjectKeyIdentifier.java:
+ Reorganized import statements.
+
+2005-04-18 Michael Koch <konqueror@gmx.de>
+
* gnu/java/awt/color/CieXyzConverter.java,
gnu/java/awt/color/ClutProfileConverter.java,
gnu/java/awt/color/ColorLookUpTable.java,
-/* Copyright (C) 2000, 2002, 2004 Free Software Foundation
+/* Buffers.java --
+ Copyright (C) 2000, 2002, 2004 Free Software Foundation
This file is part of GNU Classpath.
obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */
+
package gnu.java.awt;
-import java.awt.image.*;
+import java.awt.image.DataBuffer;
+import java.awt.image.DataBufferByte;
+import java.awt.image.DataBufferDouble;
+import java.awt.image.DataBufferFloat;
+import java.awt.image.DataBufferInt;
+import java.awt.image.DataBufferShort;
+import java.awt.image.DataBufferUShort;
/**
* Utility class for creating and accessing data buffers of arbitrary
-/* ImageDecoder.java
+/* ImageDecoder.java --
Copyright (C) 1999, 2000, 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath.
import java.awt.image.ImageProducer;
import java.io.ByteArrayInputStream;
import java.io.FileInputStream;
-import java.io.InputStream;
import java.io.IOException;
+import java.io.InputStream;
import java.net.URL;
import java.util.Vector;
-/* XBMDecoder -- Decodes X-bitmaps
+/* XBMDecoder.java -- Decodes X-bitmaps
Copyright (C) 1999, 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath.
import java.awt.image.ColorModel;
import java.awt.image.ImageConsumer;
import java.io.BufferedReader;
+import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
-import java.io.IOException;
import java.io.Reader;
import java.net.URL;
import java.util.StringTokenizer;
package gnu.java.awt.peer;
-import java.awt.*;
-import java.awt.peer.*;
-import java.awt.font.*;
-import java.awt.geom.*;
-import java.text.*;
-import java.util.*;
-import gnu.java.awt.*;
-
+import gnu.java.awt.ClasspathToolkit;
+
+import java.awt.Font;
+import java.awt.FontMetrics;
+import java.awt.Toolkit;
+import java.awt.font.FontRenderContext;
+import java.awt.font.GlyphVector;
+import java.awt.font.LineMetrics;
+import java.awt.font.TextAttribute;
+import java.awt.font.TransformAttribute;
+import java.awt.geom.AffineTransform;
+import java.awt.geom.Rectangle2D;
+import java.awt.peer.FontPeer;
+import java.text.AttributedCharacterIterator;
+import java.text.CharacterIterator;
+import java.util.HashMap;
+import java.util.Locale;
+import java.util.Map;
/**
* A peer for fonts that are used inside Classpath. The purpose of
package gnu.java.net;
import java.io.FilterInputStream;
-import java.io.InputStream;
import java.io.IOException;
+import java.io.InputStream;
/**
* An input stream that filters out CR/LF pairs into LFs.
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
+
import javax.net.ssl.X509TrustManager;
/**
import java.io.ByteArrayOutputStream;
import java.io.FilterInputStream;
-import java.io.InputStream;
import java.io.IOException;
+import java.io.InputStream;
/**
* An input stream that can read lines of input.
package gnu.java.net.protocol.ftp;
-import java.io.InputStream;
import java.io.IOException;
+import java.io.InputStream;
import java.io.OutputStream;
import java.net.InetAddress;
import java.net.ServerSocket;
package gnu.java.net.protocol.ftp;
-import java.io.InputStream;
import java.io.IOException;
+import java.io.InputStream;
/**
* A DTP input stream that implements the FTP block transfer mode.
package gnu.java.net.protocol.ftp;
-import java.io.InputStream;
import java.io.IOException;
+import java.io.InputStream;
import java.net.ProtocolException;
/**
package gnu.java.net.protocol.ftp;
-import java.io.InputStream;
import java.io.IOException;
+import java.io.InputStream;
import java.io.OutputStream;
/**
package gnu.java.net.protocol.ftp;
import java.io.FilterInputStream;
-import java.io.InputStream;
import java.io.IOException;
+import java.io.InputStream;
/**
* An input stream that notifies a DTP on completion.
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
-import java.io.InputStream;
import java.io.IOException;
+import java.io.InputStream;
import java.io.OutputStream;
import java.net.BindException;
import java.net.InetAddress;
import java.io.FileNotFoundException;
import java.io.FilterInputStream;
import java.io.FilterOutputStream;
-import java.io.InputStream;
import java.io.IOException;
+import java.io.InputStream;
import java.io.OutputStream;
import java.net.InetAddress;
import java.net.URL;
package gnu.java.net.protocol.ftp;
-import java.io.InputStream;
import java.io.IOException;
+import java.io.InputStream;
import java.io.OutputStream;
import java.net.InetAddress;
import java.net.InetSocketAddress;
package gnu.java.net.protocol.ftp;
-import java.io.InputStream;
import java.io.IOException;
+import java.io.InputStream;
/**
* A DTP input stream that implements the FTP stream data transfer mode.
package gnu.java.net.protocol.http;
import java.io.FilterInputStream;
-import java.io.InputStream;
import java.io.IOException;
+import java.io.InputStream;
import java.net.ProtocolException;
/**
package gnu.java.net.protocol.http;
import gnu.classpath.Configuration;
+import gnu.java.net.EmptyX509TrustManager;
import gnu.java.net.protocol.http.event.ConnectionEvent;
import gnu.java.net.protocol.http.event.ConnectionListener;
import gnu.java.net.protocol.http.event.RequestEvent;
import gnu.java.net.protocol.http.event.RequestListener;
-import gnu.java.net.EmptyX509TrustManager;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
-import java.io.InputStream;
import java.io.IOException;
+import java.io.InputStream;
import java.io.OutputStream;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
+
import javax.net.ssl.HandshakeCompletedListener;
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLSocket;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
-import java.io.InputStream;
import java.io.IOException;
+import java.io.InputStream;
import java.io.OutputStream;
import java.net.ProtocolException;
import java.net.URL;
import java.security.AccessController;
import java.security.PrivilegedAction;
import java.security.cert.Certificate;
-import java.util.Date;
import java.util.Collections;
+import java.util.Date;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Map;
+
import javax.net.ssl.HandshakeCompletedEvent;
import javax.net.ssl.HandshakeCompletedListener;
import javax.net.ssl.HostnameVerifier;
import gnu.java.net.LineInputStream;
-import java.io.InputStream;
import java.io.IOException;
+import java.io.InputStream;
import java.text.DateFormat;
import java.text.ParseException;
import java.util.Collection;
package gnu.java.net.protocol.http;
-import gnu.java.net.protocol.http.event.RequestEvent;
import gnu.java.net.BASE64;
import gnu.java.net.LineInputStream;
+import gnu.java.net.protocol.http.event.RequestEvent;
-import java.io.InputStream;
import java.io.IOException;
+import java.io.InputStream;
import java.io.OutputStream;
import java.net.ProtocolException;
import java.security.MessageDigest;
package gnu.java.nio;
-import java.io.InputStream;
import java.io.IOException;
+import java.io.InputStream;
import java.nio.ByteBuffer;
import java.nio.channels.IllegalBlockingModeException;
import java.nio.channels.ReadableByteChannel;
package gnu.java.nio;
-import java.io.OutputStream;
import java.io.IOException;
+import java.io.OutputStream;
import java.nio.ByteBuffer;
import java.nio.channels.WritableByteChannel;
package gnu.java.nio;
-import java.io.InputStream;
import java.io.IOException;
+import java.io.InputStream;
import java.nio.ByteBuffer;
import java.nio.channels.ClosedChannelException;
import java.nio.channels.ReadableByteChannel;
package gnu.java.nio;
-import java.io.OutputStream;
import java.io.IOException;
+import java.io.OutputStream;
import java.nio.ByteBuffer;
import java.nio.channels.ClosedChannelException;
import java.nio.channels.WritableByteChannel;
import java.nio.channels.Pipe;
import java.nio.channels.ServerSocketChannel;
import java.nio.channels.SocketChannel;
-import java.nio.channels.spi.SelectorProvider;
import java.nio.channels.spi.AbstractSelector;
+import java.nio.channels.spi.SelectorProvider;
public class SelectorProviderImpl extends SelectorProvider
{
package gnu.java.rmi;
import gnu.java.rmi.server.RMIObjectInputStream;
-import java.io.ObjectInputStream;
-import java.io.IOException;
+
import java.io.ByteArrayInputStream;
+import java.io.IOException;
+import java.io.ObjectInputStream;
/**
* This class is only for java.rmi.MarshalledObject to deserialize object from
import gnu.java.rmi.server.RMIObjectOutputStream;
-import java.io.OutputStream;
-import java.io.ObjectOutputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
+import java.io.ObjectOutputStream;
+import java.io.OutputStream;
/**
* This class is only for java.rmi.MarshalledObject to serialize object and
-/*
- Copyright (c) 1996, 1997, 1998, 1999, 2002 Free Software Foundation, Inc.
+/* DGCImpl.java --
+ Copyright (c) 1996, 1997, 1998, 1999, 2002, 2005
+ Free Software Foundation, Inc.
This file is part of GNU Classpath.
package gnu.java.rmi.dgc;
+import gnu.java.rmi.server.UnicastServerRef;
+
+import java.rmi.RemoteException;
import java.rmi.dgc.DGC;
import java.rmi.dgc.Lease;
import java.rmi.dgc.VMID;
import java.rmi.server.ObjID;
-import java.rmi.RemoteException;
import java.rmi.server.RMISocketFactory;
-import gnu.java.rmi.server.UnicastServerRef;
-
import java.util.Hashtable;
/**
-/*
- Copyright (c) 1996, 1997, 1998, 1999, 2002, 2005
- Free Software Foundation, Inc.
+/* RegistryImpl.java --
+ Copyright (c) 1996, 1997, 1998, 1999, 2002, 2005
+ Free Software Foundation, Inc.
This file is part of GNU Classpath.
package gnu.java.rmi.registry;
-import java.rmi.registry.Registry;
-import java.rmi.registry.LocateRegistry;
-import java.rmi.RemoteException;
-import java.rmi.NotBoundException;
+import gnu.java.rmi.server.UnicastServerRef;
+
import java.rmi.AccessException;
import java.rmi.AlreadyBoundException;
+import java.rmi.NotBoundException;
import java.rmi.Remote;
-import java.rmi.server.UnicastRemoteObject;
+import java.rmi.RemoteException;
+import java.rmi.registry.LocateRegistry;
+import java.rmi.registry.Registry;
import java.rmi.server.ObjID;
-import java.util.Hashtable;
-import java.util.Enumeration;
-import java.rmi.server.RMISocketFactory;
import java.rmi.server.RMIClientSocketFactory;
import java.rmi.server.RMIServerSocketFactory;
-import gnu.java.rmi.server.UnicastServerRef;
+import java.rmi.server.RMISocketFactory;
+import java.rmi.server.UnicastRemoteObject;
+import java.util.Enumeration;
+import java.util.Hashtable;
public class RegistryImpl
extends UnicastRemoteObject implements Registry {
-/*
- Copyright (c) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
+/* ProtocolConstants.java --
+ Copyright (c) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
This file is part of GNU Classpath.
-/*
- Copyright (c) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
+/* RMIDefaultSocketFactory.java --
+ Copyright (c) 1996, 1997, 1998, 1999, 2005 Free Software Foundation, Inc.
This file is part of GNU Classpath.
package gnu.java.rmi.server;
-import java.rmi.server.RMISocketFactory;
import java.io.IOException;
-import java.net.Socket;
import java.net.ServerSocket;
+import java.net.Socket;
+import java.rmi.server.RMISocketFactory;
public class RMIDefaultSocketFactory
extends RMISocketFactory {
-/*
- Copyright (c) 1996, 1997, 1998, 1999, 2002 Free Software Foundation, Inc.
+/* RMIIncomingThread.java --
+ Copyright (c) 1996, 1997, 1998, 1999, 2002 Free Software Foundation, Inc.
This file is part of GNU Classpath.
package gnu.java.rmi.server;
-import java.io.InputStream;
import java.io.IOException;
+import java.io.InputStream;
import java.io.ObjectInputStream;
import java.io.ObjectStreamClass;
import java.lang.reflect.Proxy;
import java.io.ObjectOutputStream;
import java.io.OutputStream;
import java.rmi.Remote;
-import java.rmi.server.RemoteStub;
import java.rmi.server.RMIClassLoader;
+import java.rmi.server.RemoteStub;
public class RMIObjectOutputStream
extends ObjectOutputStream {
-/* RMIVoidValue.java
- Copyright (c) 2003 Free Software Foundation, Inc.
+/* RMIVoidValue.java --
+ Copyright (c) 2003 Free Software Foundation, Inc.
This file is part of GNU Classpath.
package gnu.java.rmi.server;
-import gnu.java.rmi.server.RMIIncomingThread;
-import gnu.java.rmi.server.UnicastConnection;
-
import java.io.IOException;
-import java.io.ObjectOutput;
import java.io.ObjectInput;
+import java.io.ObjectOutput;
import java.net.InetAddress;
-import java.net.Socket;
import java.net.ServerSocket;
+import java.net.Socket;
import java.net.UnknownHostException;
import java.rmi.RemoteException;
-import java.rmi.server.RMISocketFactory;
-import java.rmi.server.RMIServerSocketFactory;
import java.rmi.server.RMIClientSocketFactory;
+import java.rmi.server.RMIServerSocketFactory;
+import java.rmi.server.RMISocketFactory;
import java.util.ArrayList;
import java.util.ConcurrentModificationException;
import java.util.Hashtable;
-/*
- Copyright (c) 1996, 1997, 1998, 1999, 2002 Free Software Foundation, Inc.
+/* UnicastRef.java --
+ Copyright (c) 1996, 1997, 1998, 1999, 2002, 2005
+ Free Software Foundation, Inc.
This file is part of GNU Classpath.
/* UnicastRemoteCall.java
- Copyright (c) 1996, 1997, 1998, 1999, 2002, 2004 Free Software Foundation, Inc.
+ Copyright (c) 1996, 1997, 1998, 1999, 2002, 2004, 2005
+ Free Software Foundation, Inc.
This file is part of GNU Classpath.
import java.io.ObjectInput;
import java.io.ObjectOutput;
import java.io.StreamCorruptedException;
-import java.rmi.RemoteException;
import java.rmi.MarshalException;
+import java.rmi.RemoteException;
import java.rmi.UnmarshalException;
-import java.rmi.server.RemoteCall;
import java.rmi.server.ObjID;
+import java.rmi.server.RemoteCall;
import java.rmi.server.UID;
import java.util.Vector;
-/*
- Copyright (c) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
+/* UnicastRemoteStub.java --
+ Copyright (c) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
This file is part of GNU Classpath.
package gnu.java.rmi.server;
-import java.rmi.server.RemoteStub;
import java.rmi.server.RemoteRef;
+import java.rmi.server.RemoteStub;
public class UnicastRemoteStub
extends RemoteStub {
import java.io.ObjectInputStream;
import java.lang.reflect.Constructor;
-import java.lang.reflect.Method;
import java.lang.reflect.InvocationTargetException;
+import java.lang.reflect.Method;
import java.rmi.Remote;
import java.rmi.RemoteException;
-import java.rmi.server.RemoteStub;
import java.rmi.server.ObjID;
-import java.rmi.server.ServerRef;
-import java.rmi.server.RemoteServer;
+import java.rmi.server.RMIServerSocketFactory;
import java.rmi.server.RemoteRef;
+import java.rmi.server.RemoteServer;
+import java.rmi.server.RemoteStub;
import java.rmi.server.ServerNotActiveException;
-import java.rmi.server.RMIServerSocketFactory;
+import java.rmi.server.ServerRef;
import java.rmi.server.Skeleton;
import java.util.Hashtable;
import gnu.java.security.der.DEREncodingException;
import java.io.ByteArrayOutputStream;
-import java.io.InputStream;
import java.io.IOException;
+import java.io.InputStream;
import java.util.StringTokenizer;
/**
package gnu.java.security.der;
+import gnu.java.security.OID;
+
import java.io.BufferedInputStream;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.EOFException;
-import java.io.InputStream;
import java.io.IOException;
-
+import java.io.InputStream;
import java.math.BigInteger;
-
import java.util.Calendar;
import java.util.Date;
import java.util.TimeZone;
-import gnu.java.security.OID;
-
/**
* This class decodes DER sequences into Java objects. The methods of
* this class do not have knowledge of higher-levels of structure in the
package gnu.java.security.provider;
import java.security.InvalidAlgorithmParameterException;
-import java.security.cert.Certificate;
-import java.security.cert.CertSelector;
import java.security.cert.CRL;
import java.security.cert.CRLSelector;
+import java.security.cert.CertSelector;
import java.security.cert.CertStoreException;
import java.security.cert.CertStoreParameters;
import java.security.cert.CertStoreSpi;
+import java.security.cert.Certificate;
import java.security.cert.CollectionCertStoreParameters;
-
import java.util.Collection;
import java.util.Iterator;
import java.util.LinkedList;
package gnu.java.security.provider;
+import gnu.java.security.util.Prime;
+
import java.math.BigInteger;
-import java.security.AlgorithmParameters;
import java.security.AlgorithmParameterGeneratorSpi;
+import java.security.AlgorithmParameters;
import java.security.InvalidAlgorithmParameterException;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
import java.security.spec.InvalidParameterSpecException;
import java.util.Random;
-import gnu.java.security.util.Prime;
-
public class DSAParameterGenerator extends AlgorithmParameterGeneratorSpi
{
private int size;
-/* DefaultPolicy.java
+/* DefaultPolicy.java --
Copyright (C) 2001, 2002 Free Software Foundation, Inc.
This file is part of GNU Classpath.
package gnu.java.security.provider;
-import java.security.*;
+import java.security.AllPermission;
+import java.security.CodeSource;
+import java.security.Permission;
+import java.security.PermissionCollection;
+import java.security.Permissions;
+import java.security.Policy;
/**
* This is just a stub policy implementation which grants all permissions
import gnu.java.security.der.DERValue;
import java.io.IOException;
-
import java.math.BigInteger;
-
import java.security.AlgorithmParameters;
import java.security.InvalidKeyException;
import java.security.Key;
import java.security.NoSuchAlgorithmException;
import java.security.PrivateKey;
import java.security.PublicKey;
-
import java.security.spec.DSAParameterSpec;
-import java.security.spec.InvalidParameterSpecException;
import java.security.spec.InvalidKeySpecException;
+import java.security.spec.InvalidParameterSpecException;
import java.security.spec.KeySpec;
import java.security.spec.PKCS8EncodedKeySpec;
import java.security.spec.RSAPrivateCrtKeySpec;
package gnu.java.security.provider;
-import java.math.BigInteger;
+import gnu.java.security.OID;
+import gnu.java.security.der.BitString;
+import gnu.java.security.der.DER;
+import gnu.java.security.der.DERValue;
+import java.math.BigInteger;
import java.util.ArrayList;
import javax.crypto.interfaces.DHPublicKey;
import javax.crypto.spec.DHParameterSpec;
-import gnu.java.security.OID;
-import gnu.java.security.der.BitString;
-import gnu.java.security.der.DER;
-import gnu.java.security.der.DERValue;
-
public class GnuDHPublicKey implements DHPublicKey
{
import java.io.ByteArrayOutputStream;
import java.io.IOException;
-
import java.math.BigInteger;
-
-import java.security.interfaces.DSAPrivateKey;
import java.security.interfaces.DSAParams;
+import java.security.interfaces.DSAPrivateKey;
import java.security.spec.DSAParameterSpec;
-
import java.util.ArrayList;
public class GnuDSAPrivateKey implements DSAPrivateKey
import java.io.ByteArrayOutputStream;
import java.io.IOException;
-
import java.math.BigInteger;
-
-import java.security.interfaces.DSAPublicKey;
import java.security.interfaces.DSAParams;
+import java.security.interfaces.DSAPublicKey;
import java.security.spec.DSAParameterSpec;
-
import java.util.ArrayList;
public class GnuDSAPublicKey implements DSAPublicKey
package gnu.java.security.provider;
-import java.math.BigInteger;
+import gnu.java.security.OID;
+import gnu.java.security.der.DER;
+import gnu.java.security.der.DERValue;
+import java.math.BigInteger;
import java.security.interfaces.RSAPrivateCrtKey;
import java.security.spec.RSAPrivateCrtKeySpec;
-
import java.util.ArrayList;
-import gnu.java.security.OID;
-import gnu.java.security.der.DER;
-import gnu.java.security.der.DERValue;
-
class GnuRSAPrivateKey implements RSAPrivateCrtKey
{
package gnu.java.security.provider;
-import java.math.BigInteger;
-import java.security.interfaces.RSAPublicKey;
-import java.security.spec.RSAPublicKeySpec;
-import java.util.ArrayList;
-
import gnu.java.security.OID;
import gnu.java.security.der.BitString;
import gnu.java.security.der.DER;
import gnu.java.security.der.DERValue;
+import java.math.BigInteger;
+import java.security.interfaces.RSAPublicKey;
+import java.security.spec.RSAPublicKeySpec;
+import java.util.ArrayList;
+
class GnuRSAPublicKey implements RSAPublicKey
{
import gnu.java.security.OID;
import gnu.java.security.x509.GnuPKIExtension;
import gnu.java.security.x509.PolicyNodeImpl;
-import gnu.java.security.x509.X509CertSelectorImpl;
import gnu.java.security.x509.X509CRLSelectorImpl;
+import gnu.java.security.x509.X509CertSelectorImpl;
import gnu.java.security.x509.ext.BasicConstraints;
import gnu.java.security.x509.ext.CertificatePolicies;
import gnu.java.security.x509.ext.Extension;
import gnu.java.security.x509.ext.PolicyConstraint;
import java.io.IOException;
-
import java.security.InvalidAlgorithmParameterException;
import java.security.InvalidKeyException;
import java.security.PublicKey;
-
-import java.security.cert.CertificateException;
+import java.security.cert.CRL;
import java.security.cert.CertPath;
import java.security.cert.CertPathParameters;
import java.security.cert.CertPathValidatorException;
import java.security.cert.CertPathValidatorSpi;
import java.security.cert.CertStore;
import java.security.cert.CertStoreException;
-import java.security.cert.CRL;
+import java.security.cert.CertificateException;
import java.security.cert.PKIXCertPathChecker;
import java.security.cert.PKIXCertPathValidatorResult;
import java.security.cert.PKIXParameters;
import java.security.cert.TrustAnchor;
-import java.security.cert.X509Certificate;
import java.security.cert.X509CRL;
+import java.security.cert.X509Certificate;
import java.security.interfaces.DSAParams;
import java.security.interfaces.DSAPublicKey;
-
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
package gnu.java.security.provider;
+import gnu.java.security.OID;
+import gnu.java.security.der.DER;
+import gnu.java.security.der.DERReader;
+import gnu.java.security.der.DERValue;
+import gnu.java.security.der.DERWriter;
+
import java.io.ByteArrayOutputStream;
import java.io.IOException;
-
import java.math.BigInteger;
-
import java.security.InvalidKeyException;
import java.security.MessageDigest;
import java.security.PrivateKey;
import java.security.SignatureSpi;
import java.security.interfaces.RSAPrivateKey;
import java.security.interfaces.RSAPublicKey;
-
import java.util.ArrayList;
-import gnu.java.security.OID;
-import gnu.java.security.der.DER;
-import gnu.java.security.der.DERReader;
-import gnu.java.security.der.DERValue;
-import gnu.java.security.der.DERWriter;
-
public abstract class RSA extends SignatureSpi implements Cloneable
{
package gnu.java.security.provider;
-import java.util.Random;
-import java.security.SecureRandomSpi;
+import java.io.Serializable;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
-import java.io.Serializable;
+import java.security.SecureRandomSpi;
+import java.util.Random;
public class SHA1PRNG extends SecureRandomSpi implements Serializable
{
package gnu.java.security.provider;
+import gnu.java.security.OID;
+
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
-import gnu.java.security.OID;
-
public class SHA1withRSA extends RSA
{
package gnu.java.security.provider;
+import gnu.java.io.Base64InputStream;
+import gnu.java.security.x509.X509CRL;
+import gnu.java.security.x509.X509CertPath;
+import gnu.java.security.x509.X509Certificate;
+
import java.io.BufferedInputStream;
import java.io.EOFException;
-import java.io.InputStream;
import java.io.IOException;
-
+import java.io.InputStream;
+import java.security.cert.CRL;
+import java.security.cert.CRLException;
+import java.security.cert.CertPath;
import java.security.cert.Certificate;
import java.security.cert.CertificateEncodingException;
import java.security.cert.CertificateException;
import java.security.cert.CertificateFactorySpi;
-import java.security.cert.CertPath;
-import java.security.cert.CRL;
-import java.security.cert.CRLException;
-
import java.util.Collection;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
-import gnu.java.io.Base64InputStream;
-import gnu.java.security.x509.X509Certificate;
-import gnu.java.security.x509.X509CertPath;
-import gnu.java.security.x509.X509CRL;
-
public class X509CertificateFactory extends CertificateFactorySpi
{
package gnu.java.security.x509;
-import java.security.cert.X509Extension;
-import java.util.Collection;
-
import gnu.java.security.OID;
import gnu.java.security.x509.ext.Extension;
+import java.security.cert.X509Extension;
+import java.util.Collection;
+
public interface GnuPKIExtension extends X509Extension
{
package gnu.java.security.x509;
+import gnu.java.security.OID;
+import gnu.java.security.der.DER;
+import gnu.java.security.der.DERReader;
+import gnu.java.security.der.DERValue;
+
import java.io.EOFException;
-import java.io.InputStream;
import java.io.IOException;
+import java.io.InputStream;
import java.io.Reader;
import java.io.StringReader;
-
import java.security.Principal;
-
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
-import gnu.java.security.der.DER;
-import gnu.java.security.der.DERReader;
-import gnu.java.security.der.DERValue;
-import gnu.java.security.OID;
-
public class X500DistinguishedName implements Principal
{
import gnu.java.security.der.DERValue;
import gnu.java.security.x509.ext.Extension;
-import java.io.InputStream;
import java.io.IOException;
+import java.io.InputStream;
import java.math.BigInteger;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
-import java.security.PublicKey;
import java.security.Principal;
+import java.security.PublicKey;
import java.security.Signature;
import java.security.SignatureException;
-import java.security.cert.Certificate;
import java.security.cert.CRLException;
+import java.security.cert.Certificate;
import java.util.Collection;
import java.util.Collections;
import java.util.Date;
-import java.util.HashSet;
import java.util.HashMap;
+import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
package gnu.java.security.x509;
-import java.io.IOException;
+import gnu.java.security.OID;
+import gnu.java.security.der.DERReader;
+import gnu.java.security.der.DERValue;
+import gnu.java.security.x509.ext.Extension;
+import java.io.IOException;
import java.math.BigInteger;
-
import java.security.cert.CRLException;
-
import java.util.Collection;
import java.util.Collections;
import java.util.Date;
import java.util.Iterator;
import java.util.Set;
-import gnu.java.security.OID;
-import gnu.java.security.der.*;
-import gnu.java.security.x509.ext.*;
-
/**
* A single entry in a X.509 certificate revocation list.
*
package gnu.java.security.x509;
+import gnu.java.security.OID;
+import gnu.java.security.der.DER;
+import gnu.java.security.der.DEREncodingException;
+import gnu.java.security.der.DERReader;
+import gnu.java.security.der.DERValue;
+
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
-import java.io.InputStream;
import java.io.IOException;
-
+import java.io.InputStream;
import java.math.BigInteger;
-
+import java.security.cert.CertPath;
import java.security.cert.Certificate;
import java.security.cert.CertificateEncodingException;
import java.security.cert.CertificateException;
-import java.security.cert.CertPath;
-
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
-import gnu.java.security.OID;
-import gnu.java.security.der.DER;
-import gnu.java.security.der.DEREncodingException;
-import gnu.java.security.der.DERReader;
-import gnu.java.security.der.DERValue;
-
/**
* A certificate path (or certificate chain) of X509Certificates.
*
package gnu.java.security.x509;
import java.io.IOException;
-
import java.security.Principal;
-import java.security.cert.Certificate;
import java.security.cert.CertSelector;
+import java.security.cert.Certificate;
import java.security.cert.X509Certificate;
-
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
package gnu.java.security.x509;
-import java.io.InputStream;
+import gnu.java.security.OID;
+import gnu.java.security.der.BitString;
+import gnu.java.security.der.DER;
+import gnu.java.security.der.DERReader;
+import gnu.java.security.der.DERValue;
+import gnu.java.security.x509.ext.BasicConstraints;
+import gnu.java.security.x509.ext.ExtendedKeyUsage;
+import gnu.java.security.x509.ext.Extension;
+import gnu.java.security.x509.ext.IssuerAlternativeNames;
+import gnu.java.security.x509.ext.KeyUsage;
+import gnu.java.security.x509.ext.SubjectAlternativeNames;
+
import java.io.IOException;
+import java.io.InputStream;
import java.io.PrintWriter;
import java.io.Serializable;
import java.io.StringWriter;
-
import java.math.BigInteger;
-
import java.security.AlgorithmParameters;
import java.security.InvalidKeyException;
import java.security.KeyFactory;
import java.security.PublicKey;
import java.security.Signature;
import java.security.SignatureException;
-
import java.security.cert.CertificateEncodingException;
import java.security.cert.CertificateException;
import java.security.cert.CertificateExpiredException;
import java.security.cert.CertificateNotYetValidException;
import java.security.cert.CertificateParsingException;
-
import java.security.interfaces.DSAParams;
import java.security.interfaces.DSAPublicKey;
import java.security.spec.DSAParameterSpec;
import java.security.spec.X509EncodedKeySpec;
-
-import java.util.Arrays;
import java.util.ArrayList;
+import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.Date;
import javax.security.auth.x500.X500Principal;
-import gnu.java.security.OID;
-import gnu.java.security.der.*;
-import gnu.java.security.x509.ext.*;
-
/**
* An implementation of X.509 certificates.
*
package gnu.java.security.x509.ext;
-import java.io.IOException;
-import java.math.BigInteger;
-
import gnu.java.security.OID;
import gnu.java.security.der.DER;
import gnu.java.security.der.DERReader;
import gnu.java.security.der.DERValue;
import gnu.java.security.x509.Util;
+import java.io.IOException;
+import java.math.BigInteger;
+
public class AuthorityKeyIdentifier extends Extension.Value
{
package gnu.java.security.x509.ext;
-import java.io.IOException;
-import java.math.BigInteger;
-import java.util.ArrayList;
-import java.util.List;
-
import gnu.java.security.OID;
import gnu.java.security.der.DER;
import gnu.java.security.der.DERReader;
import gnu.java.security.der.DERValue;
+import java.io.IOException;
+import java.math.BigInteger;
+import java.util.ArrayList;
+import java.util.List;
+
public class BasicConstraints extends Extension.Value
{
package gnu.java.security.x509.ext;
-import java.io.IOException;
-import java.math.BigInteger;
-
import gnu.java.security.OID;
import gnu.java.security.der.DER;
import gnu.java.security.der.DERReader;
import gnu.java.security.der.DERValue;
+import java.io.IOException;
+import java.math.BigInteger;
+
public class CRLNumber extends Extension.Value
{
package gnu.java.security.x509.ext;
+import gnu.java.security.OID;
+import gnu.java.security.der.DER;
+import gnu.java.security.der.DERReader;
+import gnu.java.security.der.DERValue;
+
import java.io.IOException;
import java.security.cert.PolicyQualifierInfo;
-
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
-import gnu.java.security.OID;
-import gnu.java.security.der.DER;
-import gnu.java.security.der.DERReader;
-import gnu.java.security.der.DERValue;
-
public class CertificatePolicies extends Extension.Value
{
package gnu.java.security.x509.ext;
-import java.io.IOException;
-import java.util.Collections;
-import java.util.LinkedList;
-import java.util.List;
-
import gnu.java.security.OID;
import gnu.java.security.der.DER;
import gnu.java.security.der.DERReader;
import gnu.java.security.der.DERValue;
+import java.io.IOException;
+import java.util.Collections;
+import java.util.LinkedList;
+import java.util.List;
+
public class ExtendedKeyUsage extends Extension.Value
{
package gnu.java.security.x509.ext;
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.List;
-
import gnu.java.security.OID;
import gnu.java.security.der.DER;
import gnu.java.security.der.DERReader;
import gnu.java.security.der.DERValue;
import gnu.java.security.x509.Util;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+
public class Extension
{
-/* GeneralNames.java -- the GeneralNames object.
+/* GeneralNames.java -- the GeneralNames object
Copyright (C) 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath.
package gnu.java.security.x509.ext;
-import java.io.IOException;
+import gnu.java.security.OID;
+import gnu.java.security.der.DER;
+import gnu.java.security.der.DERReader;
+import gnu.java.security.der.DERValue;
+import gnu.java.security.x509.X500DistinguishedName;
+import java.io.IOException;
import java.net.InetAddress;
-
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
-import gnu.java.security.OID;
-import gnu.java.security.x509.X500DistinguishedName;
-import gnu.java.security.der.DER;
-import gnu.java.security.der.DERReader;
-import gnu.java.security.der.DERValue;
-
public class GeneralNames
{
package gnu.java.security.x509.ext;
+import gnu.java.security.OID;
+
import java.io.IOException;
import java.util.List;
-import gnu.java.security.OID;
public class IssuerAlternativeNames extends Extension.Value
{
package gnu.java.security.x509.ext;
-import java.io.IOException;
-
import gnu.java.security.OID;
import gnu.java.security.der.BitString;
import gnu.java.security.der.DER;
import gnu.java.security.der.DERReader;
import gnu.java.security.der.DERValue;
+import java.io.IOException;
+
public class KeyUsage extends Extension.Value
{
package gnu.java.security.x509.ext;
-import java.io.IOException;
-import java.math.BigInteger;
-
import gnu.java.security.OID;
import gnu.java.security.der.DERReader;
import gnu.java.security.der.DERValue;
+import java.io.IOException;
+import java.math.BigInteger;
+
public class PolicyConstraint extends Extension.Value
{
package gnu.java.security.x509.ext;
-import java.io.IOException;
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.Map;
-
import gnu.java.security.OID;
import gnu.java.security.der.DER;
import gnu.java.security.der.DERReader;
import gnu.java.security.der.DERValue;
+import java.io.IOException;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.Map;
+
public class PolicyMappings extends Extension.Value
{
package gnu.java.security.x509.ext;
-import java.io.IOException;
-import java.util.Date;
-
import gnu.java.security.OID;
import gnu.java.security.der.DER;
import gnu.java.security.der.DERReader;
import gnu.java.security.der.DERValue;
+import java.io.IOException;
+import java.util.Date;
+
public class PrivateKeyUsagePeriod extends Extension.Value
{
package gnu.java.security.x509.ext;
-import java.io.IOException;
-import java.math.BigInteger;
-
import gnu.java.security.OID;
import gnu.java.security.der.DER;
import gnu.java.security.der.DERReader;
import gnu.java.security.der.DERValue;
+import java.io.IOException;
+import java.math.BigInteger;
+
public class ReasonCode extends Extension.Value
{
package gnu.java.security.x509.ext;
+import gnu.java.security.OID;
+
import java.io.IOException;
import java.util.List;
-import gnu.java.security.OID;
-
public class SubjectAlternativeNames extends Extension.Value
{
package gnu.java.security.x509.ext;
-import java.io.IOException;
-
import gnu.java.security.OID;
import gnu.java.security.der.DER;
import gnu.java.security.der.DERReader;
import gnu.java.security.der.DERValue;
import gnu.java.security.x509.Util;
+import java.io.IOException;
+
public class SubjectKeyIdentifier extends Extension.Value
{