Class AccessKey

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

public final class AccessKey extends 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>[/] 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 Details

  • Constructor Details

  • Method Details

    • getUserIdentity

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

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

      public 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, 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 Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object