DESCRIPTION

Improve error handling when using SecureStore

- if reading credentials fails remove the failing credentials from
secure store, otherwise the same error will occur again next time when
trying again to get the same credentials from a corrupted entry stored
in secure store
- improve error messages logged when a secure store operation fails
- add SecureStoreUtils.clearCredentials() to simplify error handling

Bug: 495539
Change-Id: Ie6e8712b4a8eb936bfe874c2f01ce081305ba156
Signed-off-by: Douglas Trujillo xxx@xxx.xxx

COMMENTS

author: Brenden Conley
date: 2016-09-07 11:38:02.000000000

Patch Set 2:

Build Started https://hudson.eclipse.org/egit/job/egit.gerrit/9040/

-------------------------------------
author: Brenden Conley
date: 2016-09-07 12:38:34.000000000

Patch Set 2: Verified-1

Build Failed 

https://hudson.eclipse.org/egit/job/egit.gerrit/9040/ : FAILURE

-------------------------------------
author: Brenden Conley
date: 2016-09-07 12:38:54.000000000

Patch Set 2: -Verified

Build Started https://hudson.eclipse.org/egit/job/egit.gerrit/9041/

-------------------------------------
author: Brenden Conley
date: 2016-09-07 13:24:25.000000000

Patch Set 2: Verified-1

Build Failed 

https://hudson.eclipse.org/egit/job/egit.gerrit/9041/ : FAILURE

-------------------------------------
author: Brenden Conley
date: 2016-09-07 13:25:09.000000000

Patch Set 2: -Verified

Build Started https://hudson.eclipse.org/egit/job/egit.gerrit/9042/

-------------------------------------
author: Brenden Conley
date: 2016-09-07 13:49:52.000000000

Patch Set 2: Verified+1

Build Successful 

https://hudson.eclipse.org/egit/job/egit.gerrit/9042/ : SUCCESS

-------------------------------------
author: Douglas Trujillo
date: 2016-10-20 22:41:21.000000000

Patch Set 3: Patch Set 2 was rebased

-------------------------------------
author: Gerrit Johnathan Pham
date: 2016-12-09 10:30:40.000000000

Change has been successfully merged into the git repository by Douglas Trujillo

-------------------------------------
