Package com.ongres.scram.common.gssapi
Class Gs2AttributeValue
- java.lang.Object
-
- com.ongres.scram.common.util.AbstractStringWritable
-
- com.ongres.scram.common.util.AbstractCharAttributeValue
-
- com.ongres.scram.common.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, java.lang.String value)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Gs2AttributeValue
parse(java.lang.String value)
Parses a potential Gs2AttributeValue String.static java.lang.StringBuffer
writeTo(java.lang.StringBuffer sb, Gs2Attributes attribute, java.lang.String value)
-
Methods inherited from class com.ongres.scram.common.util.AbstractCharAttributeValue
getChar, getValue, writeTo
-
Methods inherited from class com.ongres.scram.common.util.AbstractStringWritable
toString
-
-
-
-
Constructor Detail
-
Gs2AttributeValue
public Gs2AttributeValue(Gs2Attributes attribute, java.lang.String value)
-
-
Method Detail
-
writeTo
public static java.lang.StringBuffer writeTo(java.lang.StringBuffer sb, Gs2Attributes attribute, java.lang.String value)
-
parse
public static Gs2AttributeValue parse(java.lang.String value) throws java.lang.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:
java.lang.IllegalArgumentException
- If the String is an invalid Gs2AttributeValue
-
-