private static void performAttributeSpecificActions ( StunAttribute attribute , byte [ ] binMessage , int offset , int msgLen ) throws StunException { // check finger print CRC if ( attribute instanceof FingerprintAttribute ) { if ( ! validateFingerprint ( ( FingerprintAttribute ) attribute , binMessage , offset , msgLen ) ) { // RFC 5389 says that we should ignore bad CRCs rather than // reply with an error response. throw new StunException ( "Wrong value in FINGERPRINT" ) ; } } }
Executes actions related specific attributes like asserting proper fingerprint checksum .