Commit 78fe42c3 by Michael Koch Committed by Michael Koch

AlgorithmParameterGenerator.java, [...]: Import cleanup.

2004-10-21  Michael Koch  <konqueror@gmx.de>

	* java/security/AlgorithmParameterGenerator.java,
	java/security/AlgorithmParameters.java,
	java/security/AlgorithmParametersSpi.java,
	java/security/AllPermission.java,
	java/security/BasicPermission.java,
	java/security/Certificate.java,
	java/security/CodeSource.java,
	java/security/DigestInputStream.java,
	java/security/DigestOutputStream.java,
	java/security/GuardedObject.java,
	java/security/KeyFactory.java,
	java/security/KeyFactorySpi.java,
	java/security/KeyPairGenerator.java,
	java/security/KeyStore.java,
	java/security/KeyStoreSpi.java,
	java/security/Permissions.java,
	java/security/Security.java,
	java/security/Signature.java,
	java/security/UnresolvedPermission.java,
	java/security/cert/CertPathBuilder.java,
	java/security/cert/CertPathValidator.java,
	java/security/cert/CertStore.java,
	java/security/cert/Certificate.java,
	java/security/cert/CertificateFactory.java,
	java/security/cert/PolicyQualifierInfo.java,
	java/security/cert/TrustAnchor.java,
	java/security/cert/X509CRL.java,
	java/security/cert/X509CRLSelector.java,
	java/security/cert/X509CertSelector.java:
	Import cleanup.

From-SVN: r89397
parent 02db0fc1
2004-10-21 Michael Koch <konqueror@gmx.de> 2004-10-21 Michael Koch <konqueror@gmx.de>
* java/security/AlgorithmParameterGenerator.java,
java/security/AlgorithmParameters.java,
java/security/AlgorithmParametersSpi.java,
java/security/AllPermission.java,
java/security/BasicPermission.java,
java/security/Certificate.java,
java/security/CodeSource.java,
java/security/DigestInputStream.java,
java/security/DigestOutputStream.java,
java/security/GuardedObject.java,
java/security/KeyFactory.java,
java/security/KeyFactorySpi.java,
java/security/KeyPairGenerator.java,
java/security/KeyStore.java,
java/security/KeyStoreSpi.java,
java/security/Permissions.java,
java/security/Security.java,
java/security/Signature.java,
java/security/UnresolvedPermission.java,
java/security/cert/CertPathBuilder.java,
java/security/cert/CertPathValidator.java,
java/security/cert/CertStore.java,
java/security/cert/Certificate.java,
java/security/cert/CertificateFactory.java,
java/security/cert/PolicyQualifierInfo.java,
java/security/cert/TrustAnchor.java,
java/security/cert/X509CRL.java,
java/security/cert/X509CRLSelector.java,
java/security/cert/X509CertSelector.java:
Import cleanup.
2004-10-21 Michael Koch <konqueror@gmx.de>
* java/rmi/MarshalledObject.java, * java/rmi/MarshalledObject.java,
java/rmi/Naming.java, java/rmi/Naming.java,
java/rmi/activation/Activatable.java, java/rmi/activation/Activatable.java,
......
/* AlgorithmParameterGenerator.java --- Algorithm Parameter Generator /* AlgorithmParameterGenerator.java --- Algorithm Parameter Generator
Copyright (C) 1999, 2003 Free Software Foundation, Inc. Copyright (C) 1999, 2003, 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath. This file is part of GNU Classpath.
...@@ -35,12 +35,13 @@ this exception to your version of the library, but you are not ...@@ -35,12 +35,13 @@ this exception to your version of the library, but you are not
obligated to do so. If you do not wish to do so, delete this obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package java.security;
import java.security.spec.AlgorithmParameterSpec; package java.security;
import gnu.java.security.Engine; import gnu.java.security.Engine;
import java.security.spec.AlgorithmParameterSpec;
/** /**
* <p>The <code>AlgorithmParameterGenerator</code> class is used to generate a * <p>The <code>AlgorithmParameterGenerator</code> class is used to generate a
* set of parameters to be used with a certain algorithm. Parameter generators * set of parameters to be used with a certain algorithm. Parameter generators
......
/* AlgorithmParameters.java --- Algorithm Parameters Implementation Class /* AlgorithmParameters.java --- Algorithm Parameters Implementation Class
Copyright (C) 1999, 2003 Free Software Foundation, Inc. Copyright (C) 1999, 2003, 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath. This file is part of GNU Classpath.
...@@ -35,14 +35,15 @@ this exception to your version of the library, but you are not ...@@ -35,14 +35,15 @@ this exception to your version of the library, but you are not
obligated to do so. If you do not wish to do so, delete this obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package java.security;
import java.security.spec.InvalidParameterSpecException; package java.security;
import java.security.spec.AlgorithmParameterSpec;
import java.io.IOException;
import gnu.java.security.Engine; import gnu.java.security.Engine;
import java.io.IOException;
import java.security.spec.AlgorithmParameterSpec;
import java.security.spec.InvalidParameterSpecException;
/** /**
* <p>This class is used as an opaque representation of cryptographic * <p>This class is used as an opaque representation of cryptographic
* parameters.</p> * parameters.</p>
......
/* AlgorithmParametersSpi.java --- Algorithm Parameters SPI /* AlgorithmParametersSpi.java --- Algorithm Parameters SPI
Copyright (C) 1999 Free Software Foundation, Inc. Copyright (C) 1999, 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath. This file is part of GNU Classpath.
...@@ -35,79 +35,83 @@ this exception to your version of the library, but you are not ...@@ -35,79 +35,83 @@ this exception to your version of the library, but you are not
obligated to do so. If you do not wish to do so, delete this obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package java.security; package java.security;
import java.security.spec.InvalidParameterSpecException;
import java.security.spec.AlgorithmParameterSpec;
import java.io.IOException; import java.io.IOException;
import java.security.spec.AlgorithmParameterSpec;
import java.security.spec.InvalidParameterSpecException;
/** /**
AlgorithmParametersSpi is the Service Provider Interface * AlgorithmParametersSpi is the Service Provider Interface
for the Algorithm Parameters class. This class is used * for the Algorithm Parameters class. This class is used
to manage the algorithm parameters. * to manage the algorithm parameters.
*
@since JDK 1.2 * @since 1.2
@author Mark Benvenuto * @author Mark Benvenuto
*/ */
public abstract class AlgorithmParametersSpi public abstract class AlgorithmParametersSpi
{ {
/** /**
Creates a new instance of AlgorithmParametersSpi * Creates a new instance of AlgorithmParametersSpi
*/ */
public AlgorithmParametersSpi() public AlgorithmParametersSpi()
{ {
} }
/** /**
Initializes the engine with the specified * Initializes the engine with the specified
AlgorithmParameterSpec class. * AlgorithmParameterSpec class.
*
@param paramSpec A AlgorithmParameterSpec to initialize with * @param paramSpec A AlgorithmParameterSpec to initialize with
*
@throws InvalidParameterSpecException For an inapporiate ParameterSpec class * @throws InvalidParameterSpecException For an inapporiate
* ParameterSpec class
*/ */
protected abstract void engineInit(AlgorithmParameterSpec paramSpec) throws protected abstract void engineInit(AlgorithmParameterSpec paramSpec)
InvalidParameterSpecException; throws InvalidParameterSpecException;
/** /**
Initializes the engine with the specified * Initializes the engine with the specified
parameters stored in the byte array and decodes them * parameters stored in the byte array and decodes them
according to the ASN.1 specification. If the ASN.1 * according to the ASN.1 specification. If the ASN.1
specification exists then it succeeds or else it throws * specification exists then it succeeds or else it throws
IOException. * IOException.
*
@param params Parameters to initialize with * @param params Parameters to initialize with
*
@throws IOException Decoding Error * @throws IOException Decoding Error
*/ */
protected abstract void engineInit(byte[]params) throws IOException; protected abstract void engineInit(byte[]params) throws IOException;
/** /**
Initializes the engine with the specified * Initializes the engine with the specified
parameters stored in the byte array and decodes them * parameters stored in the byte array and decodes them
according to the specified decoding specification. * according to the specified decoding specification.
If format is null, then it is decoded using the ASN.1 * If format is null, then it is decoded using the ASN.1
specification if it exists or else it throws * specification if it exists or else it throws
IOException. * IOException.
*
@param params Parameters to initialize with * @param params Parameters to initialize with
@param format Name of decoding format to use * @param format Name of decoding format to use
*
@throws IOException Decoding Error * @throws IOException Decoding Error
*/ */
protected abstract void engineInit(byte[]params, protected abstract void engineInit(byte[]params, String format)
String format) throws IOException; throws IOException;
/** /**
Returns a specification of this AlgorithmParameters object. * Returns a specification of this AlgorithmParameters object.
paramSpec identifies the class to return the AlgortihmParameters * paramSpec identifies the class to return the AlgortihmParameters
in. * in.
*
@param paramSpec Class to return AlgorithmParameters in * @param paramSpec Class to return AlgorithmParameters in
*
@return the parameter specification * @return the parameter specification
*
@throws InvalidParameterSpecException if the paramSpec is an invalid parameter class * @throws InvalidParameterSpecException if the paramSpec is an
* invalid parameter class
*/ */
protected abstract AlgorithmParameterSpec engineGetParameterSpec(Class protected abstract AlgorithmParameterSpec engineGetParameterSpec(Class
paramSpec) paramSpec)
...@@ -115,31 +119,31 @@ public abstract class AlgorithmParametersSpi ...@@ -115,31 +119,31 @@ public abstract class AlgorithmParametersSpi
/** /**
Returns the parameters in the default encoding format. * Returns the parameters in the default encoding format.
The primary encoding format is ASN.1 format if it exists * The primary encoding format is ASN.1 format if it exists
for the specified type. * for the specified type.
*
@return byte array representing the parameters * @return byte array representing the parameters
*/ */
protected abstract byte[] engineGetEncoded() throws IOException; protected abstract byte[] engineGetEncoded() throws IOException;
/** /**
Returns the parameters in the specified encoding format. * Returns the parameters in the specified encoding format.
If <code>format</code> is <code>null</code> then the * If <code>format</code> is <code>null</code> then the
primary encoding format is used, the ASN.1 format, * primary encoding format is used, the ASN.1 format,
if it exists for the specified type. * if it exists for the specified type.
*
@return byte array representing the parameters * @return byte array representing the parameters
*/ */
protected abstract byte[] engineGetEncoded(String format) throws protected abstract byte[] engineGetEncoded(String format)
IOException; throws IOException;
/** /**
Returns a string describing the parameters in the * Returns a string describing the parameters in the
AlgorithmParametersSpi class. * AlgorithmParametersSpi class.
*
@return A string representing the format of the parameters. * @return A string representing the format of the parameters.
*/ */
protected abstract String engineToString(); protected abstract String engineToString();
} }
/* AllPermission.java -- Permission to do anything /* AllPermission.java -- Permission to do anything
Copyright (C) 1998, 2001, 2002 Free Software Foundation, Inc. Copyright (C) 1998, 2001, 2002, 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath. This file is part of GNU Classpath.
...@@ -35,19 +35,21 @@ this exception to your version of the library, but you are not ...@@ -35,19 +35,21 @@ this exception to your version of the library, but you are not
obligated to do so. If you do not wish to do so, delete this obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package java.security; package java.security;
import java.util.Enumeration;
import java.util.Collections;
import gnu.java.util.EmptyEnumeration; import gnu.java.util.EmptyEnumeration;
import java.util.Collections;
import java.util.Enumeration;
/** /**
* This class is a permission that implies all other permissions. Granting * This class is a permission that implies all other permissions. Granting
* this permission effectively grants all others. Extreme caution should * this permission effectively grants all others. Extreme caution should
* be exercised in granting this permission. * be exercised in granting this permission.
* *
* @author Aaron M. Renn <arenn@urbanophile.com> * @author Aaron M. Renn (arenn@urbanophile.com)
* @author Eric Blake <ebb9@email.byu.edu> * @author Eric Blake (ebb9@email.byu.edu)
* @see AccessController * @see AccessController
* @see Permissions * @see Permissions
* @see SecurityManager * @see SecurityManager
......
/* BasicPermission.java -- implements a simple named permission /* BasicPermission.java -- implements a simple named permission
Copyright (C) 1998, 1999, 2002, 2003 Free Software Foundation, Inc. Copyright (C) 1998, 1999, 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath. This file is part of GNU Classpath.
...@@ -35,11 +35,12 @@ this exception to your version of the library, but you are not ...@@ -35,11 +35,12 @@ this exception to your version of the library, but you are not
obligated to do so. If you do not wish to do so, delete this obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package java.security; package java.security;
import java.io.Serializable; import java.io.Serializable;
import java.util.Hashtable;
import java.util.Enumeration; import java.util.Enumeration;
import java.util.Hashtable;
/** /**
* This class implements a simple model for named permissions without an * This class implements a simple model for named permissions without an
......
/* Certificate.java -- deprecated interface for modeling digital certificates /* Certificate.java -- deprecated interface for modeling digital certificates
Copyright (C) 1998, 2002 Free Software Foundation, Inc. Copyright (C) 1998, 2002, 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath. This file is part of GNU Classpath.
...@@ -38,9 +38,9 @@ exception statement from your version. */ ...@@ -38,9 +38,9 @@ exception statement from your version. */
package java.security; package java.security;
import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
import java.io.OutputStream; import java.io.OutputStream;
import java.io.IOException;
/** /**
* This interface models a digital certificate which verifies the * This interface models a digital certificate which verifies the
......
/* CodeSource.java -- Code location and certifcates /* CodeSource.java -- Code location and certifcates
Copyright (C) 1998, 2002 Free Software Foundation, Inc. Copyright (C) 1998, 2002, 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath. This file is part of GNU Classpath.
...@@ -43,13 +43,13 @@ import java.io.IOException; ...@@ -43,13 +43,13 @@ import java.io.IOException;
import java.io.ObjectInputStream; import java.io.ObjectInputStream;
import java.io.ObjectOutputStream; import java.io.ObjectOutputStream;
import java.io.Serializable; import java.io.Serializable;
import java.net.URL;
import java.net.SocketPermission; import java.net.SocketPermission;
import java.net.URL;
// Note that this overrides Certificate in this package. // Note that this overrides Certificate in this package.
import java.security.cert.Certificate; import java.security.cert.Certificate;
import java.security.cert.CertificateFactory;
import java.security.cert.CertificateEncodingException; import java.security.cert.CertificateEncodingException;
import java.security.cert.CertificateException; import java.security.cert.CertificateException;
import java.security.cert.CertificateFactory;
import java.util.Arrays; import java.util.Arrays;
import java.util.HashSet; import java.util.HashSet;
import java.util.Iterator; import java.util.Iterator;
...@@ -59,8 +59,8 @@ import java.util.Iterator; ...@@ -59,8 +59,8 @@ import java.util.Iterator;
* represented by a URL), and the list of certificates that are used to * represented by a URL), and the list of certificates that are used to
* check the signatures of signed code loaded from this source. * check the signatures of signed code loaded from this source.
* *
* @author Aaron M. Renn <arenn@urbanophile.com> * @author Aaron M. Renn (arenn@urbanophile.com)
* @author Eric Blake <ebb9@email.byu.edu> * @author Eric Blake (ebb9@email.byu.edu)
* @since 1.1 * @since 1.1
* @status updated to 1.4 * @status updated to 1.4
*/ */
......
/* DigestInputStream.java --- An Input stream tied to a message digest /* DigestInputStream.java --- An Input stream tied to a message digest
Copyright (C) 1999, 2003 Free Software Foundation, Inc. Copyright (C) 1999, 2003, 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath. This file is part of GNU Classpath.
...@@ -35,28 +35,29 @@ this exception to your version of the library, but you are not ...@@ -35,28 +35,29 @@ this exception to your version of the library, but you are not
obligated to do so. If you do not wish to do so, delete this obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package java.security; package java.security;
import java.io.InputStream;
import java.io.FilterInputStream; import java.io.FilterInputStream;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream;
/** /**
DigestInputStream is a class that ties an InputStream with a * DigestInputStream is a class that ties an InputStream with a
MessageDigest. The Message Digest is used by the class to * MessageDigest. The Message Digest is used by the class to
update it self as bytes are read from the InputStream. * update it self as bytes are read from the InputStream.
*
The updating to the digest depends on the on flag which is set * The updating to the digest depends on the on flag which is set
to true by default to tell the class to update the data * to true by default to tell the class to update the data
in the message digest. * in the message digest.
*
@version 0.0 * @version 0.0
@author Mark Benvenuto <ivymccough@worldnet.att.net> * @author Mark Benvenuto <ivymccough@worldnet.att.net>
*/ */
public class DigestInputStream extends FilterInputStream public class DigestInputStream extends FilterInputStream
{ {
/** /**
The message digest for the DigestInputStream * The message digest for the DigestInputStream
*/ */
protected MessageDigest digest; protected MessageDigest digest;
...@@ -64,12 +65,12 @@ public class DigestInputStream extends FilterInputStream ...@@ -64,12 +65,12 @@ public class DigestInputStream extends FilterInputStream
private boolean state = true; private boolean state = true;
/** /**
Constructs a new DigestInputStream. * Constructs a new DigestInputStream.
It associates a MessageDigest with the stream to * It associates a MessageDigest with the stream to
compute the stream as data is written. * compute the stream as data is written.
*
@param stream An InputStream to associate this stream with * @param stream An InputStream to associate this stream with
@param digest A MessageDigest to hash the stream with * @param digest A MessageDigest to hash the stream with
*/ */
public DigestInputStream(InputStream stream, MessageDigest digest) public DigestInputStream(InputStream stream, MessageDigest digest)
{ {
...@@ -79,9 +80,9 @@ public class DigestInputStream extends FilterInputStream ...@@ -79,9 +80,9 @@ public class DigestInputStream extends FilterInputStream
} }
/** /**
Returns the MessageDigest associated with this DigestInputStream * Returns the MessageDigest associated with this DigestInputStream
*
@return The MessageDigest used to hash this stream * @return The MessageDigest used to hash this stream
*/ */
public MessageDigest getMessageDigest() public MessageDigest getMessageDigest()
{ {
...@@ -89,9 +90,9 @@ public class DigestInputStream extends FilterInputStream ...@@ -89,9 +90,9 @@ public class DigestInputStream extends FilterInputStream
} }
/** /**
Sets the current MessageDigest to current parameter * Sets the current MessageDigest to current parameter
*
@param digest A MessageDigest to associate with this stream * @param digest A MessageDigest to associate with this stream
*/ */
public void setMessageDigest(MessageDigest digest) public void setMessageDigest(MessageDigest digest)
{ {
...@@ -99,15 +100,15 @@ public class DigestInputStream extends FilterInputStream ...@@ -99,15 +100,15 @@ public class DigestInputStream extends FilterInputStream
} }
/** /**
Reads a byte from the input stream and updates the digest. * Reads a byte from the input stream and updates the digest.
This method reads the underlying input stream and if the * This method reads the underlying input stream and if the
on flag is true then updates the message digest. * on flag is true then updates the message digest.
*
@return Returns a byte from the input stream, -1 is returned to indicate that * @return Returns a byte from the input stream, -1 is returned to indicate that
the end of stream was reached before this read call * the end of stream was reached before this read call
*
@throws IOException if an IO error occurs in the underlying input stream, * @throws IOException if an IO error occurs in the underlying input stream,
this error is thrown * this error is thrown
*/ */
public int read() throws IOException public int read() throws IOException
{ {
...@@ -120,18 +121,18 @@ public class DigestInputStream extends FilterInputStream ...@@ -120,18 +121,18 @@ public class DigestInputStream extends FilterInputStream
} }
/** /**
Reads bytes from the input stream and updates the digest. * Reads bytes from the input stream and updates the digest.
This method reads the underlying input stream and if the * This method reads the underlying input stream and if the
on flag is true then updates the message digest. * on flag is true then updates the message digest.
*
@param b a byte array to store the data from the input stream * @param b a byte array to store the data from the input stream
@param off an offset to start at in the array * @param off an offset to start at in the array
@param len length of data to read * @param len length of data to read
@return Returns count of bytes read, -1 is returned to indicate that * @return Returns count of bytes read, -1 is returned to indicate that
the end of stream was reached before this read call * the end of stream was reached before this read call
*
@throws IOException if an IO error occurs in the underlying input stream, * @throws IOException if an IO error occurs in the underlying input stream,
this error is thrown * this error is thrown
*/ */
public int read(byte[]b, int off, int len) throws IOException public int read(byte[]b, int off, int len) throws IOException
{ {
...@@ -144,10 +145,10 @@ public class DigestInputStream extends FilterInputStream ...@@ -144,10 +145,10 @@ public class DigestInputStream extends FilterInputStream
} }
/** /**
Sets the flag specifing if this DigestInputStream updates the * Sets the flag specifing if this DigestInputStream updates the
digest in the write() methods. The default is on; * digest in the write() methods. The default is on;
*
@param on True means it digests stream, false means it does not * @param on True means it digests stream, false means it does not
*/ */
public void on(boolean on) public void on(boolean on)
{ {
...@@ -155,9 +156,9 @@ public class DigestInputStream extends FilterInputStream ...@@ -155,9 +156,9 @@ public class DigestInputStream extends FilterInputStream
} }
/** /**
Converts the input stream and underlying message digest to a string. * Converts the input stream and underlying message digest to a string.
*
@return A string representing the input stream and message digest. * @return A string representing the input stream and message digest.
*/ */
public String toString() public String toString()
{ {
......
/* DigestOutputStream.java --- An output stream tied to a message digest /* DigestOutputStream.java --- An output stream tied to a message digest
Copyright (C) 1999 Free Software Foundation, Inc. Copyright (C) 1999, 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath. This file is part of GNU Classpath.
...@@ -35,28 +35,29 @@ this exception to your version of the library, but you are not ...@@ -35,28 +35,29 @@ this exception to your version of the library, but you are not
obligated to do so. If you do not wish to do so, delete this obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package java.security; package java.security;
import java.io.OutputStream;
import java.io.FilterOutputStream; import java.io.FilterOutputStream;
import java.io.IOException; import java.io.IOException;
import java.io.OutputStream;
/** /**
DigestOutputStream is a class that ties an OutputStream with a * DigestOutputStream is a class that ties an OutputStream with a
MessageDigest. The Message Digest is used by the class to update it * MessageDigest. The Message Digest is used by the class to update it
self as bytes are written to the OutputStream. * self as bytes are written to the OutputStream.
*
The updating to the digest depends on the on flag which is set to * The updating to the digest depends on the on flag which is set to
true by default that tells the class to update the data in the * true by default that tells the class to update the data in the
message digest. * message digest.
*
@version 0.0 * @version 0.0
@author Mark Benvenuto <ivymccough@worldnet.att.net> * @author Mark Benvenuto <ivymccough@worldnet.att.net>
*/ */
public class DigestOutputStream extends FilterOutputStream public class DigestOutputStream extends FilterOutputStream
{ {
/** /**
The message digest for the DigestOutputStream * The message digest for the DigestOutputStream
*/ */
protected MessageDigest digest; protected MessageDigest digest;
...@@ -64,12 +65,12 @@ public class DigestOutputStream extends FilterOutputStream ...@@ -64,12 +65,12 @@ public class DigestOutputStream extends FilterOutputStream
private boolean state = true; private boolean state = true;
/** /**
Constructs a new DigestOutputStream. It associates a * Constructs a new DigestOutputStream. It associates a
MessageDigest with the stream to compute the stream as data is * MessageDigest with the stream to compute the stream as data is
written. * written.
*
@param stream An OutputStream to associate this stream with * @param stream An OutputStream to associate this stream with
@param digest A MessageDigest to hash the stream with * @param digest A MessageDigest to hash the stream with
*/ */
public DigestOutputStream(OutputStream stream, MessageDigest digest) public DigestOutputStream(OutputStream stream, MessageDigest digest)
{ {
...@@ -78,9 +79,9 @@ public class DigestOutputStream extends FilterOutputStream ...@@ -78,9 +79,9 @@ public class DigestOutputStream extends FilterOutputStream
} }
/** /**
Returns the MessageDigest associated with this DigestOutputStream * Returns the MessageDigest associated with this DigestOutputStream
*
@return The MessageDigest used to hash this stream * @return The MessageDigest used to hash this stream
*/ */
public MessageDigest getMessageDigest() public MessageDigest getMessageDigest()
{ {
...@@ -88,9 +89,9 @@ public class DigestOutputStream extends FilterOutputStream ...@@ -88,9 +89,9 @@ public class DigestOutputStream extends FilterOutputStream
} }
/** /**
Sets the current MessageDigest to current parameter * Sets the current MessageDigest to current parameter
*
@param digest A MessageDigest to associate with this stream * @param digest A MessageDigest to associate with this stream
*/ */
public void setMessageDigest(MessageDigest digest) public void setMessageDigest(MessageDigest digest)
{ {
...@@ -99,13 +100,13 @@ public class DigestOutputStream extends FilterOutputStream ...@@ -99,13 +100,13 @@ public class DigestOutputStream extends FilterOutputStream
/** /**
Updates the hash if the on flag is true and then writes a byte to * Updates the hash if the on flag is true and then writes a byte to
the underlying output stream. * the underlying output stream.
*
@param b A byte to write to the output stream * @param b A byte to write to the output stream
*
@exception IOException if the underlying output stream * @exception IOException if the underlying output stream
cannot write the byte, this is thrown. * cannot write the byte, this is thrown.
*/ */
public void write(int b) throws IOException public void write(int b) throws IOException
{ {
...@@ -116,15 +117,15 @@ public class DigestOutputStream extends FilterOutputStream ...@@ -116,15 +117,15 @@ public class DigestOutputStream extends FilterOutputStream
} }
/** /**
Updates the hash if the on flag is true and then writes the bytes * Updates the hash if the on flag is true and then writes the bytes
to the underlying output stream. * to the underlying output stream.
*
@param b Bytes to write to the output stream * @param b Bytes to write to the output stream
@param off Offset to start to start at in array * @param off Offset to start to start at in array
@param len Length of data to write * @param len Length of data to write
*
@exception IOException if the underlying output stream * @exception IOException if the underlying output stream
cannot write the bytes, this is thrown. * cannot write the bytes, this is thrown.
*/ */
public void write(byte[]b, int off, int len) throws IOException public void write(byte[]b, int off, int len) throws IOException
{ {
...@@ -135,10 +136,10 @@ public class DigestOutputStream extends FilterOutputStream ...@@ -135,10 +136,10 @@ public class DigestOutputStream extends FilterOutputStream
} }
/** /**
Sets the flag specifying if this DigestOutputStream updates the * Sets the flag specifying if this DigestOutputStream updates the
digest in the write() methods. The default is on; * digest in the write() methods. The default is on;
*
@param on True means it digests stream, false means it does not * @param on True means it digests stream, false means it does not
*/ */
public void on(boolean on) public void on(boolean on)
{ {
...@@ -146,9 +147,9 @@ public class DigestOutputStream extends FilterOutputStream ...@@ -146,9 +147,9 @@ public class DigestOutputStream extends FilterOutputStream
} }
/** /**
Converts the output stream and underlying message digest to a string. * Converts the output stream and underlying message digest to a string.
*
@return A string representing the output stream and message digest. * @return A string representing the output stream and message digest.
*/ */
public String toString() public String toString()
{ {
......
/* GuardedObject.java -- An object protected by a Guard /* GuardedObject.java -- An object protected by a Guard
Copyright (C) 1998, 2002 Free Software Foundation, Inc. Copyright (C) 1998, 2002, 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath. This file is part of GNU Classpath.
...@@ -35,11 +35,12 @@ this exception to your version of the library, but you are not ...@@ -35,11 +35,12 @@ this exception to your version of the library, but you are not
obligated to do so. If you do not wish to do so, delete this obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package java.security; package java.security;
import java.io.Serializable;
import java.io.IOException; import java.io.IOException;
import java.io.ObjectOutputStream; import java.io.ObjectOutputStream;
import java.io.Serializable;
/** /**
* This class is an object that is guarded by a <code>Guard</code> object. * This class is an object that is guarded by a <code>Guard</code> object.
......
/* KeyFactory.java --- Key Factory Class /* KeyFactory.java --- Key Factory Class
Copyright (C) 1999, 2003 Free Software Foundation, Inc. Copyright (C) 1999, 2003, 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath. This file is part of GNU Classpath.
...@@ -35,13 +35,14 @@ this exception to your version of the library, but you are not ...@@ -35,13 +35,14 @@ this exception to your version of the library, but you are not
obligated to do so. If you do not wish to do so, delete this obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package java.security;
import java.security.spec.KeySpec; package java.security;
import java.security.spec.InvalidKeySpecException;
import gnu.java.security.Engine; import gnu.java.security.Engine;
import java.security.spec.InvalidKeySpecException;
import java.security.spec.KeySpec;
/** /**
* <p>Key factories are used to convert keys (opaque cryptographic keys of type * <p>Key factories are used to convert keys (opaque cryptographic keys of type
* {@link Key}) into key specifications (transparent representations of the * {@link Key}) into key specifications (transparent representations of the
......
/* KeyFactorySpi.java --- Key Factory Service Provider Interface /* KeyFactorySpi.java --- Key Factory Service Provider Interface
Copyright (C) 1999 Free Software Foundation, Inc. Copyright (C) 1999, 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath. This file is part of GNU Classpath.
...@@ -35,96 +35,98 @@ this exception to your version of the library, but you are not ...@@ -35,96 +35,98 @@ this exception to your version of the library, but you are not
obligated to do so. If you do not wish to do so, delete this obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package java.security; package java.security;
import java.security.spec.KeySpec;
import java.security.spec.InvalidKeySpecException; import java.security.spec.InvalidKeySpecException;
import java.security.spec.KeySpec;
/** /**
KeyFactorySpi is the Service Provider Interface (SPI) for the * KeyFactorySpi is the Service Provider Interface (SPI) for the
KeyFactory class. This is the interface for providers to * KeyFactory class. This is the interface for providers to
supply to implement a key factory for an algorithm. * supply to implement a key factory for an algorithm.
*
Key factories are used to convert keys (opaque cryptographic * Key factories are used to convert keys (opaque cryptographic
keys of type Key) into key specifications (transparent * keys of type Key) into key specifications (transparent
representations of the underlying key material). * representations of the underlying key material).
*
Key factories are bi-directional. They allow a key class * Key factories are bi-directional. They allow a key class
to be converted into a key specification (key material) and * to be converted into a key specification (key material) and
back again. * back again.
*
For example DSA public keys can be specified as * For example DSA public keys can be specified as
DSAPublicKeySpec or X509EncodedKeySpec. The key factory * DSAPublicKeySpec or X509EncodedKeySpec. The key factory
translate these key specifications. * translate these key specifications.
*
@since JDK 1.2 * @since JDK 1.2
@author Mark Benvenuto * @author Mark Benvenuto
*/ */
public abstract class KeyFactorySpi public abstract class KeyFactorySpi
{ {
/** /**
Constucts a new KeyFactorySpi. * Constucts a new KeyFactorySpi.
*/ */
public KeyFactorySpi() public KeyFactorySpi()
{ {
} }
/** /**
Generates a public key from the provided key specification. * Generates a public key from the provided key specification.
*
@param keySpec key specification * @param keySpec key specification
*
@return the public key * @return the public key
*
@throws InvalidKeySpecException invalid key specification for * @throws InvalidKeySpecException invalid key specification for
this key factory to produce a public key * this key factory to produce a public key
*/ */
protected abstract PublicKey engineGeneratePublic(KeySpec keySpec) protected abstract PublicKey engineGeneratePublic(KeySpec keySpec)
throws InvalidKeySpecException; throws InvalidKeySpecException;
/** /**
Generates a private key from the provided key specification. * Generates a private key from the provided key specification.
*
@param keySpec key specification * @param keySpec key specification
*
@return the private key * @return the private key
*
@throws InvalidKeySpecException invalid key specification for * @throws InvalidKeySpecException invalid key specification for
this key factory to produce a private key * this key factory to produce a private key
*/ */
protected abstract PrivateKey engineGeneratePrivate(KeySpec keySpec) protected abstract PrivateKey engineGeneratePrivate(KeySpec keySpec)
throws InvalidKeySpecException; throws InvalidKeySpecException;
/** /**
Returns a key specification for the given key. keySpec * Returns a key specification for the given key. keySpec
identifies the specification class to return the key * identifies the specification class to return the key
material in. * material in.
*
@param key the key * @param key the key
@param keySpec the specification class to return the * @param keySpec the specification class to return the
key material in. * key material in.
*
@return the key specification in an instance of the requested * @return the key specification in an instance of the requested
specification class * specification class
*
@throws InvalidKeySpecException the requested key specification * @throws InvalidKeySpecException the requested key specification
is inappropriate for this key or the key is * is inappropriate for this key or the key is
unrecognized. * unrecognized.
*/ */
protected abstract KeySpec engineGetKeySpec(Key key, Class keySpec) protected abstract KeySpec engineGetKeySpec(Key key, Class keySpec)
throws InvalidKeySpecException; throws InvalidKeySpecException;
/** /**
Translates the key from an unknown or untrusted provider * Translates the key from an unknown or untrusted provider
into a key for this key factory. * into a key for this key factory.
*
@param the key from an unknown or untrusted provider * @param the key from an unknown or untrusted provider
*
@return the translated key * @return the translated key
*
@throws InvalidKeySpecException if the key cannot be * @throws InvalidKeySpecException if the key cannot be
processed by this key factory * processed by this key factory
*/ */
protected abstract Key engineTranslateKey(Key key) protected abstract Key engineTranslateKey(Key key)
throws InvalidKeyException; throws InvalidKeyException;
......
/* KeyPairGenerator.java --- Key Pair Generator Class /* KeyPairGenerator.java --- Key Pair Generator Class
Copyright (C) 1999, 2002, 2003 Free Software Foundation, Inc. Copyright (C) 1999, 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath. This file is part of GNU Classpath.
...@@ -35,12 +35,13 @@ this exception to your version of the library, but you are not ...@@ -35,12 +35,13 @@ this exception to your version of the library, but you are not
obligated to do so. If you do not wish to do so, delete this obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package java.security;
import java.security.spec.AlgorithmParameterSpec; package java.security;
import gnu.java.security.Engine; import gnu.java.security.Engine;
import java.security.spec.AlgorithmParameterSpec;
/** /**
* <p>The <code>KeyPairGenerator</code> class is used to generate pairs of * <p>The <code>KeyPairGenerator</code> class is used to generate pairs of
* public and private keys. Key pair generators are constructed using the * public and private keys. Key pair generators are constructed using the
......
/* KeyStore.java --- Key Store Class /* KeyStore.java --- Key Store Class
Copyright (C) 1999, 2002, 2003 Free Software Foundation, Inc. Copyright (C) 1999, 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath. This file is part of GNU Classpath.
...@@ -35,17 +35,18 @@ this exception to your version of the library, but you are not ...@@ -35,17 +35,18 @@ this exception to your version of the library, but you are not
obligated to do so. If you do not wish to do so, delete this obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package java.security; package java.security;
import java.io.InputStream; import gnu.java.security.Engine;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream; import java.io.OutputStream;
import java.security.cert.CertificateException; import java.security.cert.CertificateException;
import java.util.Date; import java.util.Date;
import java.util.Enumeration; import java.util.Enumeration;
import gnu.java.security.Engine;
/** /**
* Keystore represents an in-memory collection of keys and * Keystore represents an in-memory collection of keys and
* certificates. There are two types of entries: * certificates. There are two types of entries:
......
/* Permissions.java -- a collection of permission collections /* Permissions.java -- a collection of permission collections
Copyright (C) 1998, 2001, 2002 Free Software Foundation, Inc. Copyright (C) 1998, 2001, 2002, 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath. This file is part of GNU Classpath.
...@@ -35,11 +35,12 @@ this exception to your version of the library, but you are not ...@@ -35,11 +35,12 @@ this exception to your version of the library, but you are not
obligated to do so. If you do not wish to do so, delete this obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package java.security; package java.security;
import java.io.Serializable; import java.io.Serializable;
import java.util.Hashtable;
import java.util.Enumeration; import java.util.Enumeration;
import java.util.Hashtable;
import java.util.NoSuchElementException; import java.util.NoSuchElementException;
/** /**
......
...@@ -35,13 +35,14 @@ this exception to your version of the library, but you are not ...@@ -35,13 +35,14 @@ this exception to your version of the library, but you are not
obligated to do so. If you do not wish to do so, delete this obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package java.security; package java.security;
import gnu.java.security.action.GetPropertyAction; import gnu.java.security.action.GetPropertyAction;
import java.io.InputStream;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream;
import java.net.URL; import java.net.URL;
import java.security.AccessController;
import java.util.Collections; import java.util.Collections;
import java.util.Enumeration; import java.util.Enumeration;
import java.util.HashMap; import java.util.HashMap;
......
...@@ -35,14 +35,15 @@ this exception to your version of the library, but you are not ...@@ -35,14 +35,15 @@ this exception to your version of the library, but you are not
obligated to do so. If you do not wish to do so, delete this obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package java.security; package java.security;
import gnu.java.security.Engine;
import java.security.cert.Certificate; import java.security.cert.Certificate;
import java.security.cert.X509Certificate; import java.security.cert.X509Certificate;
import java.security.spec.AlgorithmParameterSpec; import java.security.spec.AlgorithmParameterSpec;
import gnu.java.security.Engine;
/** /**
* <p>This <code>Signature</code> class is used to provide applications the * <p>This <code>Signature</code> class is used to provide applications the
* functionality of a digital signature algorithm. Digital signatures are used * functionality of a digital signature algorithm. Digital signatures are used
......
/* UnresolvedPermission.java -- Placeholder for unresolved permissions /* UnresolvedPermission.java -- Placeholder for unresolved permissions
Copyright (C) 1998, 2001, 2002 Free Software Foundation, Inc. Copyright (C) 1998, 2001, 2002, 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath. This file is part of GNU Classpath.
...@@ -35,16 +35,17 @@ this exception to your version of the library, but you are not ...@@ -35,16 +35,17 @@ this exception to your version of the library, but you are not
obligated to do so. If you do not wish to do so, delete this obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package java.security; package java.security;
// All uses of Certificate in this file refer to the one in the listed // All uses of Certificate in this file refer to the one in the listed
// package, not this one. // package, not this one.
import java.security.cert.Certificate; import java.security.cert.Certificate;
import java.util.Arrays; import java.util.Arrays;
import java.util.Hashtable;
import java.util.Vector;
import java.util.Enumeration; import java.util.Enumeration;
import java.util.Hashtable;
import java.util.NoSuchElementException; import java.util.NoSuchElementException;
import java.util.Vector;
/** /**
* This class is used to hold instances of all permissions that cannot * This class is used to hold instances of all permissions that cannot
......
/* CertPathBuilder.java -- bulids CertPath objects from Certificates. /* CertPathBuilder.java -- bulids CertPath objects from Certificates.
Copyright (C) 2003 Free Software Foundation, Inc. Copyright (C) 2003, 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath. This file is part of GNU Classpath.
...@@ -38,14 +38,14 @@ exception statement from your version. */ ...@@ -38,14 +38,14 @@ exception statement from your version. */
package java.security.cert; package java.security.cert;
import gnu.java.security.Engine;
import java.security.InvalidAlgorithmParameterException; import java.security.InvalidAlgorithmParameterException;
import java.security.NoSuchAlgorithmException; import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException; import java.security.NoSuchProviderException;
import java.security.Provider; import java.security.Provider;
import java.security.Security; import java.security.Security;
import gnu.java.security.Engine;
/** /**
* This class builds certificate paths (also called certificate chains), * This class builds certificate paths (also called certificate chains),
* which can be used to establish trust for a particular certificate by * which can be used to establish trust for a particular certificate by
......
/* CertPathValidator -- validates certificate paths. /* CertPathValidator -- validates certificate paths.
Copyright (C) 2003 Free Software Foundation, Inc. Copyright (C) 2003, 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath. This file is part of GNU Classpath.
...@@ -38,6 +38,8 @@ exception statement from your version. */ ...@@ -38,6 +38,8 @@ exception statement from your version. */
package java.security.cert; package java.security.cert;
import gnu.java.security.Engine;
import java.security.AccessController; import java.security.AccessController;
import java.security.InvalidAlgorithmParameterException; import java.security.InvalidAlgorithmParameterException;
import java.security.NoSuchAlgorithmException; import java.security.NoSuchAlgorithmException;
...@@ -46,8 +48,6 @@ import java.security.PrivilegedAction; ...@@ -46,8 +48,6 @@ import java.security.PrivilegedAction;
import java.security.Provider; import java.security.Provider;
import java.security.Security; import java.security.Security;
import gnu.java.security.Engine;
/** /**
* Generic interface to classes that validate certificate paths. * Generic interface to classes that validate certificate paths.
* *
......
/* CertStore -- stores and retrieves certificates. /* CertStore -- stores and retrieves certificates.
Copyright (C) 2003 Free Software Foundation, Inc. Copyright (C) 2003, 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath. This file is part of GNU Classpath.
...@@ -38,17 +38,16 @@ exception statement from your version. */ ...@@ -38,17 +38,16 @@ exception statement from your version. */
package java.security.cert; package java.security.cert;
import gnu.java.security.Engine;
import java.security.InvalidAlgorithmParameterException; import java.security.InvalidAlgorithmParameterException;
import java.security.NoSuchAlgorithmException; import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException; import java.security.NoSuchProviderException;
import java.security.PrivilegedAction; import java.security.PrivilegedAction;
import java.security.Provider; import java.security.Provider;
import java.security.Security; import java.security.Security;
import java.util.Collection; import java.util.Collection;
import gnu.java.security.Engine;
/** /**
* A CertStore is a read-only repository for certificates and * A CertStore is a read-only repository for certificates and
* certificate revocation lists. * certificate revocation lists.
......
/* Certificate.java --- Certificate class /* Certificate.java --- Certificate class
Copyright (C) 1999,2003 Free Software Foundation, Inc. Copyright (C) 1999, 2003, 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath. This file is part of GNU Classpath.
...@@ -38,15 +38,15 @@ exception statement from your version. */ ...@@ -38,15 +38,15 @@ exception statement from your version. */
package java.security.cert; package java.security.cert;
import java.security.PublicKey;
import java.security.NoSuchAlgorithmException;
import java.security.InvalidKeyException;
import java.security.NoSuchProviderException;
import java.security.SignatureException;
import java.io.ByteArrayInputStream; import java.io.ByteArrayInputStream;
import java.io.InvalidObjectException; import java.io.InvalidObjectException;
import java.io.ObjectStreamException; import java.io.ObjectStreamException;
import java.io.Serializable; import java.io.Serializable;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
import java.security.PublicKey;
import java.security.SignatureException;
/** /**
* The Certificate class is an abstract class used to manage * The Certificate class is an abstract class used to manage
......
/* CertificateFactory.java -- Certificate Factory Class /* CertificateFactory.java -- Certificate Factory Class
Copyright (C) 1999, 2002, 2003 Free Software Foundation, Inc. Copyright (C) 1999, 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath. This file is part of GNU Classpath.
...@@ -38,19 +38,17 @@ exception statement from your version. */ ...@@ -38,19 +38,17 @@ exception statement from your version. */
package java.security.cert; package java.security.cert;
import gnu.java.security.Engine;
import java.io.InputStream;
import java.security.NoSuchAlgorithmException; import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException; import java.security.NoSuchProviderException;
import java.security.Provider; import java.security.Provider;
import java.security.Security; import java.security.Security;
import java.io.InputStream;
import java.util.Collection; import java.util.Collection;
import java.util.Iterator; import java.util.Iterator;
import java.util.List; import java.util.List;
import gnu.java.security.Engine;
/** /**
* This class implements the CertificateFactory class interface used to * This class implements the CertificateFactory class interface used to
* generate certificates, certificate revocation lists (CRLs), and certificate * generate certificates, certificate revocation lists (CRLs), and certificate
......
/* PolicyQualifierInfo.java -- policy qualifier info object. /* PolicyQualifierInfo.java -- policy qualifier info object.
Copyright (C) 2003 Free Software Foundation, Inc. Copyright (C) 2003, 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath. This file is part of GNU Classpath.
...@@ -38,14 +38,14 @@ exception statement from your version. */ ...@@ -38,14 +38,14 @@ exception statement from your version. */
package java.security.cert; package java.security.cert;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import gnu.java.io.ASN1ParsingException; import gnu.java.io.ASN1ParsingException;
import gnu.java.security.OID; import gnu.java.security.OID;
import gnu.java.security.der.DERReader; import gnu.java.security.der.DERReader;
import gnu.java.security.der.DERValue; import gnu.java.security.der.DERValue;
import java.io.ByteArrayInputStream;
import java.io.IOException;
/** /**
* The PolicyQualifierInfo X.509 certificate extension. * The PolicyQualifierInfo X.509 certificate extension.
* PolicyQualifierInfo objects are represented by the ASN.1 structure: * PolicyQualifierInfo objects are represented by the ASN.1 structure:
......
/* TrustAnchor.java -- an ultimately-trusted certificate. /* TrustAnchor.java -- an ultimately-trusted certificate.
Copyright (C) 2003 Free Software Foundation, Inc. Copyright (C) 2003, 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath. This file is part of GNU Classpath.
...@@ -38,10 +38,10 @@ exception statement from your version. */ ...@@ -38,10 +38,10 @@ exception statement from your version. */
package java.security.cert; package java.security.cert;
import java.security.PublicKey;
import gnu.java.security.x509.X500DistinguishedName; import gnu.java.security.x509.X500DistinguishedName;
import java.security.PublicKey;
/** /**
* An ultimately-trusted certificate to serve as the root of a * An ultimately-trusted certificate to serve as the root of a
* certificate chain. * certificate chain.
......
/* X509CRL.java --- X.509 Certificate Revocation List /* X509CRL.java --- X.509 Certificate Revocation List
Copyright (C) 1999 Free Software Foundation, Inc. Copyright (C) 1999, 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath. This file is part of GNU Classpath.
...@@ -39,11 +39,11 @@ exception statement from your version. */ ...@@ -39,11 +39,11 @@ exception statement from your version. */
package java.security.cert; package java.security.cert;
import java.math.BigInteger; import java.math.BigInteger;
import java.security.Principal;
import java.security.PublicKey;
import java.security.NoSuchAlgorithmException;
import java.security.InvalidKeyException; import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException; import java.security.NoSuchProviderException;
import java.security.Principal;
import java.security.PublicKey;
import java.security.SignatureException; import java.security.SignatureException;
import java.util.Date; import java.util.Date;
import java.util.Set; import java.util.Set;
......
...@@ -38,13 +38,14 @@ exception statement from your version. */ ...@@ -38,13 +38,14 @@ exception statement from your version. */
package java.security.cert; package java.security.cert;
import gnu.java.security.action.GetPropertyAction;
import gnu.java.security.der.DERReader;
import gnu.java.security.der.DERValue;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
import java.math.BigInteger; import java.math.BigInteger;
import java.security.AccessController; import java.security.AccessController;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
...@@ -55,10 +56,6 @@ import java.util.List; ...@@ -55,10 +56,6 @@ import java.util.List;
import javax.security.auth.x500.X500Principal; import javax.security.auth.x500.X500Principal;
import gnu.java.security.action.GetPropertyAction;
import gnu.java.security.der.DERReader;
import gnu.java.security.der.DERValue;
/** /**
* A class for matching X.509 certificate revocation lists by criteria. * A class for matching X.509 certificate revocation lists by criteria.
* *
......
...@@ -38,15 +38,15 @@ exception statement from your version. */ ...@@ -38,15 +38,15 @@ exception statement from your version. */
package java.security.cert; package java.security.cert;
import java.io.IOException; import gnu.java.security.OID;
import gnu.java.security.action.GetPropertyAction;
import java.io.IOException;
import java.math.BigInteger; import java.math.BigInteger;
import java.security.AccessController; import java.security.AccessController;
import java.security.KeyFactory; import java.security.KeyFactory;
import java.security.PublicKey; import java.security.PublicKey;
import java.security.spec.X509EncodedKeySpec; import java.security.spec.X509EncodedKeySpec;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.Collection; import java.util.Collection;
...@@ -60,9 +60,6 @@ import java.util.Set; ...@@ -60,9 +60,6 @@ import java.util.Set;
import javax.security.auth.x500.X500Principal; import javax.security.auth.x500.X500Principal;
import gnu.java.security.OID;
import gnu.java.security.action.GetPropertyAction;
/** /**
* A concrete implementation of {@link CertSelector} for X.509 certificates, * A concrete implementation of {@link CertSelector} for X.509 certificates,
* which allows a number of criteria to be set when accepting certificates, * which allows a number of criteria to be set when accepting certificates,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment