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
Parse and write SCRAM Attribute-Value pairs.
-
Constructor Summary
ConstructorsConstructorDescriptionScramAttributeValue
(@NotNull ScramAttributes attribute, @NotNull String value) -
Method Summary
Modifier and TypeMethodDescriptionfinal @NotNull String
getValue()
static @NotNull ScramAttributeValue
Parses a potential ScramAttributeValue String.Methods inherited from class com.ongres.scram.common.AbstractCharAttributeValue
getChar, writeTo
-
Constructor Details
-
ScramAttributeValue
public ScramAttributeValue(@NotNull @NotNull ScramAttributes attribute, @NotNull @NotNull String value)
-
-
Method Details
-
getValue
- Overrides:
getValue
in classAbstractCharAttributeValue<ScramAttributes>
-
parse
@NotNull public static @NotNull ScramAttributeValue parse(@NotNull @NotNull 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
-