public static boolean verifySignature ( EnumMap < FacebookParam , CharSequence > params , String secret ) { if ( null == params || params . isEmpty ( ) ) return false ; CharSequence sigParam = params . remove ( FacebookParam . SIGNATURE ) ; return ( null == sigParam ) ? false : verifySignature ( params , secret , sigParam . toString ( ) ) ; }
Verifies that a signature received matches the expected value . Removes FacebookParam . SIGNATURE from params if present .