public final class UserInfo extends NetObject
Modifier and Type | Field and Description |
---|---|
protected String |
password
password field
|
static int |
TELEPHONE_SUBSCRIBER
Constant field
|
protected String |
user
user field
|
static int |
USER
constant field
|
protected int |
userType
userType field
|
CORE_PACKAGE, GRUU, LR, MADDR, METHOD, NET_PACKAGE, PARSER_PACKAGE, PHONE, SIP, SIPS, TCP, TLS, TRANSPORT, TTL, UDP
AND, AT, COLON, COMMA, DOT, DOUBLE_QUOTE, EQUALS, GREATER_THAN, HT, immutableClasses, indentation, LESS_THAN, LPAREN, matchExpression, NEWLINE, PERCENT, POUND, QUESTION, QUOTE, RETURN, RPAREN, SEMICOLON, SLASH, SP, STAR, stringRepresentation
Constructor and Description |
---|
UserInfo()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
clearPassword()
Clear the password field.
|
String |
encode()
Encode the user information as a string.
|
StringBuilder |
encode(StringBuilder buffer)
Put the encoded version of this object in the given StringBuilder.
|
boolean |
equals(Object obj)
Compare for equality.
|
String |
getPassword()
get the password field.
|
String |
getUser()
get the user field.
|
int |
getUserType()
Gets the user type (which can be set to TELEPHONE_SUBSCRIBER or USER)
|
void |
setPassword(String p)
Set the password member
|
void |
setUser(String user)
Set the user member
|
void |
setUserType(int type)
Set the user type (to TELEPHONE_SUBSCRIBER or USER).
|
debugDump, debugDump, match, toString
clone, dbgPrint, dbgPrint, getClassFromName, getIndentation, getMatcher, isMySubclass, makeClone, merge, setMatcher, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprint
protected String user
protected String password
protected int userType
public static final int TELEPHONE_SUBSCRIBER
public static final int USER
public boolean equals(Object obj)
public String encode()
encode
in class GenericObject
public StringBuilder encode(StringBuilder buffer)
GenericObject
encode
in class GenericObject
public void clearPassword()
public int getUserType()
public String getUser()
public String getPassword()
public void setUser(String user)
user
- String to setpublic void setPassword(String p)
p
- String to setpublic void setUserType(int type) throws IllegalArgumentException
type
- int to setIllegalArgumentException
- if type is not in range.Copyright © 2017. All Rights Reserved.