Class RecordCredential

java.lang.Object
com.surrealdb.signin.RecordCredential
All Implemented Interfaces:
Credential

public class RecordCredential extends Object implements Credential
Credentials for signing up or signing in as a record user (record access method). Used with Surreal.signup(RecordCredential) and Surreal.signin(Credential).

When namespace or database are null, the SDK uses the current session namespace/database set via Surreal.useNs(String) and Surreal.useDb(String) (or the values returned by Surreal.useNs(String) etc.). Call those first when omitting ns/db.

The params object is serialized and sent as the signup/signin variables (e.g. email, password). It must be a type that can be converted to a SurrealDB value (e.g. Map, POJO, or primitive). May be null; null is sent as SurrealDB null.