private static BigInteger checkAndReturn ( String which , BigInteger expected , String asbigintcs ) { BigInteger other = BigIntStringChecksum . fromString ( asbigintcs ) . asBigInteger ( ) ; if ( expected . equals ( other ) ) { return expected ; } else { throw new SecretShareException ( which + " failure" ) ; } }
Guard against accidental changes to the strings .