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


java.lang.Object
   wim_data.TLV

TLV
public class TLV (Code)
Used to represent Type, Length, Value structure in a DER buffer.


Field Summary
final static  intANY_STRING_TYPE
     ANY_STRING type used as a place holder.
final static  intBITSTRING_TYPE
     ASN BIT STRING type used in certificate parsing.
final static  intBMPSTR_TYPE
     ASN BIT STRING type used in certificate parsing.
final static  intBOOLEAN_TYPE
     ASN BOOLEAN type used in certificate parsing.
final static  intCONSTRUCTED
     ASN constructed flag used in types (0x20).
final static  intCONTEXT
     ASN context specific flag used in types (0x80).
final static  intENUMERATED_TYPE
     ASN ENUMERATED type.
final static  intEXPLICIT
     ASN constructed flag used in types (0x20).
final static  intEXTENSIONS_TYPE
     Context specific explicit type for certificate extensions.
final static  intGEN_TIME_TYPE
     ASN Generalized time type used in certificate parsing.
final static  intIA5STR_TYPE
     ASN IA5 STRING type used in certificate parsing.
final static  intINTEGER_TYPE
     ASN INTEGER type used in certificate parsing.
final static  intNULL_TYPE
     ASN NULL type used in certificate parsing.
final static  intOCTETSTR_TYPE
     ASN OCTET STRING type used in certificate parsing.
final static  intOID_TYPE
     ASN OBJECT ID type used in certificate parsing.
final static  intPRINTSTR_TYPE
     ASN PrintableString type used in certificate parsing.
final static  intSEQUENCE_TYPE
     ASN SEQUENCE type used in certificate parsing.
final static  intSET_TYPE
     ASN SET type used in certificate parsing.
final static  intTELETEXSTR_TYPE
     ASN TELETEX STRING type used in certificate parsing.
final static  intUCT_TIME_TYPE
    
final static  intUNIVSTR_TYPE
     ASN UniversalString type used in certificate parsing.
final static  intUTF8STR_TYPE
     ASN UTF8String type used in certificate parsing.
final static  intVERSION_TYPE
     Context specific explicit type for certificate version.
 TLVchild
     Non-null for constructed types, the first child TLV.
 byte[]data
     Buffer that contains the DER encoded TLV.
 intlength
     Number of bytes that make up the value.
 TLVnext
     The next TLV in the parent sequence.
 inttype
     Raw DER type.
 intvalueOffset
     Offset of the value.

Constructor Summary
public  TLV(byte[] buffer, int offset)
     Constructs a TLV structure, recursing down for constructed types.
 TLV(int tag)
     Constructs a TLV structure.
public  TLV(int tag, byte[] bytes)
     Constructs a TLV structure.

Method Summary
public  TLVcopy()
     Creates a copy of this TLV.
public static  TLVcreateInteger(byte[] data)
     Creates new integer.
public static  TLVcreateInteger(long value)
     Creates new integer.
public static  TLVcreateOID(String oid)
     Creates new OID object.
Parameters:
  oid - string representation of OID.
public static  TLVcreateOctetString(byte[] data)
     Creates new octet string.
public static  TLVcreateSequence()
     Creates new sequence.
public static  TLVcreateUTCTime(Calendar time)
     Creates UTCTime TLV structure for given date.
public static  TLVcreateUTF8String(String s)
     Creates new UTF8 string.
public  byte[]getDERData()
     Returns DER encoded TLV.
public  intgetDERData(byte[] buffer, int offset)
     Returns DER encoded TLV.
public  intgetDERSize()
     Returns the size of DER encoded TLV.
public  StringgetOID()
     Returns string representation of OID represented by this TLV.
public  byte[]getValue()
     Returns the value field of this TLV.
public  intgetValue(byte[] buffer, int offset)
     Places the value field of this TLV into the buffer.
public  voidprint()
     Print the a TLV structure, recursing down for constructed types.
public  voidprint(PrintStream out)
     Print the a TLV structure, recursing down for constructed types.
public  TLVsetChild(TLV child)
     Sets the child DER entry for this object.
public  TLVsetNext(TLV next)
     Sets the next DER entry for this object.
public  TLVsetTag(int tag)
     Sets the (implicit) tag value for this object.

Field Detail
ANY_STRING_TYPE
final static int ANY_STRING_TYPE(Code)
ANY_STRING type used as a place holder. [UNIVERSAL 0]



BITSTRING_TYPE
final static int BITSTRING_TYPE(Code)
ASN BIT STRING type used in certificate parsing. [UNIVERSAL 3]



BMPSTR_TYPE
final static int BMPSTR_TYPE(Code)
ASN BIT STRING type used in certificate parsing. [UNIVERSAL 30]



BOOLEAN_TYPE
final static int BOOLEAN_TYPE(Code)
ASN BOOLEAN type used in certificate parsing. [UNIVERSAL 1]



CONSTRUCTED
final static int CONSTRUCTED(Code)
ASN constructed flag used in types (0x20).



CONTEXT
final static int CONTEXT(Code)
ASN context specific flag used in types (0x80).



ENUMERATED_TYPE
final static int ENUMERATED_TYPE(Code)
ASN ENUMERATED type. [UNIVERSAL 10]



EXPLICIT
final static int EXPLICIT(Code)
ASN constructed flag used in types (0x20).



EXTENSIONS_TYPE
final static int EXTENSIONS_TYPE(Code)
Context specific explicit type for certificate extensions. [CONTEXT EXPLICIT 3]



GEN_TIME_TYPE
final static int GEN_TIME_TYPE(Code)
ASN Generalized time type used in certificate parsing. [UNIVERSAL 24]



IA5STR_TYPE
final static int IA5STR_TYPE(Code)
ASN IA5 STRING type used in certificate parsing. [UNIVERSAL 22]



INTEGER_TYPE
final static int INTEGER_TYPE(Code)
ASN INTEGER type used in certificate parsing. [UNIVERSAL 2]



NULL_TYPE
final static int NULL_TYPE(Code)
ASN NULL type used in certificate parsing. [UNIVERSAL 5]



OCTETSTR_TYPE
final static int OCTETSTR_TYPE(Code)
ASN OCTET STRING type used in certificate parsing. [UNIVERSAL 4]



OID_TYPE
final static int OID_TYPE(Code)
ASN OBJECT ID type used in certificate parsing. [UNIVERSAL 6]



PRINTSTR_TYPE
final static int PRINTSTR_TYPE(Code)
ASN PrintableString type used in certificate parsing. [UNIVERSAL 19]



SEQUENCE_TYPE
final static int SEQUENCE_TYPE(Code)
ASN SEQUENCE type used in certificate parsing. [UNIVERSAL CONSTRUCTED 16]



SET_TYPE
final static int SET_TYPE(Code)
ASN SET type used in certificate parsing. [UNIVERSAL CONSTRUCTED 17]



TELETEXSTR_TYPE
final static int TELETEXSTR_TYPE(Code)
ASN TELETEX STRING type used in certificate parsing. [UNIVERSAL 20]



UCT_TIME_TYPE
final static int UCT_TIME_TYPE(Code)
ASN UCT time type used in certificate parsing [UNIVERSAL 23]



UNIVSTR_TYPE
final static int UNIVSTR_TYPE(Code)
ASN UniversalString type used in certificate parsing. [UNIVERSAL 28].



UTF8STR_TYPE
final static int UTF8STR_TYPE(Code)
ASN UTF8String type used in certificate parsing. [UNIVERSAL 12]



VERSION_TYPE
final static int VERSION_TYPE(Code)
Context specific explicit type for certificate version. [CONTEXT EXPLICIT 0]



child
TLV child(Code)
Non-null for constructed types, the first child TLV.



data
byte[] data(Code)
Buffer that contains the DER encoded TLV.



length
int length(Code)
Number of bytes that make up the value.



next
TLV next(Code)
The next TLV in the parent sequence.



type
int type(Code)
Raw DER type.



valueOffset
int valueOffset(Code)
Offset of the value.




Constructor Detail
TLV
public TLV(byte[] buffer, int offset)(Code)
Constructs a TLV structure, recursing down for constructed types.
Parameters:
  buffer - DER buffer
Parameters:
  offset - where to start parsing
exception:
  java.lang.IndexOutOfBoundsException - if the DER is corrupt



TLV
TLV(int tag)(Code)
Constructs a TLV structure.
Parameters:
  tag - tag of new TLV



TLV
public TLV(int tag, byte[] bytes)(Code)
Constructs a TLV structure.
Parameters:
  tag - tag of new TLV
Parameters:
  bytes - value of new TLV




Method Detail
copy
public TLV copy()(Code)
Creates a copy of this TLV. The value of field next of the new TLV is null. a copy of this TLV



createInteger
public static TLV createInteger(byte[] data)(Code)
Creates new integer.
Parameters:
  data - buffer containing the value new TLV object



createInteger
public static TLV createInteger(long value)(Code)
Creates new integer.
Parameters:
  value - the value of new integer new TLV object



createOID
public static TLV createOID(String oid)(Code)
Creates new OID object.
Parameters:
  oid - string representation of OID. new TLV object



createOctetString
public static TLV createOctetString(byte[] data)(Code)
Creates new octet string.
Parameters:
  data - buffer containing the value new TLV object



createSequence
public static TLV createSequence()(Code)
Creates new sequence. new TLV object



createUTCTime
public static TLV createUTCTime(Calendar time)(Code)
Creates UTCTime TLV structure for given date.
Parameters:
  time - date new TLV object



createUTF8String
public static TLV createUTF8String(String s)(Code)
Creates new UTF8 string.
Parameters:
  s - string value new TLV object



getDERData
public byte[] getDERData()(Code)
Returns DER encoded TLV. DER encoded TLV



getDERData
public int getDERData(byte[] buffer, int offset)(Code)
Returns DER encoded TLV.
Parameters:
  buffer - destination buffer
Parameters:
  offset - offset in the buffer DER encoded TLV



getDERSize
public int getDERSize()(Code)
Returns the size of DER encoded TLV. the size of DER encoded TLV



getOID
public String getOID() throws IOException(Code)
Returns string representation of OID represented by this TLV. string representation of OID represented by this TLV
throws:
  java.io.IOException - if TLV doesn't contain OID



getValue
public byte[] getValue()(Code)
Returns the value field of this TLV. the value field of this TLV



getValue
public int getValue(byte[] buffer, int offset)(Code)
Places the value field of this TLV into the buffer.
Parameters:
  buffer - destination buffer
Parameters:
  offset - offset in the buffer TLV size in bytes



print
public void print()(Code)
Print the a TLV structure, recursing down for constructed types.



print
public void print(PrintStream out)(Code)
Print the a TLV structure, recursing down for constructed types.
Parameters:
  out - output stream



setChild
public TLV setChild(TLV child)(Code)
Sets the child DER entry for this object.
Parameters:
  child - TLV object the value of child field to allow call chaining



setNext
public TLV setNext(TLV next)(Code)
Sets the next DER entry for this object.
Parameters:
  next - TLV object the value of next to allow call chaining



setTag
public TLV setTag(int tag)(Code)
Sets the (implicit) tag value for this object.
Parameters:
  tag - tag value this value to allow call chaining



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.