public final class AccessKey extends Object
sh://;[/]
where
is the user's public or MSISDN identifier,
and
is the data reference type, and
is the optional data reference parameter.Constructor and Description |
---|
AccessKey(String selector)
Parses AccessKey from specified document selector.
|
AccessKey(UserIdentity userId,
DataReference dataRef) |
AccessKey(UserIdentity userId,
DataReference dataRef,
Object param) |
Modifier and Type | Method and Description |
---|---|
void |
addAvps(AvpList avps)
Adds the appropriate AVPs for this AccessKey to the specified list of AVPs.
|
boolean |
equals(Object obj) |
static AccessKey |
getAccessKey(Request req,
Object param)
Returns the AccessKey for the specified Sh request.
|
DataReference |
getDataReference()
Returns the DataReference for this AccessKey.
|
Object |
getParameter()
Returns the optional parameter for this AccessKey.
|
UserIdentity |
getUserIdentity()
Returns the UserIdentity for this AccessKey.
|
int |
hashCode() |
String |
toString() |
public static final String PREFIX
public AccessKey(UserIdentity userId, DataReference dataRef, Object param)
public AccessKey(UserIdentity userId, DataReference dataRef)
public AccessKey(String selector)
IllegalArgumentException
- if the document selector was invalidpublic UserIdentity getUserIdentity()
public DataReference getDataReference()
public Object getParameter()
public void addAvps(AvpList avps)
avps
- the AVPs for the messagepublic static AccessKey getAccessKey(Request req, Object param) throws AvpException
req
- the Sh requestparam
- ignore parameter AVP and use specified param insteadAvpException
- if one or more AVPs in the request were invalid