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


java.lang.Object
   dummyCA.TLV

TLV
class TLV (Code)
Used to represent each 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  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.
 intTLSize
     Size of tag and length in DER encoding.
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.
static  char[]hc
     Hexadecimal digits.
 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
 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
static  StringOIDtoString(byte[] buffer, int offset, int length)
     Converts a subsequence of bytes into a printable OID, a string of decimal digits, each separated by a ".".
static  byte[]StringToOID(String oid)
     Converts a printable OID into a subsequence of bytes.
 TLVcopy()
     Creates a copy of this TLV.
public static  TLVcreateUTCTime(Calendar time)
     Creates UTCTime TLV structure for given date.
 byte[]getDERData()
     Returns DER encoded TLV.
 StringgetOID()
     Returns string representation of OID represented by this TLV.
 byte[]getValue()
     Returns the value field of this TLV.
static  StringhexEncode(byte[] b, int off, int len, int max)
     Converts a subsequence of bytes in a byte array into a corresponding string of hexadecimal digits, each separated by a ":".
Parameters:
  b - byte array containing the bytes to be converted
Parameters:
  off - starting offset of the byte subsequence inside b
Parameters:
  len - number of bytes to be converted
Parameters:
  max - print a single "+" instead of the bytes after max,-1 for no max.
 voidprint()
     Print the a TLV structure, recursing down for constructed types.
 voidprint(PrintStream out)
     Print the a TLV structure, recursing down for constructed types.

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).



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]



TLSize
int TLSize(Code)
Size of tag and length in DER encoding.



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.



hc
static char[] hc(Code)
Hexadecimal digits.



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
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:
  IndexOutOfBoundException - 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
OIDtoString
static String OIDtoString(byte[] buffer, int offset, int length)(Code)
Converts a subsequence of bytes into a printable OID, a string of decimal digits, each separated by a ".".
Parameters:
  buffer - byte array containing the bytes to be converted
Parameters:
  offset - starting offset of the byte subsequence inside b
Parameters:
  length - number of bytes to be converted printable OID



StringToOID
static byte[] StringToOID(String oid)(Code)
Converts a printable OID into a subsequence of bytes.
Parameters:
  oid - printable OID byte array containing the OID



copy
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



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



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



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



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



hexEncode
static String hexEncode(byte[] b, int off, int len, int max)(Code)
Converts a subsequence of bytes in a byte array into a corresponding string of hexadecimal digits, each separated by a ":".
Parameters:
  b - byte array containing the bytes to be converted
Parameters:
  off - starting offset of the byte subsequence inside b
Parameters:
  len - number of bytes to be converted
Parameters:
  max - print a single "+" instead of the bytes after max,-1 for no max. a string of corresponding hexadecimal digits oran error string



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



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



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.