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


java.lang.Object
   sun.security.x509.X509CertInfo

X509CertInfo
public class X509CertInfo implements CertAttrSet(Code)
The X509CertInfo class represents X.509 certificate information.

X.509 certificates have several base data elements, including:

  • The Subject Name, an X.500 Distinguished Name for the entity (subject) for which the certificate was issued.
  • The Subject Public Key, the public key of the subject. This is one of the most important parts of the certificate.
  • The Validity Period, a time period (e.g. six months) within which the certificate is valid (unless revoked).
  • The Issuer Name, an X.500 Distinguished Name for the Certificate Authority (CA) which issued the certificate.
  • A Serial Number assigned by the CA, for use in certificate revocation and other applications.
    author:
       Amit Kapoor
    author:
       Hemma Prafullchandra
    version:
       1.23
    See Also:   CertAttrSet
    See Also:   X509CertImpl


Field Summary
final public static  StringALGORITHM_ID
    
final public static  StringEXTENSIONS
    
final public static  StringIDENT
     Identifier for this attribute, to be used with the get, set, delete methods of Certificate, x509 type.
final public static  StringISSUER
    
final public static  StringISSUER_ID
    
final public static  StringKEY
    
final public static  StringNAME
    
final public static  StringSERIAL_NUMBER
    
final public static  StringSUBJECT
    
final public static  StringSUBJECT_ID
    
final public static  StringVALIDITY
    
final public static  StringVERSION
    
protected  CertificateAlgorithmIdalgId
    
protected  CertificateExtensionsextensions
    
protected  CertificateValidityinterval
    
protected  CertificateIssuerNameissuer
    
protected  CertificateIssuerUniqueIdentityissuerUniqueId
    
protected  CertificateX509KeypubKey
    
protected  CertificateSerialNumberserialNum
    
protected  CertificateSubjectNamesubject
    
protected  CertificateSubjectUniqueIdentitysubjectUniqueId
    
protected  CertificateVersionversion
    

Constructor Summary
public  X509CertInfo()
     Construct an uninitialized X509CertInfo on which decode must later be called (or which may be deserialized).
public  X509CertInfo(byte[] cert)
     Unmarshals a certificate from its encoded form, parsing the encoded bytes.
public  X509CertInfo(DerValue derVal)
     Unmarshal a certificate from its encoded form, parsing a DER value.

Method Summary
public  voiddecode(InputStream in)
     Decode an X.509 certificate from an input stream.
public  voiddelete(String name)
     Delete the certificate attribute.
public  voidencode(OutputStream out)
     Appends the certificate to an output stream.
public  booleanequals(Object other)
     Compares two X509CertInfo objects.
public  booleanequals(X509CertInfo other)
     Compares two certificates, returning false if any data differs between the two.
public  Objectget(String name)
     Get the certificate attribute.
public  EnumerationgetElements()
     Return an enumeration of names of attributes existing within this attribute.
public  byte[]getEncodedInfo()
     Returns the encoded certificate info.
public  StringgetName()
     Return the name of this attribute.
public  inthashCode()
     Calculates a hash code value for the object.
public  voidset(String name, Object val)
     Set the certificate attribute.
public  StringtoString()
     Returns a printable representation of the certificate.

Field Detail
ALGORITHM_ID
final public static String ALGORITHM_ID(Code)



EXTENSIONS
final public static String EXTENSIONS(Code)



IDENT
final public static String IDENT(Code)
Identifier for this attribute, to be used with the get, set, delete methods of Certificate, x509 type.



ISSUER
final public static String ISSUER(Code)



ISSUER_ID
final public static String ISSUER_ID(Code)



KEY
final public static String KEY(Code)



NAME
final public static String NAME(Code)



SERIAL_NUMBER
final public static String SERIAL_NUMBER(Code)



SUBJECT
final public static String SUBJECT(Code)



SUBJECT_ID
final public static String SUBJECT_ID(Code)



VALIDITY
final public static String VALIDITY(Code)



VERSION
final public static String VERSION(Code)



algId
protected CertificateAlgorithmId algId(Code)



extensions
protected CertificateExtensions extensions(Code)



interval
protected CertificateValidity interval(Code)



issuer
protected CertificateIssuerName issuer(Code)



issuerUniqueId
protected CertificateIssuerUniqueIdentity issuerUniqueId(Code)



pubKey
protected CertificateX509Key pubKey(Code)



serialNum
protected CertificateSerialNumber serialNum(Code)



subject
protected CertificateSubjectName subject(Code)



subjectUniqueId
protected CertificateSubjectUniqueIdentity subjectUniqueId(Code)



version
protected CertificateVersion version(Code)




Constructor Detail
X509CertInfo
public X509CertInfo()(Code)
Construct an uninitialized X509CertInfo on which decode must later be called (or which may be deserialized).



X509CertInfo
public X509CertInfo(byte[] cert) throws CertificateParsingException(Code)
Unmarshals a certificate from its encoded form, parsing the encoded bytes. This form of constructor is used by agents which need to examine and use certificate contents. That is, this is one of the more commonly used constructors. Note that the buffer must include only a certificate, and no "garbage" may be left at the end. If you need to ignore data at the end of a certificate, use another constructor.
Parameters:
  cert - the encoded bytes, with no trailing data.
exception:
  CertificateParsingException - on parsing errors.



X509CertInfo
public X509CertInfo(DerValue derVal) throws CertificateParsingException(Code)
Unmarshal a certificate from its encoded form, parsing a DER value. This form of constructor is used by agents which need to examine and use certificate contents.
Parameters:
  derVal - the der value containing the encoded cert.
exception:
  CertificateParsingException - on parsing errors.




Method Detail
decode
public void decode(InputStream in) throws CertificateParsingException, IOException(Code)
Decode an X.509 certificate from an input stream.
Parameters:
  in - an input stream holding at least one certificate
exception:
  CertificateParsingException - on decoding errors.
exception:
  IOException - on other errors.



delete
public void delete(String name) throws CertificateException, IOException(Code)
Delete the certificate attribute.
exception:
  CertificateException - on invalid attributes.
exception:
  IOException - on other errors.



encode
public void encode(OutputStream out) throws CertificateException, IOException(Code)
Appends the certificate to an output stream.
Parameters:
  out - an output stream to which the certificate is appended.
exception:
  CertificateException - on encoding errors.
exception:
  IOException - on other errors.



equals
public boolean equals(Object other)(Code)
Compares two X509CertInfo objects. This is false if the certificates are not both X.509 certs, otherwise it compares them as binary data.
Parameters:
  other - the object being compared with this one true iff the certificates are equivalent



equals
public boolean equals(X509CertInfo other)(Code)
Compares two certificates, returning false if any data differs between the two.
Parameters:
  other - the object being compared with this one true iff the certificates are equivalent



get
public Object get(String name) throws CertificateException, IOException(Code)
Get the certificate attribute.
exception:
  CertificateException - on invalid attributes.
exception:
  IOException - on other errors.



getElements
public Enumeration getElements()(Code)
Return an enumeration of names of attributes existing within this attribute.



getEncodedInfo
public byte[] getEncodedInfo() throws CertificateEncodingException(Code)
Returns the encoded certificate info.
exception:
  CertificateEncodingException - on encoding information errors.



getName
public String getName()(Code)
Return the name of this attribute.



hashCode
public int hashCode()(Code)
Calculates a hash code value for the object. Objects which are equal will also have the same hashcode.



set
public void set(String name, Object val) throws CertificateException, IOException(Code)
Set the certificate attribute.
exception:
  CertificateException - on invalid attributes.
exception:
  IOException - on other errors.



toString
public String toString()(Code)
Returns a printable representation of the certificate.



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.