Package com.bea.wcp.diameter.sh
Class AccessKey
java.lang.Object
com.bea.wcp.diameter.sh.AccessKey
Access key used for Sh-Pull, Sh-Update, and Sh-Subs-Notif commands. Can
be parsed from string-based document selector of the following format:
sh://<user-id>;<data-reference>[/]
where <user-id> is the user's public or MSISDN identifier,
and <data-reference> is the data reference type, and
is the optional data reference parameter.- Author:
- Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAccessKey(UserIdentity userId, DataReference dataRef) AccessKey(UserIdentity userId, DataReference dataRef, Object param) Parses AccessKey from specified document selector. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the appropriate AVPs for this AccessKey to the specified list of AVPs.booleanstatic AccessKeygetAccessKey(Request req, Object param) Returns the AccessKey for the specified Sh request.Returns the DataReference for this AccessKey.Returns the optional parameter for this AccessKey.Returns the UserIdentity for this AccessKey.inthashCode()toString()
-
Field Details
-
PREFIX
- See Also:
-
-
Constructor Details
-
AccessKey
-
AccessKey
-
AccessKey
Parses AccessKey from specified document selector.- Throws:
IllegalArgumentException- if the document selector was invalid
-
-
Method Details
-
getUserIdentity
Returns the UserIdentity for this AccessKey. -
getDataReference
Returns the DataReference for this AccessKey. -
getParameter
Returns the optional parameter for this AccessKey. -
addAvps
Adds the appropriate AVPs for this AccessKey to the specified list of AVPs.- Parameters:
avps- the AVPs for the message
-
getAccessKey
Returns the AccessKey for the specified Sh request.- Parameters:
req- the Sh requestparam- ignore parameter AVP and use specified param instead- Returns:
- the AccessKey
- Throws:
AvpException- if one or more AVPs in the request were invalid
-
hashCode
public int hashCode() -
equals
-
toString
-