Class ScramAttributeValue
- java.lang.Object
-
- com.impossibl.postgres.protocol.sasl.scram.util.AbstractStringWritable
-
- com.impossibl.postgres.protocol.sasl.scram.util.AbstractCharAttributeValue
-
- com.impossibl.postgres.protocol.sasl.scram.ScramAttributeValue
-
- All Implemented Interfaces:
CharAttribute
,CharAttributeValue
,StringWritable
public class ScramAttributeValue extends AbstractCharAttributeValue
Parse and write SCRAM Attribute-Value pairs.
-
-
Constructor Summary
Constructors Constructor Description ScramAttributeValue(ScramAttributes attribute, String value)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ScramAttributeValue
parse(String value)
Parses a potential ScramAttributeValue String.static StringBuffer
writeTo(StringBuffer sb, ScramAttributes attribute, String value)
-
Methods inherited from class com.impossibl.postgres.protocol.sasl.scram.util.AbstractCharAttributeValue
getChar, getValue, writeTo
-
Methods inherited from class com.impossibl.postgres.protocol.sasl.scram.util.AbstractStringWritable
toString
-
-
-
-
Constructor Detail
-
ScramAttributeValue
public ScramAttributeValue(ScramAttributes attribute, String value)
-
-
Method Detail
-
writeTo
public static StringBuffer writeTo(StringBuffer sb, ScramAttributes attribute, String value)
-
parse
public static ScramAttributeValue parse(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
-
-