Class RadiusResponse
- java.lang.Object
-
- org.forgerock.openam.radius.server.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 Summary
Constructors Constructor Description RadiusResponse()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetRealm()Return the realm that the authentication was made against.PacketgetResponsePacket()Get the response packet to be sent to the requester.longgetTimeToServiceRequestInMilliSeconds()Set the time to service the request for which the response is being made.StringgetUniversalId()Get the universal ID of the principal of the AuthContext, or null if none has been set.voidsetRealm(String realm)Sets the realm against which hte authentication was made.voidsetResponsePacket(Packet responsePacket)Set the response packet to be sent the the requester.voidsetTimeToServiceRequestInMilliSeconds(long timeToServeRequestInMS)Set the time to service the request for which the response is being made.voidsetUniversalId(String uid)Set the Universal ID of the principal of the AuthContext.
-
-
-
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.
-
-