Class Gs2AttributeValue
- 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.gssapi.Gs2AttributeValue
-
- All Implemented Interfaces:
CharAttribute
,CharAttributeValue
,StringWritable
public class Gs2AttributeValue extends AbstractCharAttributeValue
Parse and write GS2 Attribute-Value pairs.
-
-
Constructor Summary
Constructors Constructor Description Gs2AttributeValue(Gs2Attributes attribute, String value)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Gs2AttributeValue
parse(String value)
Parses a potential Gs2AttributeValue String.static StringBuffer
writeTo(StringBuffer sb, Gs2Attributes 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
-
Gs2AttributeValue
public Gs2AttributeValue(Gs2Attributes attribute, String value)
-
-
Method Detail
-
writeTo
public static StringBuffer writeTo(StringBuffer sb, Gs2Attributes attribute, String value)
-
parse
public static Gs2AttributeValue parse(String value) throws IllegalArgumentException
Parses a potential Gs2AttributeValue String.- Parameters:
value
- The string that contains the Attribute-Value pair (where value is optional).- Returns:
- The parsed class, or null if the String was null.
- Throws:
IllegalArgumentException
- If the String is an invalid Gs2AttributeValue
-
-