|
From: <pe...@us...> - 2003-10-01 17:05:44
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/id/jce
In directory sc8-pr-cvs1:/tmp/cvs-serv25143/src/java/org/neuclear/id/jce
Modified Files:
NeuClearCertificateFactory.java NeuClearJCEProvider.java
Removed Files:
NeuClearCertificate.java
Log Message:
Moved the NeuClearCertificate class to be an inner class of Identity.
Index: NeuClearCertificateFactory.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/id/jce/NeuClearCertificateFactory.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** NeuClearCertificateFactory.java 30 Sep 2003 23:25:15 -0000 1.1
--- NeuClearCertificateFactory.java 1 Oct 2003 17:05:37 -0000 1.2
***************
*** 32,35 ****
--- 32,38 ----
$Id$
$Log$
+ Revision 1.2 2003/10/01 17:05:37 pelle
+ Moved the NeuClearCertificate class to be an inner class of Identity.
+
Revision 1.1 2003/09/30 23:25:15 pelle
Added new JCE Provider and java Certificate implementation for NeuClear Identity.
***************
*** 38,42 ****
/**
! *
* User: pelleb
* Date: Sep 30, 2003
--- 41,52 ----
/**
! * This is the beginnings of integrating NeuClear into the JCE architecture allowing
! * NeuClear to be plugged in relatively easily for other types of applications such as
! * Code signing.
! * <p>
! * Currently the provider provides a CertificateFactory with the name NeuClear. This
! * can be instantiated using:<br>
! * <tt> CertificateFactory certfact=CertificateFactory.getInstance("NeuClear");</tt><p>
! *
* User: pelleb
* Date: Sep 30, 2003
***************
*** 44,51 ****
*/
public class NeuClearCertificateFactory extends CertificateFactorySpi {
! public Certificate engineGenerateCertificate(InputStream inputStream) throws CertificateException {
try {
Identity id=(Identity) VerifyingReader.getInstance().read(inputStream);
! return new NeuClearCertificate(id);
} catch (NeudistException e) {
throw new CertificateException("NeuClear: Problem reading Certificate:"+e.getMessage());
--- 54,61 ----
*/
public class NeuClearCertificateFactory extends CertificateFactorySpi {
! final public Certificate engineGenerateCertificate(InputStream inputStream) throws CertificateException {
try {
Identity id=(Identity) VerifyingReader.getInstance().read(inputStream);
! return id.getCertificate();
} catch (NeudistException e) {
throw new CertificateException("NeuClear: Problem reading Certificate:"+e.getMessage());
***************
*** 53,57 ****
}
! public Collection engineGenerateCertificates(InputStream inputStream) throws CertificateException {
List list=new ArrayList(1);
list.add(engineGenerateCertificate(inputStream));
--- 63,67 ----
}
! final public Collection engineGenerateCertificates(InputStream inputStream) throws CertificateException {
List list=new ArrayList(1);
list.add(engineGenerateCertificate(inputStream));
***************
*** 59,67 ****
}
! public CRL engineGenerateCRL(InputStream inputStream) throws CRLException {
return null;
}
! public Collection engineGenerateCRLs(InputStream inputStream) throws CRLException {
return new ArrayList(0);
}
--- 69,77 ----
}
! final public CRL engineGenerateCRL(InputStream inputStream) throws CRLException {
return null;
}
! final public Collection engineGenerateCRLs(InputStream inputStream) throws CRLException {
return new ArrayList(0);
}
Index: NeuClearJCEProvider.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/id/jce/NeuClearJCEProvider.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** NeuClearJCEProvider.java 30 Sep 2003 23:25:15 -0000 1.1
--- NeuClearJCEProvider.java 1 Oct 2003 17:05:37 -0000 1.2
***************
*** 23,26 ****
--- 23,29 ----
$Id$
$Log$
+ Revision 1.2 2003/10/01 17:05:37 pelle
+ Moved the NeuClearCertificate class to be an inner class of Identity.
+
Revision 1.1 2003/09/30 23:25:15 pelle
Added new JCE Provider and java Certificate implementation for NeuClear Identity.
***************
*** 29,38 ****
/**
! *
* User: pelleb
* Date: Sep 30, 2003
* Time: 4:32:08 PM
*/
! public class NeuClearJCEProvider extends Provider {
public NeuClearJCEProvider() {
super("NeuClear", 0.7,"NeuClear Provider Implementing NeuClear Digital Certificates");
--- 32,48 ----
/**
! * This is the beginnings of integrating NeuClear into the JCE architecture allowing
! * NeuClear to be plugged in relatively easily for other types of applications such as
! * Code signing.
! * <p>
! * Currently the provider provides a CertificateFactory with the name NeuClear. This
! * can be instantiated using:<br>
! * <tt> CertificateFactory certfact=CertificateFactory.getInstance("NeuClear");</tt><p>
! *
* User: pelleb
* Date: Sep 30, 2003
* Time: 4:32:08 PM
*/
! public final class NeuClearJCEProvider extends Provider {
public NeuClearJCEProvider() {
super("NeuClear", 0.7,"NeuClear Provider Implementing NeuClear Digital Certificates");
--- NeuClearCertificate.java DELETED ---
|