Class TaggingOption

java.lang.Object
org.apache.kerby.asn1.TaggingOption

public final class TaggingOption extends Object
Tagging option for tagging an ASN1 type.
  • Method Details

    • newImplicitAppSpecific

      public static TaggingOption newImplicitAppSpecific(int tagNo)
      Create an implicit application specific tagging option with tagNo.
      Parameters:
      tagNo - The tag number
      Returns:
      tagging option
    • newExplicitAppSpecific

      public static TaggingOption newExplicitAppSpecific(int tagNo)
      Create an explicit application specific tagging option with tagNo.
      Parameters:
      tagNo - The tag number
      Returns:
      tagging option
    • newImplicitContextSpecific

      public static TaggingOption newImplicitContextSpecific(int tagNo)
      Create an implicit context specific tagging option with tagNo.
      Parameters:
      tagNo - The tag number
      Returns:
      tagging option
    • newExplicitContextSpecific

      public static TaggingOption newExplicitContextSpecific(int tagNo)
      Create an explicit context specific tagging option with tagNo.
      Parameters:
      tagNo - The tag number
      Returns:
      tagging option
    • getTag

      public Tag getTag(boolean isTaggedConstructed)
      Make tag giving it's tagged constructed.
      Parameters:
      isTaggedConstructed - Tagged constructed or not
      Returns:
      tag
    • getTagNo

      public int getTagNo()
      Get the tag number.
      Returns:
      tag number
    • isAppSpecific

      public boolean isAppSpecific()
      Tell it's application specific or not.
      Returns:
      true if it's application specific otherwise false
    • isImplicit

      public boolean isImplicit()
      Tell it's implicit or not.
      Returns:
      true if it's implicit otherwise false