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

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

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,QByteArray)

*/ public QMessageAuthenticationCode(io.qt.core.QCryptographicHash.@NonNull Algorithm method, io.qt.core.@NonNull QByteArray 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.QByteArray key); /** *

See QMessageAuthenticationCode::addData(QByteArray)

*/ @QtUninvokable public final void addData(io.qt.core.@NonNull QByteArray data){ addData_native_cref_QByteArray(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(data)); } @QtUninvokable private native void addData_native_cref_QByteArray(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::setKey(QByteArray)

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

See QMessageAuthenticationCode::hash(QByteArray,QByteArray,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_native_cref_QByteArray_cref_QByteArray_QCryptographicHash_Algorithm(QtJambi_LibraryUtilities.internal.checkedNativeId(message), QtJambi_LibraryUtilities.internal.checkedNativeId(key), method.value()); } private native static io.qt.core.QByteArray hash_native_cref_QByteArray_cref_QByteArray_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.QByteArray)} * with key = new io.qt.core.QByteArray().

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

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

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

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

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

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

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

Overloaded function for {@link #hash(io.qt.core.QByteArray, io.qt.core.QByteArray, 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.QByteArray(message), key, method); } /** *

Overloaded function for {@link #hash(io.qt.core.QByteArray, io.qt.core.QByteArray, 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(message, new io.qt.core.QByteArray(key), method); } /** *

Overloaded function for {@link #hash(io.qt.core.QByteArray, io.qt.core.QByteArray, 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.QByteArray(message), new io.qt.core.QByteArray(key), method); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy