Java Doc for Certificate.java in  » Portal » Open-Portal » com » sun » portal » microedition » pki » 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 » Portal » Open Portal » com.sun.portal.microedition.pki 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.sun.portal.microedition.pki.Certificate

All known Subclasses:   com.sun.portal.kssl.X509Certificate,
Certificate
public interface Certificate (Code)
Interface common to certificates. The features abstracted of Certificates include subject, issuer, type, version, serial number, signing algorithm, dates of valid use, and serial number.

Printable Representation for Binary Values

A non-string values in a certificate are represented as strings with each byte as two hex digits (capital letters for A-F) separated by ":" (Unicode 0x3A).

For example: 0C:56:FA:80

Printable Representation for X.509 Distinguished Names

For a X.509 certificate the value returned is the printable verision of the distingished name (DN) from the certificate.

An X.509 distinguished name of is set of attributes, each attribute is a sequence of an object ID and a value. For string comparison purposes, the following rules define a strict printable representation.

  1. There is no added white space around separators.
  2. Attributes are not reordered.
  3. If an object ID is in the table below, the label from the table will be substituted for the object ID, else the ID is formatted as a string using the binary printable representation above.
  4. Each object ID or label and value within an attribute will be separated by a "=" (Unicode 0x3D), even if the value is empty.
  5. If value is not a string, then it is formatted as a string using the binary printable representation above.
  6. Attributes will be separated by a ";" (Unicode 0x3B)


Labels for X.500 Distinguished Name Attributes
Object ID Binary Label
id-at-commonName 55:04:03 CN
id-at-surname 55:04:04 SN
id-at-countryName 55:04:06 C
id-at-localityName 55:04:07 L
id-at-stateOrProvinceName 55:04:08 ST
id-at-streetAddress 55:04:09 STREET
id-at-organizationName 55:04:0A O
id-at-organizationUnitName 55:04:0B OU
emailAddress 2A:86:48:86:F7:0D:01:09:01 EmailAddress

Example of a printable distinguished name:

C=US;O=Any Company, Inc.;CN=www.anycompany.com

since:
   MIDP 2.0




Method Summary
public  StringgetIssuer()
     Gets the name of this certificate's issuer.
public  longgetNotAfter()
     Gets the time after which this Certificate may not be used from the validity period.
public  longgetNotBefore()
     Gets the time before which this Certificate may not be used from the validity period.
public  StringgetSerialNumber()
     Gets the printable form of the serial number of this Certificate.
public  StringgetSigAlgName()
     Gets the name of the algorithm used to sign the Certificate.
public  StringgetSubject()
     Gets the name of this certificate's subject.
public  StringgetType()
     Get the type of the Certificate.
public  StringgetVersion()
     Gets the version number of this Certificate.



Method Detail
getIssuer
public String getIssuer()(Code)
Gets the name of this certificate's issuer. The issuer of the Certificate;the value MUST NOT be null.



getNotAfter
public long getNotAfter()(Code)
Gets the time after which this Certificate may not be used from the validity period. The time in milliseconds after which theCertificate is not valid (expiration date);it MUST be positive; Long.MAX_VALUE is returned ifthe certificate does not have its validity restricted based on thetime.



getNotBefore
public long getNotBefore()(Code)
Gets the time before which this Certificate may not be used from the validity period. The time in milliseconds before which theCertificate is not valid; it MUST be positive,0 is returned if the certificate does nothave its validity restricted based on the time.



getSerialNumber
public String getSerialNumber()(Code)
Gets the printable form of the serial number of this Certificate. If the serial number within the certificate is binary it should be formatted as a string using the binary printable representation in class description. For example, 0C:56:FA:80. A string containing the serial numberin user-friendly form; null is returnedif there is no serial number.



getSigAlgName
public String getSigAlgName()(Code)
Gets the name of the algorithm used to sign the Certificate. The algorithm names returned should be the labels defined in RFC2459 Section 7.2. The name of signature algorithm;the value MUST NOT be null.



getSubject
public String getSubject()(Code)
Gets the name of this certificate's subject. The subject of this Certificate;the value MUST NOT be null.



getType
public String getType()(Code)
Get the type of the Certificate. For X.509 Certificates the value returned is "X.509". The type of the Certificate;the value MUST NOT be null.



getVersion
public String getVersion()(Code)
Gets the version number of this Certificate. The format of the version number depends on the specific type and specification. For a X.509 certificate per RFC 2459 it would be "3". The version number of the Certificate;the value MUST NOT be null.



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