How to authorize a request in Roster?

A request to add B into Roster

i have usered this method:

Roster.createEntry(contactName, contactName, group);

B how to authorize it?