Java Doc for AVA.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.AVA

AVA
public class AVA implements DerEncoder(Code)
X.500 Attribute-Value-Assertion (AVA): an attribute, as identified by some attribute ID, has some particular value. Values are as a rule ASN.1 printable strings. A conventional set of type IDs is recognized when parsing (and generating) RFC 1779 or RFC 2253 syntax strings.

AVAs are components of X.500 relative names. Think of them as being individual fields of a database record. The attribute ID is how you identify the field, and the value is part of a particular record.

Note that instances of this class are immutable.
See Also:   X500Name
See Also:   RDN
version:
   1.35, 10/10/06
author:
   David Brownell
author:
   Amit Kapoor
author:
   Hemma Prafullchandra



Field Summary
final static  intDEFAULT
     DEFAULT format allows both RFC1779 and RFC2253 syntax and additional keywords.
final static  intRFC1779
     RFC1779 specifies format according to RFC1779.
final static  intRFC2253
     RFC2253 specifies format according to RFC2253.
final  ObjectIdentifieroid
    
final  DerValuevalue
    

Constructor Summary
public  AVA(ObjectIdentifier type, DerValue val)
    
 AVA(Reader in)
     Parse an RFC 1779 or RFC 2253 style AVA string: CN=fee fie foe fum or perhaps with quotes.
 AVA(Reader in, int format)
     Parse an AVA string formatted according to format.
 AVA(DerValue derval)
    
 AVA(DerInputStream in)
    

Method Summary
public  voidderEncode(OutputStream out)
     DER encode this object onto an output stream.
public  voidencode(DerOutputStream out)
    
public  booleanequals(Object obj)
    
public  DerValuegetDerValue()
     Get the value of this AVA as a DerValue.
public  ObjectIdentifiergetObjectIdentifier()
     Get the ObjectIdentifier of this AVA.
public  StringgetValueString()
     Get the value of this AVA as a String.
 booleanhasRFC2253Keyword()
    
public  inthashCode()
     Returns a hashcode for this AVA.
public  StringtoRFC1779String()
     Returns a printable form of this attribute, using RFC 1779 syntax for individual attribute/value assertions.
public  StringtoRFC2253CanonicalString()
    
public  StringtoRFC2253String()
     Returns a printable form of this attribute, using RFC 2253 syntax for individual attribute/value assertions.
public  StringtoString()
     Returns a printable form of this attribute, using RFC 1779 syntax for individual attribute/value assertions.

Field Detail
DEFAULT
final static int DEFAULT(Code)
DEFAULT format allows both RFC1779 and RFC2253 syntax and additional keywords.



RFC1779
final static int RFC1779(Code)
RFC1779 specifies format according to RFC1779.



RFC2253
final static int RFC2253(Code)
RFC2253 specifies format according to RFC2253.



oid
final ObjectIdentifier oid(Code)



value
final DerValue value(Code)




Constructor Detail
AVA
public AVA(ObjectIdentifier type, DerValue val)(Code)



AVA
AVA(Reader in) throws IOException(Code)
Parse an RFC 1779 or RFC 2253 style AVA string: CN=fee fie foe fum or perhaps with quotes. Not all defined AVA tags are supported; of current note are X.400 related ones (PRMD, ADMD, etc). This terminates at unescaped AVA separators ("+") or RDN separators (",", ";"), or DN terminators (">"), and removes cosmetic whitespace at the end of values.



AVA
AVA(Reader in, int format) throws IOException(Code)
Parse an AVA string formatted according to format. NOTE: format RFC1779 should only allow RFC1779 syntax but is actually DEFAULT with RFC1779 keywords.



AVA
AVA(DerValue derval) throws IOException(Code)



AVA
AVA(DerInputStream in) throws IOException(Code)




Method Detail
derEncode
public void derEncode(OutputStream out) throws IOException(Code)
DER encode this object onto an output stream. Implements the DerEncoder interface.
Parameters:
  out - the output stream on which to write the DER encoding.
exception:
  IOException - on encoding error.



encode
public void encode(DerOutputStream out) throws IOException(Code)



equals
public boolean equals(Object obj)(Code)



getDerValue
public DerValue getDerValue()(Code)
Get the value of this AVA as a DerValue.



getObjectIdentifier
public ObjectIdentifier getObjectIdentifier()(Code)
Get the ObjectIdentifier of this AVA.



getValueString
public String getValueString()(Code)
Get the value of this AVA as a String.
exception:
  RuntimeException - if we could not obtain the string form(should not occur)



hasRFC2253Keyword
boolean hasRFC2253Keyword()(Code)



hashCode
public int hashCode()(Code)
Returns a hashcode for this AVA. a hashcode for this AVA.



toRFC1779String
public String toRFC1779String()(Code)
Returns a printable form of this attribute, using RFC 1779 syntax for individual attribute/value assertions. It only emits standardised keywords.



toRFC2253CanonicalString
public String toRFC2253CanonicalString()(Code)



toRFC2253String
public String toRFC2253String()(Code)
Returns a printable form of this attribute, using RFC 2253 syntax for individual attribute/value assertions. It only emits standardised keywords.



toString
public String toString()(Code)
Returns a printable form of this attribute, using RFC 1779 syntax for individual attribute/value assertions.



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.