C# Класс Microsoft.HockeyApp.AuthManager

Class for authentication of users with hockeyapp credentials
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
_authStatus IAuthStatus
_instance AuthManager

Private Properties

Свойство Тип Описание
AuthManager Microsoft.HockeyApp.Model
AuthenticateUser void
AuthenticateUser void
AuthenticateUser void
CheckAndHandleExistingTokenAsync Task
Dialog_CloseRequested void
ExecuteSuccessRedirectOrAction void
RemoveUserTokenAsync System.Threading.Tasks.Task
RetrieveProtectedStringAsync Task
StoreStringProtectedAsync System.Threading.Tasks.Task
UpdateAuthStatusAsync System.Threading.Tasks.Task

Открытые методы

Метод Описание
RemoveUserToken ( ) : void

Removes the user token from the phone store, so on the next call to AuthenticateUser the Loginscreen is shown. Effectively this serves as a logout from your app. In most cases you want to call AuthenticateUser() immediatley after RemoveUserToken

RetrieveProtectedString ( string dataIdentifier ) : string

Retreive encrypted Data from the isolated storage

StoreStringProtected ( string dataIdentifier, string data ) : void

Store data encrypted in the isolatedStorage

Защищенные методы

Метод Описание
ShowLoginScreen ( AuthenticationMode authMode, string appSecret, string email, AuthValidationMode authValidationMode ) : void

Приватные методы

Метод Описание
AuthManager ( ) : Microsoft.HockeyApp.Model
AuthenticateUser ( AuthenticationMode authMode = AuthenticationMode.Authorize, TokenValidationPolicy tokenValidationPolicy = TokenValidationPolicy.EveryLogin, AuthValidationMode authValidationMode = AuthValidationMode.Graceful, string email = null, string appSecret = null ) : void
AuthenticateUser ( System.Windows.Navigation.NavigationService navigationService, Uri successRedirect, AuthenticationMode authMode = AuthenticationMode.Authorize, TokenValidationPolicy tokenValidationPolicy = TokenValidationPolicy.EveryLogin, AuthValidationMode authValidationMode = AuthValidationMode.Graceful, string email = null, string appSecret = null ) : void
AuthenticateUser ( Uri successRedirect, AuthenticationMode authMode = AuthenticationMode.Authorize, TokenValidationPolicy tokenValidationPolicy = TokenValidationPolicy.EveryLogin, AuthValidationMode authValidationMode = AuthValidationMode.Graceful, string email = null, string appSecret = null ) : void
CheckAndHandleExistingTokenAsync ( AuthenticationMode authMode, AuthValidationMode validationMode ) : Task
Dialog_CloseRequested ( object sender, EventArgs e ) : void
ExecuteSuccessRedirectOrAction ( ) : void
RemoveUserTokenAsync ( ) : System.Threading.Tasks.Task

Removes the user token from the phone store, so on the next call to AuthenticateUser the Loginscreen is shown. Effectively this serves as a logout from your app. In most cases you want to call AuthenticateUser() immediatley after RemoveUserToken

RetrieveProtectedStringAsync ( string dataIdentifier ) : Task

Retreive encrypted Data from the isolated storage

StoreStringProtectedAsync ( string dataIdentifier, string data ) : System.Threading.Tasks.Task

Store data encrypted in the isolatedStorage

UpdateAuthStatusAsync ( IAuthStatus newStatus ) : System.Threading.Tasks.Task

Описание методов

RemoveUserToken() публичный Метод

Removes the user token from the phone store, so on the next call to AuthenticateUser the Loginscreen is shown. Effectively this serves as a logout from your app. In most cases you want to call AuthenticateUser() immediatley after RemoveUserToken
public RemoveUserToken ( ) : void
Результат void

RetrieveProtectedString() публичный Метод

Retreive encrypted Data from the isolated storage
public RetrieveProtectedString ( string dataIdentifier ) : string
dataIdentifier string identifier for the data to read
Результат string

ShowLoginScreen() защищенный Метод

protected ShowLoginScreen ( AuthenticationMode authMode, string appSecret, string email, AuthValidationMode authValidationMode ) : void
authMode AuthenticationMode
appSecret string
email string
authValidationMode AuthValidationMode
Результат void

StoreStringProtected() публичный Метод

Store data encrypted in the isolatedStorage
public StoreStringProtected ( string dataIdentifier, string data ) : void
dataIdentifier string identifier for the data to write
data string the data to store
Результат void

Описание свойств

_authStatus защищенное свойство

protected IAuthStatus _authStatus
Результат IAuthStatus

_instance защищенное статическое свойство

protected static AuthManager,Microsoft.HockeyApp _instance
Результат AuthManager