public virtual unsafe global::Com.Microsoft.Identity.Common.Internal.Cache.CacheRecord.CacheRecordBuilder MRefreshToken(global::Com.Microsoft.Identity.Common.Internal.Dto.RefreshTokenRecord mRefreshToken) { const string __id = "mRefreshToken.(Lcom/microsoft/identity/common/internal/dto/RefreshTokenRecord;)Lcom/microsoft/identity/common/internal/cache/CacheRecord$CacheRecordBuilder;"; try { JniArgumentValue *__args = stackalloc JniArgumentValue [1]; __args [0] = new JniArgumentValue((mRefreshToken == null) ? IntPtr.Zero : ((global::Java.Lang.Object)mRefreshToken).Handle); var __rm = _members.InstanceMethods.InvokeVirtualObjectMethod(__id, this, __args); return(global::Java.Lang.Object.GetObject <global::Com.Microsoft.Identity.Common.Internal.Cache.CacheRecord.CacheRecordBuilder> (__rm.Handle, JniHandleOwnership.TransferLocalRef)); } finally { global::System.GC.KeepAlive(mRefreshToken); } }
public static unsafe bool TryFociTokenWithGivenClientId(global::Com.Microsoft.Identity.Common.Internal.Providers.Oauth2.OAuth2TokenCache brokerOAuth2TokenCache, string clientId, string redirectUri, global::Com.Microsoft.Identity.Common.Internal.Dto.RefreshTokenRecord refreshTokenRecord, global::Com.Microsoft.Identity.Common.Internal.Dto.IAccountRecord accountRecord) { const string __id = "tryFociTokenWithGivenClientId.(Lcom/microsoft/identity/common/internal/providers/oauth2/OAuth2TokenCache;Ljava/lang/String;Ljava/lang/String;Lcom/microsoft/identity/common/internal/dto/RefreshTokenRecord;Lcom/microsoft/identity/common/internal/dto/IAccountRecord;)Z"; IntPtr native_clientId = JNIEnv.NewString(clientId); IntPtr native_redirectUri = JNIEnv.NewString(redirectUri); try { JniArgumentValue *__args = stackalloc JniArgumentValue [5]; __args [0] = new JniArgumentValue((brokerOAuth2TokenCache == null) ? IntPtr.Zero : ((global::Java.Lang.Object)brokerOAuth2TokenCache).Handle); __args [1] = new JniArgumentValue(native_clientId); __args [2] = new JniArgumentValue(native_redirectUri); __args [3] = new JniArgumentValue((refreshTokenRecord == null) ? IntPtr.Zero : ((global::Java.Lang.Object)refreshTokenRecord).Handle); __args [4] = new JniArgumentValue((accountRecord == null) ? IntPtr.Zero : ((global::Java.Lang.Object)accountRecord).Handle); var __rm = _members.StaticMethods.InvokeBooleanMethod(__id, __args); return(__rm); } finally { JNIEnv.DeleteLocalRef(native_clientId); JNIEnv.DeleteLocalRef(native_redirectUri); global::System.GC.KeepAlive(brokerOAuth2TokenCache); global::System.GC.KeepAlive(refreshTokenRecord); global::System.GC.KeepAlive(accountRecord); } }