All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.core.QMessageAuthenticationCode Maven / Gradle / Ivy

There is a newer version: 6.8.0
Show newest version
package io.qt.core;

import io.qt.*;


/**
 * 

Way to generate hash-based message authentication codes

*

Java wrapper for Qt class QMessageAuthenticationCode

*/ public class QMessageAuthenticationCode extends QtObject { static { QtJambi_LibraryUtilities.initialize(); } /** *

See QMessageAuthenticationCode::QMessageAuthenticationCode(QCryptographicHash::Algorithm,QByteArrayView)

*/ public QMessageAuthenticationCode(io.qt.core.QCryptographicHash.@NonNull Algorithm method, io.qt.core.@NonNull QByteArrayView key){ super((QPrivateConstructor)null); initialize_native(this, method, key); } private native static void initialize_native(QMessageAuthenticationCode instance, io.qt.core.QCryptographicHash.Algorithm method, io.qt.core.QByteArrayView key); /** *

See QMessageAuthenticationCode::addData(QByteArrayView)

*/ @QtUninvokable public final void addData(io.qt.core.@NonNull QByteArrayView data){ addData_native_QByteArrayView(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(data)); } @QtUninvokable private native void addData_native_QByteArrayView(long __this__nativeId, long data); /** *

See QMessageAuthenticationCode::addData(QIODevice*)

*/ @QtUninvokable public final boolean addData(io.qt.core.@Nullable QIODevice device){ return addData_native_QIODevice_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(device)); } @QtUninvokable private native boolean addData_native_QIODevice_ptr(long __this__nativeId, long device); /** *

See QMessageAuthenticationCode::addData(const char*,qsizetype)

*/ @QtUninvokable public final void addData(java.nio.@Nullable ByteBuffer data){ addData_native_const_char_ptr_qsizetype(QtJambi_LibraryUtilities.internal.nativeId(this), data); } @QtUninvokable private native void addData_native_const_char_ptr_qsizetype(long __this__nativeId, java.nio.ByteBuffer data); /** *

See QMessageAuthenticationCode::reset()

*/ @QtUninvokable public final void reset(){ reset_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native void reset_native(long __this__nativeId); /** *

See QMessageAuthenticationCode::result()const

*/ @QtUninvokable public final io.qt.core.@NonNull QByteArray result(){ return result_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QByteArray result_native_constfct(long __this__nativeId); /** *

See QMessageAuthenticationCode::resultView()const

*

This function was introduced in Qt 6.6.

*/ @QtUninvokable public final io.qt.core.@NonNull QByteArrayView resultView(){ return resultView_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QByteArrayView resultView_native_constfct(long __this__nativeId); /** *

See QMessageAuthenticationCode::setKey(QByteArrayView)

*/ @QtUninvokable public final void setKey(io.qt.core.@NonNull QByteArrayView key){ setKey_native_QByteArrayView(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(key)); } @QtUninvokable private native void setKey_native_QByteArrayView(long __this__nativeId, long key); /** *

See QMessageAuthenticationCode::swap(QMessageAuthenticationCode&)

*

This function was introduced in Qt 6.6.

*/ @QtUninvokable public final void swap(io.qt.core.@StrictNonNull QMessageAuthenticationCode other){ java.util.Objects.requireNonNull(other, "Argument 'other': null not expected."); swap_native_ref_QMessageAuthenticationCode(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @QtUninvokable private native void swap_native_ref_QMessageAuthenticationCode(long __this__nativeId, long other); /** *

See QMessageAuthenticationCode::hash(QByteArrayView,QByteArrayView,QCryptographicHash::Algorithm)

*/ public static io.qt.core.@NonNull QByteArray hash(io.qt.core.@NonNull QByteArrayView message, io.qt.core.@NonNull QByteArrayView key, io.qt.core.QCryptographicHash.@NonNull Algorithm method){ return hash_native_QByteArrayView_QByteArrayView_QCryptographicHash_Algorithm(QtJambi_LibraryUtilities.internal.checkedNativeId(message), QtJambi_LibraryUtilities.internal.checkedNativeId(key), method.value()); } private native static io.qt.core.QByteArray hash_native_QByteArrayView_QByteArrayView_QCryptographicHash_Algorithm(long message, long key, int method); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QMessageAuthenticationCode(QPrivateConstructor p) { super(p); } /** *

Overloaded constructor for {@link #QMessageAuthenticationCode(io.qt.core.QCryptographicHash.Algorithm, io.qt.core.QByteArrayView)} * with key = new io.qt.core.QByteArrayView().

*/ public QMessageAuthenticationCode(io.qt.core.QCryptographicHash.@NonNull Algorithm method) { this(method, new io.qt.core.QByteArrayView()); } /** *

Overloaded constructor for {@link #QMessageAuthenticationCode(io.qt.core.QCryptographicHash.Algorithm, io.qt.core.QByteArrayView)}.

*/ public QMessageAuthenticationCode(io.qt.core.QCryptographicHash.@NonNull Algorithm method, io.qt.core.@NonNull QByteArray key) { this(method, new io.qt.core.QByteArrayView(key)); } /** *

Overloaded constructor for {@link #QMessageAuthenticationCode(io.qt.core.QCryptographicHash.Algorithm, io.qt.core.QByteArrayView)}.

*/ public QMessageAuthenticationCode(io.qt.core.QCryptographicHash.@NonNull Algorithm method, java.nio.@NonNull ByteBuffer key) { this(method, new io.qt.core.QByteArrayView(key)); } /** *

Overloaded constructor for {@link #QMessageAuthenticationCode(io.qt.core.QCryptographicHash.Algorithm, io.qt.core.QByteArrayView)}.

*/ public QMessageAuthenticationCode(io.qt.core.QCryptographicHash.@NonNull Algorithm method, byte @NonNull[] key) { this(method, new io.qt.core.QByteArrayView(key)); } /** *

Overloaded function for {@link #addData(io.qt.core.QByteArrayView)}.

*/ @QtUninvokable public final void addData(io.qt.core.@NonNull QByteArray data) { addData(new io.qt.core.QByteArrayView(data)); } /** *

Overloaded function for {@link #addData(io.qt.core.QByteArrayView)}.

*/ @QtUninvokable public final void addData(byte @NonNull[] data) { addData(new io.qt.core.QByteArrayView(data)); } /** *

Overloaded function for {@link #setKey(io.qt.core.QByteArrayView)}.

*/ @QtUninvokable public final void setKey(io.qt.core.@NonNull QByteArray key) { setKey(new io.qt.core.QByteArrayView(key)); } /** *

Overloaded function for {@link #setKey(io.qt.core.QByteArrayView)}.

*/ @QtUninvokable public final void setKey(java.nio.@NonNull ByteBuffer key) { setKey(new io.qt.core.QByteArrayView(key)); } /** *

Overloaded function for {@link #setKey(io.qt.core.QByteArrayView)}.

*/ @QtUninvokable public final void setKey(byte @NonNull[] key) { setKey(new io.qt.core.QByteArrayView(key)); } /** *

Overloaded function for {@link #hash(io.qt.core.QByteArrayView, io.qt.core.QByteArrayView, io.qt.core.QCryptographicHash.Algorithm)}.

*/ public static io.qt.core.@NonNull QByteArray hash(io.qt.core.@NonNull QByteArray message, io.qt.core.@NonNull QByteArrayView key, io.qt.core.QCryptographicHash.@NonNull Algorithm method) { return hash(new io.qt.core.QByteArrayView(message), key, method); } /** *

Overloaded function for {@link #hash(io.qt.core.QByteArrayView, io.qt.core.QByteArrayView, io.qt.core.QCryptographicHash.Algorithm)}.

*/ public static io.qt.core.@NonNull QByteArray hash(java.nio.@NonNull ByteBuffer message, io.qt.core.@NonNull QByteArrayView key, io.qt.core.QCryptographicHash.@NonNull Algorithm method) { return hash(new io.qt.core.QByteArrayView(message), key, method); } /** *

Overloaded function for {@link #hash(io.qt.core.QByteArrayView, io.qt.core.QByteArrayView, io.qt.core.QCryptographicHash.Algorithm)}.

*/ public static io.qt.core.@NonNull QByteArray hash(byte @NonNull[] message, io.qt.core.@NonNull QByteArrayView key, io.qt.core.QCryptographicHash.@NonNull Algorithm method) { return hash(new io.qt.core.QByteArrayView(message), key, method); } /** *

Overloaded function for {@link #hash(io.qt.core.QByteArrayView, io.qt.core.QByteArrayView, io.qt.core.QCryptographicHash.Algorithm)}.

*/ public static io.qt.core.@NonNull QByteArray hash(io.qt.core.@NonNull QByteArrayView message, io.qt.core.@NonNull QByteArray key, io.qt.core.QCryptographicHash.@NonNull Algorithm method) { return hash(message, new io.qt.core.QByteArrayView(key), method); } /** *

Overloaded function for {@link #hash(io.qt.core.QByteArrayView, io.qt.core.QByteArrayView, io.qt.core.QCryptographicHash.Algorithm)}.

*/ public static io.qt.core.@NonNull QByteArray hash(io.qt.core.@NonNull QByteArray message, io.qt.core.@NonNull QByteArray key, io.qt.core.QCryptographicHash.@NonNull Algorithm method) { return hash(new io.qt.core.QByteArrayView(message), new io.qt.core.QByteArrayView(key), method); } /** *

Overloaded function for {@link #hash(io.qt.core.QByteArrayView, io.qt.core.QByteArrayView, io.qt.core.QCryptographicHash.Algorithm)}.

*/ public static io.qt.core.@NonNull QByteArray hash(java.nio.@NonNull ByteBuffer message, io.qt.core.@NonNull QByteArray key, io.qt.core.QCryptographicHash.@NonNull Algorithm method) { return hash(new io.qt.core.QByteArrayView(message), new io.qt.core.QByteArrayView(key), method); } /** *

Overloaded function for {@link #hash(io.qt.core.QByteArrayView, io.qt.core.QByteArrayView, io.qt.core.QCryptographicHash.Algorithm)}.

*/ public static io.qt.core.@NonNull QByteArray hash(byte @NonNull[] message, io.qt.core.@NonNull QByteArray key, io.qt.core.QCryptographicHash.@NonNull Algorithm method) { return hash(new io.qt.core.QByteArrayView(message), new io.qt.core.QByteArrayView(key), method); } /** *

Overloaded function for {@link #hash(io.qt.core.QByteArrayView, io.qt.core.QByteArrayView, io.qt.core.QCryptographicHash.Algorithm)}.

*/ public static io.qt.core.@NonNull QByteArray hash(io.qt.core.@NonNull QByteArrayView message, java.nio.@NonNull ByteBuffer key, io.qt.core.QCryptographicHash.@NonNull Algorithm method) { return hash(message, new io.qt.core.QByteArrayView(key), method); } /** *

Overloaded function for {@link #hash(io.qt.core.QByteArrayView, io.qt.core.QByteArrayView, io.qt.core.QCryptographicHash.Algorithm)}.

*/ public static io.qt.core.@NonNull QByteArray hash(io.qt.core.@NonNull QByteArray message, java.nio.@NonNull ByteBuffer key, io.qt.core.QCryptographicHash.@NonNull Algorithm method) { return hash(new io.qt.core.QByteArrayView(message), new io.qt.core.QByteArrayView(key), method); } /** *

Overloaded function for {@link #hash(io.qt.core.QByteArrayView, io.qt.core.QByteArrayView, io.qt.core.QCryptographicHash.Algorithm)}.

*/ public static io.qt.core.@NonNull QByteArray hash(java.nio.@NonNull ByteBuffer message, java.nio.@NonNull ByteBuffer key, io.qt.core.QCryptographicHash.@NonNull Algorithm method) { return hash(new io.qt.core.QByteArrayView(message), new io.qt.core.QByteArrayView(key), method); } /** *

Overloaded function for {@link #hash(io.qt.core.QByteArrayView, io.qt.core.QByteArrayView, io.qt.core.QCryptographicHash.Algorithm)}.

*/ public static io.qt.core.@NonNull QByteArray hash(byte @NonNull[] message, java.nio.@NonNull ByteBuffer key, io.qt.core.QCryptographicHash.@NonNull Algorithm method) { return hash(new io.qt.core.QByteArrayView(message), new io.qt.core.QByteArrayView(key), method); } /** *

Overloaded function for {@link #hash(io.qt.core.QByteArrayView, io.qt.core.QByteArrayView, io.qt.core.QCryptographicHash.Algorithm)}.

*/ public static io.qt.core.@NonNull QByteArray hash(io.qt.core.@NonNull QByteArrayView message, byte @NonNull[] key, io.qt.core.QCryptographicHash.@NonNull Algorithm method) { return hash(message, new io.qt.core.QByteArrayView(key), method); } /** *

Overloaded function for {@link #hash(io.qt.core.QByteArrayView, io.qt.core.QByteArrayView, io.qt.core.QCryptographicHash.Algorithm)}.

*/ public static io.qt.core.@NonNull QByteArray hash(io.qt.core.@NonNull QByteArray message, byte @NonNull[] key, io.qt.core.QCryptographicHash.@NonNull Algorithm method) { return hash(new io.qt.core.QByteArrayView(message), new io.qt.core.QByteArrayView(key), method); } /** *

Overloaded function for {@link #hash(io.qt.core.QByteArrayView, io.qt.core.QByteArrayView, io.qt.core.QCryptographicHash.Algorithm)}.

*/ public static io.qt.core.@NonNull QByteArray hash(java.nio.@NonNull ByteBuffer message, byte @NonNull[] key, io.qt.core.QCryptographicHash.@NonNull Algorithm method) { return hash(new io.qt.core.QByteArrayView(message), new io.qt.core.QByteArrayView(key), method); } /** *

Overloaded function for {@link #hash(io.qt.core.QByteArrayView, io.qt.core.QByteArrayView, io.qt.core.QCryptographicHash.Algorithm)}.

*/ public static io.qt.core.@NonNull QByteArray hash(byte @NonNull[] message, byte @NonNull[] key, io.qt.core.QCryptographicHash.@NonNull Algorithm method) { return hash(new io.qt.core.QByteArrayView(message), new io.qt.core.QByteArrayView(key), method); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy