io.realm.mongodb.auth
Clase que representa una clave de API para un Usuario . Una API se puede usar para representar al usuario al iniciar sesión en lugar de usar el correo electrónico y la contraseña.
Estas claves se crean o se obtienen a través de ApiKeyAuth.create(String) o los diversos fetch -métodos.
Note that a keys value is only available when the key is created, after that it is not visible. So anyone creating an API key is responsible for storing it safely after that.
Resumen del método
Modificador y Tipo | Método y descripción |
|---|---|
public booleano | |
public ObjectId | getId () Returns the unique identifier for this key. |
public String | getName () Devuelve el nombre de esta clave. |
public String | getValue () Returns this keys value. |
public int | hashCode () |
public booleano | isEnabled () Devuelve si esta clave está actualmente habilitada o no. |
public String | toString () |
Inherited Methods
Methods inherited from class java.lang.Object :
getClass,hashCode,equals,clone,toString,notify,notifyAll,wait,wait,wait,finalize
Detalle del método
equals
getId
public ObjectId getId () |
|---|
Returns the unique identifier for this key. Devuelve the id, uniquely identifying the key. |
getName
getValue
hashCode
isEnabled
public boolean isEnabled () |
|---|
Devuelve si esta clave está actualmente habilitada o no. Devuelve si la clave está habilitada o no. |