public interface UserIdentity extends GroupedAvp
6.3.1 User-Identity AVP The User-Identity AVP is of type Grouped. This AVP contains either a Public-Identity AVP or an MSISDN AVP. AVP format User-Identity ::= <AVP Header: 700 10415> [Public-Identity] [MSISDN] *[AVP]
FLAG_RULE_MAY, FLAG_RULE_MUST, FLAG_RULE_MUSTNOT
Modifier and Type | Method and Description |
---|---|
DiameterAvp[] |
getExtensionAvps()
Returns the set of extension AVPs.
|
byte[] |
getMsisdn()
Returns the value of the MSISDN AVP, of type OctetString.
|
java.lang.String |
getPublicIdentity()
Returns the value of the Public-Identity AVP, of type UTF8String.
|
boolean |
hasMsisdn()
Returns true if the MSISDN AVP is present in the User-Identity AVP.
|
boolean |
hasPublicIdentity()
Returns true if the Public-Identity AVP is present in the User-Identity AVP.
|
void |
removeExtensionAvps()
Removes all extension AVPs from the User-Identity AVP.
|
void |
removeMsisdn()
Removes the MSISDN AVP from the User-Identity AVP.
|
void |
removePublicIdentity()
Removes the Public-Identity AVP from the User-Identity AVP.
|
void |
setExtensionAvps(DiameterAvp[] avps)
Sets the set of extension AVPs with all the values in the given array.
|
void |
setMsisdn(byte[] msisdn)
Sets the value of the MSISDN AVP, of type OctetString.
|
void |
setPublicIdentity(java.lang.String publicIdentity)
Sets the value of the Public-Identity AVP, of type UTF8String.
|
byteArrayValue, clone, doubleValue, floatValue, getCode, getMandatoryRule, getName, getProtectedRule, getType, getVendorID, groupedAvpValue, intValue, longValue, stringValue
boolean hasPublicIdentity()
java.lang.String getPublicIdentity()
void setPublicIdentity(java.lang.String publicIdentity)
java.lang.NullPointerException
- if publicIdentity
is null
.void removePublicIdentity()
boolean hasMsisdn()
byte[] getMsisdn()
void setMsisdn(byte[] msisdn)
java.lang.NullPointerException
- if msisdn
is null
.void removeMsisdn()
DiameterAvp[] getExtensionAvps()
void setExtensionAvps(DiameterAvp[] avps) throws AvpNotAllowedException
AvpNotAllowedException
- if an AVP is encountered of a type already known to this class
(i.e. an AVP for which get/set methods already appear in this class)java.lang.NullPointerException
- if avps
is null
.void removeExtensionAvps()