C# Class Microsoft.HockeyApp.AuthManager

Class for authentication of users with hockeyapp credentials
Afficher le fichier Open project: bitstadium/HockeySDK-Windows

Protected Properties

Свойство Type Description
_authStatus IAuthStatus
_instance AuthManager

Private Properties

Свойство Type Description
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

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
ShowLoginScreen ( AuthenticationMode authMode, string appSecret, string email, AuthValidationMode authValidationMode ) : void

Private Methods

Méthode Description
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

Method Details

RemoveUserToken() public méthode

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
Résultat void

RetrieveProtectedString() public méthode

Retreive encrypted Data from the isolated storage
public RetrieveProtectedString ( string dataIdentifier ) : string
dataIdentifier string identifier for the data to read
Résultat string

ShowLoginScreen() protected méthode

protected ShowLoginScreen ( AuthenticationMode authMode, string appSecret, string email, AuthValidationMode authValidationMode ) : void
authMode AuthenticationMode
appSecret string
email string
authValidationMode AuthValidationMode
Résultat void

StoreStringProtected() public méthode

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
Résultat void

Property Details

_authStatus protected_oe property

protected IAuthStatus _authStatus
Résultat IAuthStatus

_instance protected_oe static_oe property

protected static AuthManager,Microsoft.HockeyApp _instance
Résultat AuthManager