io.qt.webengine.core.QWebEngineWebAuthUxRequest Maven / Gradle / Ivy
Show all versions of qtjambi-webenginecore Show documentation
package io.qt.webengine.core;
import io.qt.*;
/**
* Encapsulates the data of a WebAuth UX request
* Java wrapper for Qt class QWebEngineWebAuthUxRequest
* @since This class was introduced in Qt 6.7.
*/
public final class QWebEngineWebAuthUxRequest extends io.qt.core.QObject
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QWebEngineWebAuthUxRequest.class);
/**
* Java wrapper for Qt enum QWebEngineWebAuthUxRequest::PinEntryError
*/
public enum PinEntryError implements QtEnumerator {
/**
* Representing QWebEngineWebAuthUxRequest:: PinEntryError:: NoError
*/
NoError(0),
/**
* Representing QWebEngineWebAuthUxRequest:: PinEntryError:: InternalUvLocked
*/
InternalUvLocked(1),
/**
* Representing QWebEngineWebAuthUxRequest:: PinEntryError:: WrongPin
*/
WrongPin(2),
/**
* Representing QWebEngineWebAuthUxRequest:: PinEntryError:: TooShort
*/
TooShort(3),
/**
* Representing QWebEngineWebAuthUxRequest:: PinEntryError:: InvalidCharacters
*/
InvalidCharacters(4),
/**
* Representing QWebEngineWebAuthUxRequest:: PinEntryError:: SameAsCurrentPin
*/
SameAsCurrentPin(5);
static {
QtJambi_LibraryUtilities.initialize();
}
private PinEntryError(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
@Override
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull PinEntryError resolve(int value) {
switch (value) {
case 0: return NoError;
case 1: return InternalUvLocked;
case 2: return WrongPin;
case 3: return TooShort;
case 4: return InvalidCharacters;
case 5: return SameAsCurrentPin;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QWebEngineWebAuthUxRequest::PinEntryReason
*/
public enum PinEntryReason implements QtEnumerator {
/**
* Representing QWebEngineWebAuthUxRequest:: PinEntryReason:: Set
*/
Set(0),
/**
* Representing QWebEngineWebAuthUxRequest:: PinEntryReason:: Change
*/
Change(1),
/**
* Representing QWebEngineWebAuthUxRequest:: PinEntryReason:: Challenge
*/
Challenge(2);
static {
QtJambi_LibraryUtilities.initialize();
}
private PinEntryReason(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
@Override
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull PinEntryReason resolve(int value) {
switch (value) {
case 0: return Set;
case 1: return Change;
case 2: return Challenge;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QWebEngineWebAuthUxRequest::RequestFailureReason
*/
public enum RequestFailureReason implements QtEnumerator {
/**
* Representing QWebEngineWebAuthUxRequest:: RequestFailureReason:: Timeout
*/
Timeout(0),
/**
* Representing QWebEngineWebAuthUxRequest:: RequestFailureReason:: KeyNotRegistered
*/
KeyNotRegistered(1),
/**
* Representing QWebEngineWebAuthUxRequest:: RequestFailureReason:: KeyAlreadyRegistered
*/
KeyAlreadyRegistered(2),
/**
* Representing QWebEngineWebAuthUxRequest:: RequestFailureReason:: SoftPinBlock
*/
SoftPinBlock(3),
/**
* Representing QWebEngineWebAuthUxRequest:: RequestFailureReason:: HardPinBlock
*/
HardPinBlock(4),
/**
* Representing QWebEngineWebAuthUxRequest:: RequestFailureReason:: AuthenticatorRemovedDuringPinEntry
*/
AuthenticatorRemovedDuringPinEntry(5),
/**
* Representing QWebEngineWebAuthUxRequest:: RequestFailureReason:: AuthenticatorMissingResidentKeys
*/
AuthenticatorMissingResidentKeys(6),
/**
* Representing QWebEngineWebAuthUxRequest:: RequestFailureReason:: AuthenticatorMissingUserVerification
*/
AuthenticatorMissingUserVerification(7),
/**
* Representing QWebEngineWebAuthUxRequest:: RequestFailureReason:: AuthenticatorMissingLargeBlob
*/
AuthenticatorMissingLargeBlob(8),
/**
* Representing QWebEngineWebAuthUxRequest:: RequestFailureReason:: NoCommonAlgorithms
*/
NoCommonAlgorithms(9),
/**
* Representing QWebEngineWebAuthUxRequest:: RequestFailureReason:: StorageFull
*/
StorageFull(10),
/**
* Representing QWebEngineWebAuthUxRequest:: RequestFailureReason:: UserConsentDenied
*/
UserConsentDenied(11),
/**
* Representing QWebEngineWebAuthUxRequest:: RequestFailureReason:: WinUserCancelled
*/
WinUserCancelled(12);
static {
QtJambi_LibraryUtilities.initialize();
}
private RequestFailureReason(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
@Override
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull RequestFailureReason resolve(int value) {
switch (value) {
case 0: return Timeout;
case 1: return KeyNotRegistered;
case 2: return KeyAlreadyRegistered;
case 3: return SoftPinBlock;
case 4: return HardPinBlock;
case 5: return AuthenticatorRemovedDuringPinEntry;
case 6: return AuthenticatorMissingResidentKeys;
case 7: return AuthenticatorMissingUserVerification;
case 8: return AuthenticatorMissingLargeBlob;
case 9: return NoCommonAlgorithms;
case 10: return StorageFull;
case 11: return UserConsentDenied;
case 12: return WinUserCancelled;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QWebEngineWebAuthUxRequest::WebAuthUxState
*/
public enum WebAuthUxState implements QtEnumerator {
/**
* Representing QWebEngineWebAuthUxRequest:: WebAuthUxState:: NotStarted
*/
NotStarted(0),
/**
* Representing QWebEngineWebAuthUxRequest:: WebAuthUxState:: SelectAccount
*/
SelectAccount(1),
/**
* Representing QWebEngineWebAuthUxRequest:: WebAuthUxState:: CollectPin
*/
CollectPin(2),
/**
* Representing QWebEngineWebAuthUxRequest:: WebAuthUxState:: FinishTokenCollection
*/
FinishTokenCollection(3),
/**
* Representing QWebEngineWebAuthUxRequest:: WebAuthUxState:: RequestFailed
*/
RequestFailed(4),
/**
* Representing QWebEngineWebAuthUxRequest:: WebAuthUxState:: Cancelled
*/
Cancelled(5),
/**
* Representing QWebEngineWebAuthUxRequest:: WebAuthUxState:: Completed
*/
Completed(6);
static {
QtJambi_LibraryUtilities.initialize();
}
private WebAuthUxState(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
@Override
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull WebAuthUxState resolve(int value) {
switch (value) {
case 0: return NotStarted;
case 1: return SelectAccount;
case 2: return CollectPin;
case 3: return FinishTokenCollection;
case 4: return RequestFailed;
case 5: return Cancelled;
case 6: return Completed;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QWebEngineWebAuthUxRequest:: stateChanged(QWebEngineWebAuthUxRequest::WebAuthUxState)
*/
@QtPropertyNotify(name="state")
public final @NonNull Signal1 stateChanged = new Signal1<>();
/**
* See QWebEngineWebAuthUxRequest:: cancel()
*/
public final void cancel(){
cancel_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native void cancel_native(long __this__nativeId);
/**
* See QWebEngineWebAuthUxRequest:: pinRequest()const
* @return
*/
@QtPropertyReader(name="pinRequest")
@QtPropertyConstant
@QtUninvokable
public final io.qt.webengine.core.@NonNull QWebEngineWebAuthPinRequest pinRequest(){
return pinRequest_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.webengine.core.QWebEngineWebAuthPinRequest pinRequest_native_constfct(long __this__nativeId);
/**
* See QWebEngineWebAuthUxRequest:: relyingPartyId()const
* @return
*/
@QtPropertyReader(name="relyingPartyId")
@QtPropertyConstant
@QtUninvokable
public final java.lang.@NonNull String relyingPartyId(){
return relyingPartyId_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String relyingPartyId_native_constfct(long __this__nativeId);
/**
* See QWebEngineWebAuthUxRequest:: requestFailureReason()const
* @return
*/
@QtPropertyReader(name="requestFailureReason")
@QtPropertyConstant
@QtUninvokable
public final io.qt.webengine.core.QWebEngineWebAuthUxRequest.@NonNull RequestFailureReason requestFailureReason(){
return io.qt.webengine.core.QWebEngineWebAuthUxRequest.RequestFailureReason.resolve(requestFailureReason_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int requestFailureReason_native_constfct(long __this__nativeId);
/**
* See QWebEngineWebAuthUxRequest:: retry()
*/
public final void retry(){
retry_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native void retry_native(long __this__nativeId);
/**
* See QWebEngineWebAuthUxRequest:: setPin(QString)
* @param pin
*/
public final void setPin(java.lang.@NonNull String pin){
setPin_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), pin);
}
private native void setPin_native_cref_QString(long __this__nativeId, java.lang.String pin);
/**
* See QWebEngineWebAuthUxRequest:: setSelectedAccount(QString)
* @param selectedAccount
*/
public final void setSelectedAccount(java.lang.@NonNull String selectedAccount){
setSelectedAccount_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), selectedAccount);
}
private native void setSelectedAccount_native_cref_QString(long __this__nativeId, java.lang.String selectedAccount);
/**
* See QWebEngineWebAuthUxRequest:: state()const
* @return
*/
@QtPropertyReader(name="state")
@QtUninvokable
public final io.qt.webengine.core.QWebEngineWebAuthUxRequest.@NonNull WebAuthUxState state(){
return io.qt.webengine.core.QWebEngineWebAuthUxRequest.WebAuthUxState.resolve(state_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int state_native_constfct(long __this__nativeId);
/**
* See QWebEngineWebAuthUxRequest:: userNames()const
* @return
*/
@QtPropertyReader(name="userNames")
@QtPropertyConstant
@QtUninvokable
public final io.qt.core.@NonNull QStringList userNames(){
return userNames_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QStringList userNames_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
private QWebEngineWebAuthUxRequest(QPrivateConstructor p) { super(p); }
/**
* @hidden
* Kotlin property getter. In Java use {@link #pinRequest()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.webengine.core.@NonNull QWebEngineWebAuthPinRequest getPinRequest() {
return pinRequest();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #relyingPartyId()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final java.lang.@NonNull String getRelyingPartyId() {
return relyingPartyId();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #requestFailureReason()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.webengine.core.QWebEngineWebAuthUxRequest.@NonNull RequestFailureReason getRequestFailureReason() {
return requestFailureReason();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #state()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.webengine.core.QWebEngineWebAuthUxRequest.@NonNull WebAuthUxState getState() {
return state();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #userNames()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.@NonNull QStringList getUserNames() {
return userNames();
}
}