}
}
if ( recovered_id == null || recovered_public_key == null || recovered_private_key == null ){
throw( new CryptoManagerException( "Invalid input file" ));
}
boolean ok = false;
boolean result = false;
try{
result = !Arrays.equals( existing_id, recovered_id );
if ( result ){
manager.setSecureID( recovered_id );
}
recoverKeys( recovered_public_key, recovered_private_key );
if ( !checkKeysOK( reason )){
throw( new CryptoManagerException( "Invalid key pair" ));
}
ok = true;
}finally{