Join us at MongoDB.local London on 7 May to unlock new possibilities for your data. Use WEB50 to save 50%.
Register now >
Docs Menu
Docs Home
/ /
io.realm.mongodb.auth

Clase ApiKey

java.lang.Object
io.realm.mongodb.auth.ApiKey

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.

Modificador y Tipo
Método y descripción

public booleano

public ObjectId

Returns the unique identifier for this key.

public String

Devuelve el nombre de esta clave.

public String

Returns this keys value.

public int

public booleano

Devuelve si esta clave está actualmente habilitada o no.

public String

  • Methods inherited from class java.lang.Object : getClass , hashCode , equals , clone , toString , notify , notifyAll , wait , wait , wait , finalize

public boolean equals (
)

Anulaciones

equals en la clase Objeto

public ObjectId getId ()

Returns the unique identifier for this key.

Devuelve

the id, uniquely identifying the key.

public String getName ()

Devuelve el nombre de esta clave.

Devuelve

the name of the key.

public String getValue ()

Returns this keys value. This value is only returned when the key is created. After that the value is no longer visible.

Devuelve

the value of this key. Is only returned when the key is created.

public int hashCode ()

Anulaciones

hashCode en la clase Objeto

public boolean isEnabled ()

Devuelve si esta clave está actualmente habilitada o no.

Devuelve

si la clave está habilitada o no.

public String toString ()

Anulaciones

toString en la clase Objeto

Volver

io.realm.mongodb.auth

En esta página