org.ldaptive.asn1
Class ContextType

java.lang.Object
  extended by org.ldaptive.asn1.AbstractDERType
      extended by org.ldaptive.asn1.ContextType
All Implemented Interfaces:
DEREncoder

public class ContextType
extends AbstractDERType
implements DEREncoder

Converts context types to their DER encoded format.

Version:
$Revision: 2885 $ $Date: 2014-02-05 16:28:49 -0500 (Wed, 05 Feb 2014) $
Author:
Middleware Services

Constructor Summary
ContextType(int index, BigInteger item)
          Creates a new context type.
ContextType(int index, boolean item)
          Creates a new context type.
ContextType(int index, byte[] item)
          Creates a new context type.
ContextType(int index, String item)
          Creates a new context type.
 
Method Summary
 byte[] encode()
          Encode this object into it's DER type.
 
Methods inherited from class org.ldaptive.asn1.AbstractDERType
encode, readBuffer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextType

public ContextType(int index,
                   byte[] item)
Creates a new context type.

Parameters:
index - of this item in the context
item - to encode

ContextType

public ContextType(int index,
                   String item)
Creates a new context type.

Parameters:
index - of this item in the context
item - to encode

ContextType

public ContextType(int index,
                   boolean item)
Creates a new context type.

Parameters:
index - of this item in the context
item - to encode

ContextType

public ContextType(int index,
                   BigInteger item)
Creates a new context type.

Parameters:
index - of this item in the context
item - to encode
Method Detail

encode

public byte[] encode()
Encode this object into it's DER type.

Specified by:
encode in interface DEREncoder
Returns:
DER encoded object


Copyright © 2003-2017 Virginia Tech. All Rights Reserved.