public string RestoreToken(string userId, string token) { this.InitializeSecurityToken(); try { return(_authTokenManager.Restore( userId, token)); } catch (Exception e) { throw SoapExceptionFactory.Create(e); } }
public void RemoveToken(String userId, String token) { this.InitializeSecurityToken(); try { _authTokenManager.RemoveToken( userId, token); } catch (Exception e) { throw SoapExceptionFactory.Create(e); } }
public string GenerateTemporalToken(String userId, double milliseconds, AuthTokenManager.KeyLengthEnum keyLength, AuthTokenManager.KeyLengthEnum initializationVectorLength) { this.InitializeSecurityToken(); try { return(_authTokenManager.Generate( userId, AuthTokenManager.TokenTypeEnum.Temporal, milliseconds, keyLength, initializationVectorLength)); } catch (Exception e) { throw SoapExceptionFactory.Create(e); } }
public string GenerateOneTimeToken(string userId, AuthTokenManager.KeyLengthEnum keyLength, AuthTokenManager.KeyLengthEnum initializationVectorLength) { this.InitializeSecurityToken(); try { return(_authTokenManager.Generate( userId, AuthTokenManager.TokenTypeEnum.OneTime, TimeSpan.Zero.TotalMilliseconds, keyLength, initializationVectorLength)); } catch (Exception e) { throw SoapExceptionFactory.Create(e); } }