Class RTTPObject

java.lang.Object
com.caplin.server.auth.RTTPObject

public class RTTPObject extends Object

A representation of an RTTP Object that is present in the Liberator.

  • Constructor Details

    • RTTPObject

      public RTTPObject(String name, int type)
  • Method Details

    • getName

      public String getName()
      Get the object's name
      Returns:
      the object name
    • getType

      public int getType()
      Get the RTTP type of this object
      Returns:
      the rttp type of this object
    • getValue

      public String getValue(int fieldNumber)

      Get the current value for the specified object and field number.

      This is useful during a call to Authenticator#checkRead, so you can find the value of a particular field for content-based permissioning.

      Parameters:
      fieldNumber - the field number for which to obtain the value
      Returns:
      the current value of the specified field for this object
    • getValue

      public String getValue(String fieldName)

      Get the current value for the specified object and field name.

      This is useful during a call to Authenticator#checkRead, so you can find the value of a particular field for content-based permissioning.

      Parameters:
      fieldName - the field name for which to obtain the value
      Returns:
      the current value of the specified field for this object
    • getPayload

      public Object getPayload()
    • setPayload

      public void setPayload(Object payload)
    • 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