public String createEntryForSentRequest(String targetUid, String password) throws GeneralSecurityException {
    """
	Creates a pending request associated to the target id.
	
	@param targetUid
	@return
    """
		// TODO Add it back later
		// if (entryExistsFor(targetUid) != REQUEST_NOT_EXIST) {
		// return ;
		// }

		String user_uuid = targetUid;
		String token = new IdentifierGenerator().generateAccessToken();

		int request_status = REQUEST_ACCEPTED;
		insertNewEntry(user_uuid, token, request_status);
		return TokenCipher.encryptToken(token, password);
	}
public String createEntryForSentRequest(String targetUid, String password) throws GeneralSecurityException {
		// TODO Add it back later
		// if (entryExistsFor(targetUid) != REQUEST_NOT_EXIST) {
		// return ;
		// }

		String user_uuid = targetUid;
		String token = new IdentifierGenerator().generateAccessToken();

		int request_status = REQUEST_ACCEPTED;
		insertNewEntry(user_uuid, token, request_status);
		return TokenCipher.encryptToken(token, password);
	}
public String createEntryForSentRequest ( String targetUid , String password ) throws GeneralSecurityException { // TODO Add it back later // if (entryExistsFor(targetUid) != REQUEST_NOT_EXIST) { // return ; // } String user_uuid = targetUid ; String token = new IdentifierGenerator ( ) . generateAccessToken ( ) ; int request_status = REQUEST_ACCEPTED ; insertNewEntry ( user_uuid , token , request_status ) ; return TokenCipher . encryptToken ( token , password ) ; }
Creates a pending request associated to the target id.

@param targetUid
@return
Creates a pending request associated to the target id .