public boolean confirmRequest(String targetUID, String password) throws GeneralSecurityException, WrongPassphraseException {
    """
	Confirm a friendship request. the status of the entry associated with the
	specified person, will be REQUEST_ACCEPTED
	
	@param targetUID
	- the unique identifier of the person
	@throws WrongPassphraseException
	@throws GeneralSecurityException
    """
		SQLiteDatabase db = getWritableDatabase();
		String table = RelationshipEntry.TABLE_PERSON_AUTH;
		String[] columns = { RelationshipEntry.COLUMN_TKN, RelationshipEntry.COLUMN_REQUEST_STATUS, RelationshipEntry.COLUMN_PASSWORD };
		String selection = RelationshipEntry.COLUMN_USER_UUID + " = ? ";
		String[] selectionArgs = { targetUID };
		String groupBy = null;
		String having = null;
		String orderBy = null;
		String limit = null;
		Cursor c = db.query(table, columns, selection, selectionArgs, groupBy, having, orderBy, limit);
		if (c.moveToNext()) {
			String token = c.getString(c.getColumnIndex(RelationshipEntry.COLUMN_TKN));
			String decryptedTkn = TokenCipher.decryptToken(token, password);
			if (decryptedTkn != null) {
				return commitConfirmation(targetUID, password, decryptedTkn);
			} else {
				return false;
			}
		}
		return false;
	}
public boolean confirmRequest(String targetUID, String password) throws GeneralSecurityException, WrongPassphraseException {
		SQLiteDatabase db = getWritableDatabase();
		String table = RelationshipEntry.TABLE_PERSON_AUTH;
		String[] columns = { RelationshipEntry.COLUMN_TKN, RelationshipEntry.COLUMN_REQUEST_STATUS, RelationshipEntry.COLUMN_PASSWORD };
		String selection = RelationshipEntry.COLUMN_USER_UUID + " = ? ";
		String[] selectionArgs = { targetUID };
		String groupBy = null;
		String having = null;
		String orderBy = null;
		String limit = null;
		Cursor c = db.query(table, columns, selection, selectionArgs, groupBy, having, orderBy, limit);
		if (c.moveToNext()) {
			String token = c.getString(c.getColumnIndex(RelationshipEntry.COLUMN_TKN));
			String decryptedTkn = TokenCipher.decryptToken(token, password);
			if (decryptedTkn != null) {
				return commitConfirmation(targetUID, password, decryptedTkn);
			} else {
				return false;
			}
		}
		return false;
	}
public boolean confirmRequest ( String targetUID , String password ) throws GeneralSecurityException , WrongPassphraseException { SQLiteDatabase db = getWritableDatabase ( ) ; String table = RelationshipEntry . TABLE_PERSON_AUTH ; String [ ] columns = { RelationshipEntry . COLUMN_TKN , RelationshipEntry . COLUMN_REQUEST_STATUS , RelationshipEntry . COLUMN_PASSWORD } ; String selection = RelationshipEntry . COLUMN_USER_UUID + " = ? " ; String [ ] selectionArgs = { targetUID } ; String groupBy = null ; String having = null ; String orderBy = null ; String limit = null ; Cursor c = db . query ( table , columns , selection , selectionArgs , groupBy , having , orderBy , limit ) ; if ( c . moveToNext ( ) ) { String token = c . getString ( c . getColumnIndex ( RelationshipEntry . COLUMN_TKN ) ) ; String decryptedTkn = TokenCipher . decryptToken ( token , password ) ; if ( decryptedTkn != null ) { return commitConfirmation ( targetUID , password , decryptedTkn ) ; } else { return false ; } } return false ; }
Confirm a friendship request. the status of the entry associated with the
specified person, will be REQUEST_ACCEPTED

@param targetUID
- the unique identifier of the person
@throws WrongPassphraseException
@throws GeneralSecurityException
Confirm a friendship request . the status of the entry associated with the specified person will be REQUEST_ACCEPTED