Class RadiusResponse


  • public class RadiusResponse
    extends Object
    Holds the Radius packet to be returned to the requester, along with other information for audit logging/accounting purposes.
    • Constructor Detail

      • RadiusResponse

        public RadiusResponse()
        Constructor.
    • Method Detail

      • setResponsePacket

        public void setResponsePacket​(Packet responsePacket)
        Set the response packet to be sent the the requester.
        Parameters:
        responsePacket - the packet to be sent to the requester. Must not be null.
      • getResponsePacket

        public Packet getResponsePacket()
        Get the response packet to be sent to the requester.
        Returns:
        the response packet to be sent to the requester.
      • getRealm

        public String getRealm()
        Return the realm that the authentication was made against.
        Returns:
        the realm
      • setRealm

        public void setRealm​(String realm)
        Sets the realm against which hte authentication was made.
        Parameters:
        realm - the realm to set
      • setTimeToServiceRequestInMilliSeconds

        public void setTimeToServiceRequestInMilliSeconds​(long timeToServeRequestInMS)
        Set the time to service the request for which the response is being made.
        Parameters:
        timeToServeRequestInMS - time to service the request for which the response is being made.
      • getTimeToServiceRequestInMilliSeconds

        public long getTimeToServiceRequestInMilliSeconds()
        Set the time to service the request for which the response is being made.
        Returns:
        the time to service the request for which the response is being made.
      • setUniversalId

        public void setUniversalId​(String uid)
        Set the Universal ID of the principal of the AuthContext.
        Parameters:
        uid - the principal of the response.
      • getUniversalId

        public String getUniversalId()
        Get the universal ID of the principal of the AuthContext, or null if none has been set.
        Returns:
        the universal ID of the principal of the AuthContext, or null if none has been set.