Skip navigation links

Oracle Communications Converged Application Server Java API Reference
5.0

E18767-01


com.bea.wcp.diameter.sh
Class AccessKey

java.lang.Object
  extended by com.bea.wcp.diameter.sh.AccessKey


public final class AccessKey
extends java.lang.Object

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>[/<parameter>] where <user-id> is the user's public or MSISDN identifier, and <data-reference> is the data reference type, and <parameter> is the optional data reference parameter.


Field Summary
static java.lang.String PREFIX
           

 

Constructor Summary
AccessKey(java.lang.String selector)
          Parses AccessKey from specified document selector.
AccessKey(UserIdentity userId, DataReference dataRef)
           
AccessKey(UserIdentity userId, DataReference dataRef, java.lang.Object param)
           

 

Method Summary
 void addAvps(AvpList avps)
          Adds the appropriate AVPs for this AccessKey to the specified list of AVPs.
 boolean equals(java.lang.Object obj)
           
static AccessKey getAccessKey(Request req, java.lang.Object param)
          Returns the AccessKey for the specified Sh request.
 DataReference getDataReference()
          Returns the DataReference for this AccessKey.
 java.lang.Object getParameter()
          Returns the optional parameter for this AccessKey.
 UserIdentity getUserIdentity()
          Returns the UserIdentity for this AccessKey.
 int hashCode()
           
 java.lang.String toString()
           

 

Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait

 

Field Detail

PREFIX

public static final java.lang.String PREFIX
See Also:
Constant Field Values

Constructor Detail

AccessKey

public AccessKey(UserIdentity userId,
                 DataReference dataRef,
                 java.lang.Object param)

AccessKey

public AccessKey(UserIdentity userId,
                 DataReference dataRef)

AccessKey

public AccessKey(java.lang.String selector)
Parses AccessKey from specified document selector.
Throws:
java.lang.IllegalArgumentException - if the document selector was invalid

Method Detail

getUserIdentity

public UserIdentity getUserIdentity()
Returns the UserIdentity for this AccessKey.

getDataReference

public DataReference getDataReference()
Returns the DataReference for this AccessKey.

getParameter

public java.lang.Object getParameter()
Returns the optional parameter for this AccessKey.

addAvps

public void addAvps(AvpList avps)
Adds the appropriate AVPs for this AccessKey to the specified list of AVPs.
Parameters:
avps - the AVPs for the message

getAccessKey

public static AccessKey getAccessKey(Request req,
                                     java.lang.Object param)
                              throws AvpException
Returns the AccessKey for the specified Sh request.
Parameters:
req - the Sh request
param - 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()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Skip navigation links

Oracle Communications Converged Application Server Java API Reference
5.0

E18767-01


Copyright © 2005, 2010, Oracle and/or its affiliates. All rights reserved.