js.web.credentialmanagement.CredentialsContainer Maven / Gradle / Ivy
package js.web.credentialmanagement;
import js.lang.Any;
import js.lang.Promise;
import js.lang.VoidPromise;
import org.teavm.jso.JSBody;
import org.teavm.jso.JSMethod;
public interface CredentialsContainer extends Any {
@JSBody(script = "return CredentialsContainer.prototype")
static CredentialsContainer prototype() {
throw new UnsupportedOperationException("Available only in JavaScript");
}
@JSBody(script = "return new CredentialsContainer()")
static CredentialsContainer create() {
throw new UnsupportedOperationException("Available only in JavaScript");
}
Promise create(CredentialCreationOptions options);
@JSMethod("create")
Promise createDefault();
Promise get(CredentialRequestOptions options);
Promise get();
VoidPromise preventSilentAccess();
Promise store(Credential credential);
}