src/main/java/org/tinyradius/packet/RadiusPacket.java
protected void checkResponseAuthenticator(String sharedSecret, int packetLength, byte[] attributes, byte[] requestAuthenticator)
        throws RadiusException {
        byte[] authenticator = createResponseAuthenticator(sharedSecret, packetLength, attributes, requestAuthenticator);
        byte[] receivedAuth = getAuthenticator();
        for (int i = 0; i < 16; i++) {
            if (authenticator[i] != receivedAuth[i]) {
                throw new RadiusException("response authenticator invalid");
            }
        }
    }
/**
     * This method checks the authenticator of this Radius packet. This method
     * may be overriden to include special attributes in the authenticator check.
     *
     * @param sharedSecret         shared secret to be used to encrypt the authenticator
     * @param packetLength         length of the response packet
     * @param attributes           attribute data of the response packet
     * @param requestAuthenticator 16 bytes authenticator of the request packet belonging
     *                             to this response packet
     */
This method checks the authenticator of this Radius packet. This method
may be overriden to include special attributes in the authenticator check.

@param sharedSecret         shared secret to be used to encrypt the authenticator
@param packetLength         length of the response packet
@param attributes           attribute data of the response packet
@param requestAuthenticator 16 bytes authenticator of the request packet belonging
to this response packet
This method checks the authenticator of this Radius packet . This method may be overriden to include special attributes in the authenticator check . @param sharedSecret shared secret to be used to encrypt the authenticator @param packetLength length of the response packet @param attributes attribute data of the response packet @param requestAuthenticator 16 bytes authenticator of the request packet belonging to this response packet
protected void checkResponseAuthenticator(String sharedSecret, int packetLength, byte[] attributes, byte[] requestAuthenticator)
        throws RadiusException {
        byte[] authenticator = createResponseAuthenticator(sharedSecret, packetLength, attributes, requestAuthenticator);
        byte[] receivedAuth = getAuthenticator();
        for (int i = 0; i < 16; i++) {
            if (authenticator[i] != receivedAuth[i]) {
                throw new RadiusException("response authenticator invalid");
            }
        }
    }
protected void checkResponseAuthenticator ( String sharedSecret , int packetLength , byte [ ] attributes , byte [ ] requestAuthenticator ) throws RadiusException { byte [ ] authenticator = createResponseAuthenticator ( sharedSecret , packetLength , attributes , requestAuthenticator ) ; byte [ ] receivedAuth = getAuthenticator ( ) ; for ( int i = 0 ; i < 16 ; i ++ ) { if ( authenticator [ i ] != receivedAuth [ i ] ) { throw new RadiusException ( "response authenticator invalid" ) ; } } }
This method checks the authenticator of this Radius packet.
This method checks the authenticator of this Radius packet .