Class ApiKeyAuth
On this page
io.realm.mongodb.auth
This class exposes functionality for a user to manage API keys under their control.
Method Summary
Modifier and Type | Method and Description |
---|---|
protected abstract void | |
public ApiKey | |
public RealmAsyncTask | Asynchronously creates a user API key that can be used to authenticate as the user. |
public void | Deletes a specific API key created by the user. |
public RealmAsyncTask | Deletes a specific API key created by the user. |
public void | Disables a specific API key created by the user. |
public RealmAsyncTask | Disables a specific API key created by the user. |
public void | Enables a specific API key created by the user. |
public RealmAsyncTask | Enables a specific API key created by the user. |
public boolean | |
public ApiKey | Fetches a specific user API key associated with the user. |
public RealmAsyncTask | Fetches all API keys associated with the user. |
public List | fetchAll () Fetches all API keys associated with the user. |
public RealmAsyncTask | Fetches a specific user API key associated with the user. |
public App | |
public User | |
public int | hashCode () |
public String | toString () |
Inherited Methods
Methods inherited from class java.lang.Object :
getClass
,hashCode
,equals
,clone
,toString
,notify
,notifyAll
,wait
,wait
,wait
,finalize
Method Detail
call
create
Creates a user API key that can be used to authenticate as the user.The value of the key must be persisted at this time as this is the only time it is visible. The key is enabled when created. It can be disabled by calling disable(ObjectId) . Parameters
Returns the new API key for the user. Throws
|
createAsync
public RealmAsyncTask createAsync ( ) |
---|
Asynchronously creates a user API key that can be used to authenticate as the user.The value of the key must be persisted at this time as this is the only time it is visible. The key is enabled when created. It can be disabled by calling disable(ObjectId) . Parameters
Throws
|
delete
Deletes a specific API key created by the user. Parameters
Throws
|
deleteAsync
Deletes a specific API key created by the user. Parameters
Throws
|
disable
Disables a specific API key created by the user. Parameters
Throws
|
disableAsync
Disables a specific API key created by the user. Parameters
Throws
|
enable
Enables a specific API key created by the user. Parameters
Throws
|
enableAsync
Enables a specific API key created by the user. Parameters
Throws
|
equals
fetch
Fetches a specific user API key associated with the user. Parameters
Throws
|
fetchAll
Fetches all API keys associated with the user. Parameters
Throws
|
Fetches all API keys associated with the user. Throws
|
fetchAsync
Fetches a specific user API key associated with the user. Parameters
Throws
|