public class ApplicationId extends Object
| Modifier and Type | Field and Description |
|---|---|
static ApplicationId |
BASE_ACCOUNTING |
static ApplicationId |
COMMON |
static ApplicationId |
RELAY |
| Constructor and Description |
|---|
ApplicationId(int idNum,
boolean isAuth)
Creates a new ApplicationId for the specified numeric id.
|
ApplicationId(int idNum,
boolean isAuth,
int[] vendorIds)
Creates a new vendor-specific ApplicationId for the specified numeric
id and list of vendor identifiers.
|
| Modifier and Type | Method and Description |
|---|---|
XmlBuffer |
appendXml(XmlBuffer xb) |
static ApplicationId |
decode(Avp avp)
If the specified AVP is an Auth-Application-Id, Acct-Application-Id, or
Vendor-Specified-Application-Id AVP, then returns the ApplicationId
representing the advertised application.
|
boolean |
equals(Object obj)
Compares this ApplicationId to another for equality.
|
Avp |
getAvp()
Returns the Auth-Application-Id, Acct-Application-Id, or
Vendor-Specific-Application-Id AVP for this application.
|
int |
getNum()
Returns the numeric id for this application.
|
int[] |
getVendorIds()
If this is a vendor-specific application, then returns the list of
vendor ids.
|
int |
hashCode() |
boolean |
isAccounting()
Returns true if this an accounting application.
|
boolean |
isAuthentication()
Returns true if this an authentication or authorization application.
|
boolean |
isVendorSpecific()
Returns true iff this a vendor-specific application id.
|
String |
toString() |
public static final ApplicationId COMMON
public static final ApplicationId BASE_ACCOUNTING
public static final ApplicationId RELAY
public ApplicationId(int idNum,
boolean isAuth)
idNum - IANA assigned application id numberisAuth - if true, then is authentication/authorization application,
otherwise is accounting applicationpublic ApplicationId(int idNum,
boolean isAuth,
int[] vendorIds)
idNum - IANA assigned application id numberisAuth - if true, then is authentication/authorization application,
otherwise is accounting applicationvendorIds - list of application vendor idspublic static ApplicationId decode(Avp avp) throws AvpException
avp - the AVP to be decodedAvpException - if the AVP was invalidpublic Avp getAvp()
public boolean isAuthentication()
public boolean isAccounting()
public int getNum()
public int[] getVendorIds()
public boolean isVendorSpecific()
public boolean equals(Object obj)