Commit 2d133a9f by Michael Koch Committed by Michael Koch

Identity.java, [...]: New versions from classpath.

2003-05-10  Michael Koch  <konqueror@gmx.de>

	* java/security/Identity.java,
	java/security/IdentityScope.java,
	java/security/Key.java,
	java/security/KeyPair.java,
	java/security/PrivateKey.java,
	java/security/Provider.java,
	java/security/PublicKey.java,
	java/security/SecureRandom.java,
	java/security/SecureRandomSpi.java,
	java/security/SignedObject.java,
	java/security/Signer.java,
	java/security/cert/Certificate.java,
	java/security/cert/PKIXCertPathBuilderResult.java,
	java/security/cert/X509Certificate.java:
	New versions from classpath.

From-SVN: r66655
parent 3ee10665
2003-05-10 Michael Koch <konqueror@gmx.de>
* java/security/Identity.java,
java/security/IdentityScope.java,
java/security/Key.java,
java/security/KeyPair.java,
java/security/PrivateKey.java,
java/security/Provider.java,
java/security/PublicKey.java,
java/security/SecureRandom.java,
java/security/SecureRandomSpi.java,
java/security/SignedObject.java,
java/security/Signer.java,
java/security/cert/Certificate.java,
java/security/cert/PKIXCertPathBuilderResult.java,
java/security/cert/X509Certificate.java:
New versions from classpath.
2003-05-09 Tom Tromey <tromey@redhat.com> 2003-05-09 Tom Tromey <tromey@redhat.com>
* Makefile.in: Rebuilt. * Makefile.in: Rebuilt.
......
...@@ -69,7 +69,7 @@ import java.util.Vector; ...@@ -69,7 +69,7 @@ import java.util.Vector;
*/ */
public abstract class Identity implements Principal, Serializable public abstract class Identity implements Principal, Serializable
{ {
static final long serialVersionUID = 3609922007826600659L; private static final long serialVersionUID = 3609922007826600659L;
private String name; private String name;
private IdentityScope scope; private IdentityScope scope;
......
...@@ -70,7 +70,7 @@ import java.util.Enumeration; ...@@ -70,7 +70,7 @@ import java.util.Enumeration;
*/ */
public abstract class IdentityScope extends Identity public abstract class IdentityScope extends Identity
{ {
static final long serialVersionUID = -2337346281189773310L; private static final long serialVersionUID = -2337346281189773310L;
private static IdentityScope systemScope = null; private static IdentityScope systemScope = null;
/** /**
......
...@@ -64,7 +64,7 @@ public interface Key extends Serializable ...@@ -64,7 +64,7 @@ public interface Key extends Serializable
/** /**
* The version identifier used for serialization. * The version identifier used for serialization.
*/ */
long serialVersionUID = 6603384152749567654L; public static final long serialVersionUID = 6603384152749567654L;
/** /**
* This method returns the name of the algorithm for this key. This is a * This method returns the name of the algorithm for this key. This is a
......
...@@ -48,7 +48,7 @@ import java.io.Serializable; ...@@ -48,7 +48,7 @@ import java.io.Serializable;
*/ */
public final class KeyPair implements Serializable public final class KeyPair implements Serializable
{ {
static final long serialVersionUID = -7565189502268009837L; private static final long serialVersionUID = -7565189502268009837L;
private PublicKey publicKey; private PublicKey publicKey;
private PrivateKey privateKey; private PrivateKey privateKey;
......
...@@ -58,5 +58,5 @@ public interface PrivateKey extends Key ...@@ -58,5 +58,5 @@ public interface PrivateKey extends Key
/** /**
* The version identifier used for serialization. * The version identifier used for serialization.
*/ */
long serialVersionUID = 6034044314589513430L; public static final long serialVersionUID = 6034044314589513430L;
} // interface PrivateKey } // interface PrivateKey
...@@ -56,7 +56,7 @@ import java.util.Properties; ...@@ -56,7 +56,7 @@ import java.util.Properties;
*/ */
public abstract class Provider extends Properties implements Serializable public abstract class Provider extends Properties implements Serializable
{ {
static final long serialVersionUID = -4298000515446427739L; private static final long serialVersionUID = -4298000515446427739L;
/** /**
* This is a textual description of the provider * This is a textual description of the provider
......
...@@ -56,5 +56,5 @@ public interface PublicKey extends Key ...@@ -56,5 +56,5 @@ public interface PublicKey extends Key
/** /**
* The version identifier used for serialization. * The version identifier used for serialization.
*/ */
long serialVersionUID = 7187392471159151072L; public static final long serialVersionUID = 7187392471159151072L;
} // interface PublicKey } // interface PublicKey
...@@ -62,7 +62,7 @@ public class SecureRandom extends Random ...@@ -62,7 +62,7 @@ public class SecureRandom extends Random
/** Service name for PRNGs. */ /** Service name for PRNGs. */
private static final String SECURE_RANDOM = "SecureRandom"; private static final String SECURE_RANDOM = "SecureRandom";
static final long serialVersionUID = 4940670005562187L; private static final long serialVersionUID = 4940670005562187L;
//Serialized Field //Serialized Field
long counter = 0; //Serialized long counter = 0; //Serialized
......
...@@ -50,7 +50,7 @@ import java.io.Serializable; ...@@ -50,7 +50,7 @@ import java.io.Serializable;
*/ */
public abstract class SecureRandomSpi implements Serializable public abstract class SecureRandomSpi implements Serializable
{ {
static final long serialVersionUID = -2991854161009191830L; private static final long serialVersionUID = -2991854161009191830L;
/** /**
Default Constructor for SecureRandomSpi Default Constructor for SecureRandomSpi
......
...@@ -129,7 +129,7 @@ import java.io.Serializable; ...@@ -129,7 +129,7 @@ import java.io.Serializable;
*/ */
public final class SignedObject implements Serializable public final class SignedObject implements Serializable
{ {
static final long serialVersionUID = 720502720485447167L; private static final long serialVersionUID = 720502720485447167L;
/** @serial */ /** @serial */
private byte[] content; private byte[] content;
......
...@@ -52,7 +52,7 @@ package java.security; ...@@ -52,7 +52,7 @@ package java.security;
*/ */
public abstract class Signer extends Identity public abstract class Signer extends Identity
{ {
static final long serialVersionUID = -1763464102261361480L; private static final long serialVersionUID = -1763464102261361480L;
private PrivateKey privateKey = null; private PrivateKey privateKey = null;
/** /**
......
...@@ -47,6 +47,7 @@ import java.io.ObjectInputStream; ...@@ -47,6 +47,7 @@ import java.io.ObjectInputStream;
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;
/** /**
* The Certificate class is an abstract class used to manage * The Certificate class is an abstract class used to manage
...@@ -71,9 +72,9 @@ import java.io.ObjectStreamException; ...@@ -71,9 +72,9 @@ import java.io.ObjectStreamException;
* @author Mark Benvenuto * @author Mark Benvenuto
* @author Casey Marshall * @author Casey Marshall
*/ */
public abstract class Certificate public abstract class Certificate implements Serializable
{ {
static final long serialVersionUID = -6751606818319535583L; private static final long serialVersionUID = -6751606818319535583L;
private String type; private String type;
...@@ -227,7 +228,7 @@ public abstract class Certificate ...@@ -227,7 +228,7 @@ public abstract class Certificate
* @throws ObjectStreamException If the replacement could not be * @throws ObjectStreamException If the replacement could not be
* created. * created.
*/ */
public Object writeReplace() throws ObjectStreamException protected Object writeReplace() throws ObjectStreamException
{ {
try try
{ {
......
...@@ -47,6 +47,7 @@ package java.security.cert; ...@@ -47,6 +47,7 @@ package java.security.cert;
* @see CertPathBuilderResult * @see CertPathBuilderResult
*/ */
public class PKIXCertPathBuilderResult extends PKIXCertPathValidatorResult public class PKIXCertPathBuilderResult extends PKIXCertPathValidatorResult
implements CertPathBuilderResult
{ {
// Fields. // Fields.
......
...@@ -142,6 +142,7 @@ import java.util.Date; ...@@ -142,6 +142,7 @@ import java.util.Date;
*/ */
public abstract class X509Certificate extends Certificate implements X509Extension public abstract class X509Certificate extends Certificate implements X509Extension
{ {
private static final long serialVersionUID = -2491127588187038216L;
/** /**
* Constructs a new certificate of the specified type. * Constructs a new certificate of the specified type.
......
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