org.ldaptive.asn1
Class AbstractDERTag

java.lang.Object
  extended by org.ldaptive.asn1.AbstractDERTag
All Implemented Interfaces:
DERTag
Direct Known Subclasses:
ApplicationDERTag, ContextDERTag, CustomDERTag

public abstract class AbstractDERTag
extends Object
implements DERTag

Abstract base class for custom DER tag types.

Version:
$Revision: 2885 $
Author:
Middleware Services

Field Summary
 
Fields inherited from interface org.ldaptive.asn1.DERTag
ASN_CONSTRUCTED
 
Constructor Summary
AbstractDERTag(int number, boolean isConstructed)
          Creates a new tag with given tag number.
 
Method Summary
 int getTagByte()
          Gets the value of this tag for encoding.
 int getTagNo()
          Gets the decimal value of the tag.
 boolean isConstructed()
          Determines whether the tag is constructed or primitive.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ldaptive.asn1.DERTag
name
 

Constructor Detail

AbstractDERTag

public AbstractDERTag(int number,
                      boolean isConstructed)
Creates a new tag with given tag number.

Parameters:
number - Tag number.
isConstructed - True for constructed tag, false otherwise.
Method Detail

getTagNo

public int getTagNo()
Gets the decimal value of the tag.

Specified by:
getTagNo in interface DERTag
Returns:
decimal tag number.

isConstructed

public boolean isConstructed()
Determines whether the tag is constructed or primitive.

Specified by:
isConstructed in interface DERTag
Returns:
true if constructed, false if primitive.

getTagByte

public int getTagByte()
Gets the value of this tag for encoding.

Specified by:
getTagByte in interface DERTag
Returns:
byte value of this tag

toString

public String toString()

Overrides:
toString in class Object


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