Java Doc for Certificate.java in  » 6.0-JDK-Modules » j2me » java » security » 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 » java.security 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.security.Certificate

Certificate
public interface Certificate (Code)

This is an interface of abstract methods for managing a variety of identity certificates. An identity certificate is a guarantee by a principal that a public key is that of another principal. (A principal represents an entity such as an individual user, a group, or a corporation.)

In particular, this interface is intended to be a common abstraction for constructs that have different formats but important common uses. For example, different types of certificates, such as X.509 certificates and PGP certificates, share general certificate functionality (the need to encode and decode certificates) and some types of information, such as a public key, the principal whose key it is, and the guarantor guaranteeing that the public key is that of the specified principal. So an implementation of X.509 certificates and an implementation of PGP certificates can both utilize the Certificate interface, even though their formats and additional types and amounts of information stored are different.

Important: This interface is useful for cataloging and grouping objects sharing certain common uses. It does not have any semantics of its own. In particular, a Certificate object does not make any statement as to the validity of the binding. It is the duty of the application implementing this interface to verify the certificate and satisfy itself of its validity.
version:
   1.31, 02/02/00
author:
   Benjamin Renaud
See Also:   java.security.cert.Certificate





Method Summary
abstract public  voiddecode(InputStream stream)
     Decodes a certificate from an input stream.
abstract public  voidencode(OutputStream stream)
     Encodes the certificate to an output stream in a format that can be decoded by the decode method.
abstract public  StringgetFormat()
     Returns the name of the coding format.
abstract public  PrincipalgetGuarantor()
     Returns the guarantor of the certificate, that is, the principal guaranteeing that the public key associated with this certificate is that of the principal associated with this certificate.
abstract public  PrincipalgetPrincipal()
     Returns the principal of the principal-key pair being guaranteed by the guarantor. the principal to which this certificate is bound.
abstract public  PublicKeygetPublicKey()
     Returns the key of the principal-key pair being guaranteed by the guarantor. the public key that this certificate certifies belongsto a particular principal.
public  StringtoString(boolean detailed)
     Returns a string that represents the contents of the certificate.



Method Detail
decode
abstract public void decode(InputStream stream) throws KeyException, IOException(Code)
Decodes a certificate from an input stream. The format should be that returned by getFormat and produced by encode.
Parameters:
  stream - the input stream from which to fetch the databeing decoded.
exception:
  KeyException - if the certificate is not properly initialized,or data is missing, etc.
exception:
  IOException - if an exception occurs while trying to inputthe encoded certificate from the input stream.
See Also:   Certificate.encode
See Also:   
See Also:   Certificate.getFormat



encode
abstract public void encode(OutputStream stream) throws KeyException, IOException(Code)
Encodes the certificate to an output stream in a format that can be decoded by the decode method.
Parameters:
  stream - the output stream to which to encode thecertificate.
exception:
  KeyException - if the certificate is notproperly initialized, or data is missing, etc.
exception:
  IOException - if a stream exception occurs whiletrying to output the encoded certificate to the output stream.
See Also:   Certificate.decode
See Also:   
See Also:   Certificate.getFormat



getFormat
abstract public String getFormat()(Code)
Returns the name of the coding format. This is used as a hint to find an appropriate parser. It could be "X.509", "PGP", etc. This is the format produced and understood by the encode and decode methods. the name of the coding format.



getGuarantor
abstract public Principal getGuarantor()(Code)
Returns the guarantor of the certificate, that is, the principal guaranteeing that the public key associated with this certificate is that of the principal associated with this certificate. For X.509 certificates, the guarantor will typically be a Certificate Authority (such as the United States Postal Service or Verisign, Inc.). the guarantor which guaranteed the principal-keybinding.



getPrincipal
abstract public Principal getPrincipal()(Code)
Returns the principal of the principal-key pair being guaranteed by the guarantor. the principal to which this certificate is bound.



getPublicKey
abstract public PublicKey getPublicKey()(Code)
Returns the key of the principal-key pair being guaranteed by the guarantor. the public key that this certificate certifies belongsto a particular principal.



toString
public String toString(boolean detailed)(Code)
Returns a string that represents the contents of the certificate.
Parameters:
  detailed - whether or not to give detailed informationabout the certificate a string representing the contents of the certificate



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