Package com.ongres.scram.common
Class ScramAttributeValue
- java.lang.Object
-
- com.ongres.scram.common.StringWritable
-
- com.ongres.scram.common.AbstractCharAttributeValue<ScramAttributes>
-
- com.ongres.scram.common.ScramAttributeValue
-
class ScramAttributeValue extends AbstractCharAttributeValue<ScramAttributes>
Parse and write SCRAM Attribute-Value pairs.
-
-
Constructor Summary
Constructors Constructor Description ScramAttributeValue(@NotNull ScramAttributes attribute, @NotNull java.lang.String value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull java.lang.String
getValue()
static @NotNull ScramAttributeValue
parse(@NotNull java.lang.String value)
Parses a potential ScramAttributeValue String.-
Methods inherited from class com.ongres.scram.common.AbstractCharAttributeValue
getChar, writeTo
-
-
-
-
Constructor Detail
-
ScramAttributeValue
public ScramAttributeValue(@NotNull @NotNull ScramAttributes attribute, @NotNull @NotNull java.lang.String value)
-
-
Method Detail
-
getValue
@NotNull public final @NotNull java.lang.String getValue()
- Overrides:
getValue
in classAbstractCharAttributeValue<ScramAttributes>
-
parse
@NotNull public static @NotNull ScramAttributeValue parse(@NotNull @NotNull java.lang.String value) throws ScramParseException
Parses a potential ScramAttributeValue String.- Parameters:
value
- The string that contains the Attribute-Value pair.- Returns:
- The parsed class
- Throws:
ScramParseException
- If the argument is empty or an invalid Attribute-Value
-
-