Java Doc for DERObject.java in  » Web-Mail » oyster » org » enhydra » oyster » der » 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 » Web Mail » oyster » org.enhydra.oyster.der 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.enhydra.oyster.der.DERObject

All known Subclasses:   org.enhydra.oyster.der.DERSetPr,  org.enhydra.oyster.der.DERBitString,  org.enhydra.oyster.der.DERIA5String,  org.enhydra.oyster.der.DEROctetString,  org.enhydra.oyster.der.DERSequencePr,  org.enhydra.oyster.der.DERPrintableString,  org.enhydra.oyster.der.DERNull,  org.enhydra.oyster.der.DERInteger,  org.enhydra.oyster.der.DERClassContextSpecificPr,  org.enhydra.oyster.der.DERBoolean,  org.enhydra.oyster.der.DERUTCTime,  org.enhydra.oyster.der.DERObjectIdentifier,
DERObject
public class DERObject (Code)
Every element of data represented in ASN.1 notation should be encoded in the process of implementation. It can be done according to BER (Basic Encoding Rules) or according to DER (Distinguish Encoding Rules). DERObject class is the root class (super class) of all classes used in DER encodings of variety elements in data structures used by SMIME.

DER encoding of elements can be performed in two forms: definite form and indefinite form. DERObject class represents definite form of encoding. Every encoded element, according to this rules, involves three parts: Identifier Octet (which represents Tag Type of the encoding data), Length Octets (one or more octets with the information about number of octets (bytes) in the content), and Content Octets (they represent data which have to be DER encoded).

DERObject can be structured or primitive, which depends on his content.



Constructor Summary
public  DERObject(int identifierOctet0)
     Creates DER Object with defined value for identifier octet.
public  DERObject(int identifierOctet0, byte[] content0)
    

Method Summary
 voidaddContent(byte[] content0)
     Adds content to DER Object.
public  byte[]getContentOctets()
     Return content octets part from DER object.
public  intgetContentPartSize()
     Returns size of content part in DER object (Number of content octets).
public  byte[]getDEREncoded()
     Returns DER encoded object DERObject as byte array
exception:
  SMIMEException - if content of DER object is absent.
public  intgetIdentifierOctet()
    
public  byte[]getLengthOctets()
     Return length octets part from DER object.
public  intgetLengthPartSize()
     Returns size of length part in DER object (Number of length octets).
public  intgetTagClassType()
    
public  intgetTagComplexity()
    
public  intgetTagTypeNumber()
    
public  intgetTotalSize()
    


Constructor Detail
DERObject
public DERObject(int identifierOctet0) throws SMIMEException(Code)
Creates DER Object with defined value for identifier octet.
Parameters:
  identifierOctet0 - must be in the range 0-255 (whithouth 31)
exception:
  SMIMEException - in case of invalid identifierOctet0 parameter



DERObject
public DERObject(int identifierOctet0, byte[] content0) throws SMIMEException(Code)
Creates DER Object with defined value for identifier octet and values of content octets
Parameters:
  identifierOctet0 - must be in the range 0-255 (whithouth 31)
Parameters:
  content0 - content of DER Object
exception:
  SMIMEException - in case of invalid identifierOctet0 parameter,or in case of adding content to DER object of type Null DER object




Method Detail
addContent
void addContent(byte[] content0) throws SMIMEException(Code)
Adds content to DER Object. Used only when the content isn't added earlier via second type of constructor in DERObject.
Parameters:
  content0 - content octets for adding to DERObject
exception:
  SMIMEException - when adding content to DER object is of typeNull DER object. Also, it can be caused by non SMIMEException which is:UnsupportedEncodingException.



getContentOctets
public byte[] getContentOctets() throws SMIMEException(Code)
Return content octets part from DER object. Number of content octets in DER encoded object
exception:
  SMIMEException - caused by non SMIMEException which is:UnsupportedEncodingException .



getContentPartSize
public int getContentPartSize()(Code)
Returns size of content part in DER object (Number of content octets). Number of content octets in DER encoded object



getDEREncoded
public byte[] getDEREncoded() throws SMIMEException(Code)
Returns DER encoded object DERObject as byte array
exception:
  SMIMEException - if content of DER object is absent. Also, it can becaused by non SMIMEException which is: UnsupportedEncodingException.



getIdentifierOctet
public int getIdentifierOctet()(Code)
Returns Identifier Octet Identifier Octet in the range 0-255



getLengthOctets
public byte[] getLengthOctets() throws SMIMEException(Code)
Return length octets part from DER object. Number of length octets in DER encoded object
exception:
  SMIMEException - caused by non SMIMEException which is:UnsupportedEncodingException.



getLengthPartSize
public int getLengthPartSize()(Code)
Returns size of length part in DER object (Number of length octets). Number of length octets in DER encoded object



getTagClassType
public int getTagClassType()(Code)
Returns Class Type 0-Universal, 64-Application, 128-Context, 192-Private (Default 0)



getTagComplexity
public int getTagComplexity()(Code)
Returns Tag Complexity 0-primitive, 32-structured (Default 0)



getTagTypeNumber
public int getTagTypeNumber()(Code)
Returns Tag Type Tag Type in the range 0-30



getTotalSize
public int getTotalSize()(Code)
Returns total length of DER object Total length of DER Object (involves identifier octet, lengthoctets and content octets)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(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.