Java Doc for X509Factory.java in  » 6.0-JDK-Modules » j2me » sun » security » provider » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » j2me » sun.security.provider 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.security.cert.CertificateFactorySpi
      sun.security.provider.X509Factory

X509Factory
public class X509Factory extends CertificateFactorySpi (Code)
This class defines a certificate factory for X.509 v3 certificates & certification paths, and X.509 v2 certificate revocation lists (CRLs).
author:
   Jan Luehe
author:
   Hemma Prafullchandra
author:
   Sean Mullan
version:
   1.4, 10/10/06
See Also:   java.security.cert.CertificateFactorySpi
See Also:   java.security.cert.Certificate
See Also:   java.security.cert.CertPath
See Also:   java.security.cert.CRL
See Also:   java.security.cert.X509Certificate
See Also:   java.security.cert.X509CRL
See Also:   sun.security.x509.X509CertImpl
See Also:   sun.security.x509.X509CRLImpl


Field Summary
final public static  StringBEGIN_CERT
    
final public static  StringEND_CERT
    


Method Summary
public  CRLengineGenerateCRL(InputStream is)
     Generates an X.509 certificate revocation list (CRL) object and initializes it with the data read from the given input stream is.
Parameters:
  is - an input stream with the CRL data.
public  CollectionengineGenerateCRLs(InputStream is)
     Returns a (possibly empty) collection view of X.509 CRLs read from the given input stream is.
Parameters:
  is - the input stream with the CRLs.
public  CertPathengineGenerateCertPath(InputStream inStream)
     Generates a CertPath object and initializes it with the data read from the InputStream inStream.
public  CertPathengineGenerateCertPath(InputStream inStream, String encoding)
     Generates a CertPath object and initializes it with the data read from the InputStream inStream.
public  CertPathengineGenerateCertPath(List certificates)
     Generates a CertPath object and initializes it with a List of Certificates.

The certificates supplied must be of a type supported by the CertificateFactory.

public  CertificateengineGenerateCertificate(InputStream is)
     Generates an X.509 certificate object and initializes it with the data read from the input stream is.
Parameters:
  is - an input stream with the certificate data.
public  CollectionengineGenerateCertificates(InputStream is)
     Returns a (possibly empty) collection view of X.509 certificates read from the given input stream is.
Parameters:
  is - the input stream with the certificates.
public  IteratorengineGetCertPathEncodings()
     Returns an iteration of the CertPath encodings supported by this certificate factory, with the default encoding first.
public static synchronized  X509CertImplintern(X509Certificate c)
     Return an interned X509CertImpl for the given certificate. If the given X509Certificate or X509CertImpl is already present in the cert cache, the cached object is returned.
public static synchronized  X509CRLImplintern(X509CRL c)
     Return an interned X509CRLImpl for the given certificate.

Field Detail
BEGIN_CERT
final public static String BEGIN_CERT(Code)



END_CERT
final public static String END_CERT(Code)





Method Detail
engineGenerateCRL
public CRL engineGenerateCRL(InputStream is) throws CRLException(Code)
Generates an X.509 certificate revocation list (CRL) object and initializes it with the data read from the given input stream is.
Parameters:
  is - an input stream with the CRL data. an X.509 CRL object initialized with the datafrom the input stream.
exception:
  CRLException - on parsing errors.



engineGenerateCRLs
public Collection engineGenerateCRLs(InputStream is) throws CRLException(Code)
Returns a (possibly empty) collection view of X.509 CRLs read from the given input stream is.
Parameters:
  is - the input stream with the CRLs. a (possibly empty) collection view of X.509 CRL objectsinitialized with the data from the input stream.
exception:
  CRLException - on parsing errors.



engineGenerateCertPath
public CertPath engineGenerateCertPath(InputStream inStream) throws CertificateException(Code)
Generates a CertPath object and initializes it with the data read from the InputStream inStream. The data is assumed to be in the default encoding.
Parameters:
  inStream - an InputStream containing the data a CertPath initialized with the data from theInputStream
exception:
  CertificateException - if an exception occurs while decoding
since:
   1.4



engineGenerateCertPath
public CertPath engineGenerateCertPath(InputStream inStream, String encoding) throws CertificateException(Code)
Generates a CertPath object and initializes it with the data read from the InputStream inStream. The data is assumed to be in the specified encoding.
Parameters:
  inStream - an InputStream containing the data
Parameters:
  encoding - the encoding used for the data a CertPath initialized with the data from theInputStream
exception:
  CertificateException - if an exception occurs while decoding orthe encoding requested is not supported
since:
   1.4



engineGenerateCertPath
public CertPath engineGenerateCertPath(List certificates) throws CertificateException(Code)
Generates a CertPath object and initializes it with a List of Certificates.

The certificates supplied must be of a type supported by the CertificateFactory. They will be copied out of the supplied List object.
Parameters:
  certificates - a List of Certificates a CertPath initialized with the supplied list ofcertificates
exception:
  CertificateException - if an exception occurs
since:
   1.4




engineGenerateCertificate
public Certificate engineGenerateCertificate(InputStream is) throws CertificateException(Code)
Generates an X.509 certificate object and initializes it with the data read from the input stream is.
Parameters:
  is - an input stream with the certificate data. an X.509 certificate object initialized with the datafrom the input stream.
exception:
  CertificateException - on parsing errors.



engineGenerateCertificates
public Collection engineGenerateCertificates(InputStream is) throws CertificateException(Code)
Returns a (possibly empty) collection view of X.509 certificates read from the given input stream is.
Parameters:
  is - the input stream with the certificates. a (possibly empty) collection view of X.509 certificate objectsinitialized with the data from the input stream.
exception:
  CertificateException - on parsing errors.



engineGetCertPathEncodings
public Iterator engineGetCertPathEncodings()(Code)
Returns an iteration of the CertPath encodings supported by this certificate factory, with the default encoding first.

Attempts to modify the returned Iterator via its remove method result in an UnsupportedOperationException. an Iterator over the names of the supportedCertPath encodings (as Strings)
since:
   1.4




intern
public static synchronized X509CertImpl intern(X509Certificate c) throws CertificateException(Code)
Return an interned X509CertImpl for the given certificate. If the given X509Certificate or X509CertImpl is already present in the cert cache, the cached object is returned. Otherwise, if it is a X509Certificate, it is first converted to a X509CertImpl. Then the X509CertImpl is added to the cache and returned. Note that all certificates created via generateCertificate(InputStream) are already interned and this method does not need to be called. It is useful for certificates that cannot be created via generateCertificate() and for converting other X509Certificate implementations to an X509CertImpl.



intern
public static synchronized X509CRLImpl intern(X509CRL c) throws CRLException(Code)
Return an interned X509CRLImpl for the given certificate. For more information, see intern(X509Certificate).



Methods inherited from java.security.cert.CertificateFactorySpi
abstract public CRL engineGenerateCRL(InputStream inStream) throws CRLException(Code)(Java Doc)
abstract public Collection engineGenerateCRLs(InputStream inStream) throws CRLException(Code)(Java Doc)
public CertPath engineGenerateCertPath(InputStream inStream) throws CertificateException(Code)(Java Doc)
public CertPath engineGenerateCertPath(InputStream inStream, String encoding) throws CertificateException(Code)(Java Doc)
public CertPath engineGenerateCertPath(List certificates) throws CertificateException(Code)(Java Doc)
abstract public Certificate engineGenerateCertificate(InputStream inStream) throws CertificateException(Code)(Java Doc)
abstract public Collection engineGenerateCertificates(InputStream inStream) throws CertificateException(Code)(Java Doc)
public Iterator engineGetCertPathEncodings()(Code)(Java Doc)

Methods inherited from java.lang.Object
public boolean equals(Object obj)(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.