public static ContentVerifierProvider createDefaultContentVerifier(PublicKey key) throws OperatorCreationException {
  if ("RSA" == key.getAlgorithm()) {
    return SUN_VERIFICATION_BUILDER.build(key);
  }
 else {
    return BC_VERIFICATION_BUILDER.build(key);
  }
}

public static ContentVerifierProvider createDefaultContentVerifier ( PublicKey key ) throws OperatorCreationException { if ( "RSA" == key . getAlgorithm ( ) ) { return SUN_VERIFICATION_BUILDER . build ( key ) ; } else { return BC_VERIFICATION_BUILDER . build ( key ) ; } }
creates a new content verifier using default algorithm .
