com.ironcorelabs.sdk.UserVerifyResult Maven / Gradle / Ivy
// Automatically generated by rust_swig
package com.ironcorelabs.sdk;
/**
* IDs and public key for existing user on verify result
*/
public final class UserVerifyResult {
private UserVerifyResult() {}
public final UserId getAccountId() {
long ret = do_getAccountId(mNativeObj);
UserId convRet = new UserId(InternalPointerMarker.RAW_PTR, ret);
return convRet;
}
private static native long do_getAccountId(long self);
public final long getSegmentId() {
long ret = do_getSegmentId(mNativeObj);
return ret;
}
private static native long do_getSegmentId(long self);
public final PublicKey getUserPublicKey() {
long ret = do_getUserPublicKey(mNativeObj);
PublicKey convRet = new PublicKey(InternalPointerMarker.RAW_PTR, ret);
return convRet;
}
private static native long do_getUserPublicKey(long self);
public final boolean getNeedsRotation() {
boolean ret = do_getNeedsRotation(mNativeObj);
return ret;
}
private static native boolean do_getNeedsRotation(long self);
public synchronized void delete() {
if (mNativeObj != 0) {
do_delete(mNativeObj);
mNativeObj = 0;
}
}
@Override
protected void finalize() throws Throwable {
try {
delete();
}
finally {
super.finalize();
}
}
private static native void do_delete(long me);
/*package*/ UserVerifyResult(InternalPointerMarker marker, long ptr) {
assert marker == InternalPointerMarker.RAW_PTR;
this.mNativeObj = ptr;
}
/*package*/ long mNativeObj;
}