|
AXL Software® | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectAVPair
A TACACS+ Attribute Value Pair.
An AV Pair is an Attribute name and it's value separated by separator character. The separator is either a '=' or '*'. '=' means that the value is mandatory while '*' means the attribute is optional. An example: service=ppp
| Constructor Summary | |
AVPair(String attribute)
Constructor. |
|
AVPair(String name,
String separator,
String value)
Constructor. |
|
| Method Summary | |
boolean |
equals(Object o)
Two AVPair's are equal if the attribute name matches. |
String |
getAVPair()
Get the full AV Pair. |
String |
getName()
Get the attribute name. |
String |
getSeparator()
Get the attribute separator. |
String |
getValue()
Get the attribute value. |
static void |
main(String[] arg)
|
void |
setName(String name)
Set the attribute name. |
void |
setSeparator(String separatorChar)
Set the attribute separator. |
void |
setValue(String value)
Set the attribute value. |
String |
toString()
String representation of the AVPair. |
| Methods inherited from class Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AVPair(String attribute)
throws TACACSException
Spaces are not permitted except in the value.
For example "server_msg=This is the end." is correct.
"server_msg = This is the end." is wrong.
attribute - The AV Pair string.
TACACSException - if the attribute cannot be parsed correctly.
public AVPair(String name,
String separator,
String value)
name - Attribute name.separator - Separator character, '=' for mandatory, '*' for optional.value - Attribute value.| Method Detail |
public String getName()
public void setName(String name)
name - Attribute pair name..public String getSeparator()
public void setSeparator(String separatorChar)
separatorChar - Separator. This is not checked for correctness.public String getValue()
public void setValue(String value)
value - AVPair value.public String getAVPair()
public boolean equals(Object o)
public String toString()
public static void main(String[] arg)
|
AXL Software® | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||