|
All LDAP Classes Internal LDAP Classes |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.novell.ldap.asn1.LBEREncoder
public class LBEREncoder
This class provides LBER encoding routines for ASN.1 Types. LBER is a subset of BER as described in the following taken from 5.1 of RFC 2251:
5.1. Mapping Onto BER-based Transport Services The protocol elements of LDAP are encoded for exchange using the Basic Encoding Rules (BER) [11] of ASN.1 [3]. However, due to the high overhead involved in using certain elements of the BER, the following additional restrictions are placed on BER-encodings of LDAP protocol elements:
These restrictions do not apply to ASN.1 types encapsulated inside of OCTET STRING values, such as attribute values, unless otherwise noted.
[3] ITU-T Rec. X.680, "Abstract Syntax Notation One (ASN.1) - Specification of Basic Notation", 1994.
[11] ITU-T Rec. X.690, "Specification of ASN.1 encoding rules: Basic, Canonical, and Distinguished Encoding Rules", 1994.
Constructor Summary | |
---|---|
LBEREncoder()
|
Method Summary | |
---|---|
void |
encode(ASN1Boolean b,
java.io.OutputStream out)
BER Encode an ASN1Boolean directly into the specified output stream. |
void |
encode(ASN1Identifier id,
java.io.OutputStream out)
Encode an ASN1Identifier directly into the specified outputstream. |
void |
encode(ASN1Null n,
java.io.OutputStream out)
Encode an ASN1Null directly into the specified outputstream. |
void |
encode(ASN1Numeric n,
java.io.OutputStream out)
Encode an ASN1Numeric directly into the specified outputstream. |
void |
encode(ASN1OctetString os,
java.io.OutputStream out)
Encode an ASN1OctetString directly into the specified outputstream. |
void |
encode(ASN1Structured c,
java.io.OutputStream out)
Encode an ASN1Structured into the specified outputstream. |
void |
encode(ASN1Tagged t,
java.io.OutputStream out)
Encode an ASN1Tagged directly into the specified outputstream. |
private void |
encodeLength(int length,
java.io.OutputStream out)
|
private void |
encodeTagInteger(int value,
java.io.OutputStream out)
Encodes the provided tag into the outputstream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LBEREncoder()
Method Detail |
---|
public void encode(ASN1Boolean b, java.io.OutputStream out) throws java.io.IOException
encode
in interface ASN1Encoder
b
- The ASN1Boolean object to encodeout
- The output stream onto which the ASN.1 object is
to be encodedjava.io.IOException
public final void encode(ASN1Numeric n, java.io.OutputStream out) throws java.io.IOException
Use a two's complement representation in the fewest number of octets possible.
Can be used to encode INTEGER and ENUMERATED values.
encode
in interface ASN1Encoder
n
- The ASN1Numeric object to encodeout
- The output stream onto which the ASN.1 object is
to be encodedjava.io.IOException
public final void encode(ASN1Null n, java.io.OutputStream out) throws java.io.IOException
encode
in interface ASN1Encoder
n
- The ASN1Null object to encodeout
- The output stream onto which the ASN.1 object is
to be encodedjava.io.IOException
public final void encode(ASN1OctetString os, java.io.OutputStream out) throws java.io.IOException
encode
in interface ASN1Encoder
os
- The ASN1OctetString object to encodeout
- The output stream onto which the ASN.1 object is
to be encodedjava.io.IOException
public final void encode(ASN1Structured c, java.io.OutputStream out) throws java.io.IOException
encode
in interface ASN1Encoder
c
- The ASN1Structured object to encodeout
- The output stream onto which the ASN.1 object is
to be encodedjava.io.IOException
public final void encode(ASN1Tagged t, java.io.OutputStream out) throws java.io.IOException
encode
in interface ASN1Encoder
t
- The ASN1Tagged object to encodeout
- The output stream onto which the ASN.1 object is
to be encodedjava.io.IOException
public final void encode(ASN1Identifier id, java.io.OutputStream out) throws java.io.IOException
encode
in interface ASN1Encoder
id
- The ASN1Identifier object to encodeout
- The output stream onto which the ASN.1 object is
to be encodedjava.io.IOException
private final void encodeLength(int length, java.io.OutputStream out) throws java.io.IOException
java.io.IOException
private final void encodeTagInteger(int value, java.io.OutputStream out) throws java.io.IOException
java.io.IOException
|
All LDAP Classes Internal LDAP Classes |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |