Add permission interface..

If this API does not use permissions, tell me to close this pull
request.