Class AbstractCharAttributeValue<T extends CharSupplier>

java.lang.Object
com.ongres.scram.common.StringWritable
com.ongres.scram.common.AbstractCharAttributeValue<T>
Direct Known Subclasses:
Gs2AttributeValue, ScramAttributeValue

abstract class AbstractCharAttributeValue<T extends CharSupplier> extends StringWritable
Construct and write generic CharAttribute-Value pairs.

Concrete sub-classes should also provide a static parse(String) creation method.

  • Field Details

    • charAttribute

      private final char charAttribute
    • value

      private final String value
  • Constructor Details

    • AbstractCharAttributeValue

      protected AbstractCharAttributeValue(T charAttribute, String value)
  • Method Details

    • getChar

      public final char getChar()
    • getValue

      public String getValue()
    • writeTo

      Description copied from class: StringWritable
      Write the class information to the given StringBuffer.
      Specified by:
      writeTo in class StringWritable
      Parameters:
      sb - Where to write the data.
      Returns:
      The same StringBuffer.