src/main/java/org/tinyradius/util/RadiusServer.java
protected RadiusPacket makeRadiusPacket(DatagramPacket packet, String sharedSecret)
        throws IOException, RadiusException {
        ByteArrayInputStream in = new ByteArrayInputStream(packet.getData());
        return RadiusPacket.decodeRequestPacket(in, sharedSecret);
    }
/**
     * Creates a RadiusPacket for a Radius request from a received
     * datagram packet.
     *
     * @param packet received datagram
     * @return RadiusPacket object
     * @throws RadiusException malformed packet
     * @throws IOException     communication error (after getRetryCount()
     *                         retries)
     */
Creates a RadiusPacket for a Radius request from a received
datagram packet.

@param packet received datagram
@return RadiusPacket object
@throws RadiusException malformed packet
@throws IOException     communication error (after getRetryCount()
retries)
Creates a RadiusPacket for a Radius request from a received datagram packet . @param packet received datagram @return RadiusPacket object @throws RadiusException malformed packet @throws IOException communication error ( after getRetryCount () retries )
protected RadiusPacket makeRadiusPacket(DatagramPacket packet, String sharedSecret)
        throws IOException, RadiusException {
        ByteArrayInputStream in = new ByteArrayInputStream(packet.getData());
        return RadiusPacket.decodeRequestPacket(in, sharedSecret);
    }
protected RadiusPacket makeRadiusPacket ( DatagramPacket packet , String sharedSecret ) throws IOException , RadiusException { ByteArrayInputStream in = new ByteArrayInputStream ( packet . getData ( ) ) ; return RadiusPacket . decodeRequestPacket ( in , sharedSecret ) ; }
Creates a RadiusPacket for a Radius request from a received
 datagram packet.
Creates a RadiusPacket for a Radius request from a received datagram packet .