I don't understand why I can't save AppIdentityCredential with AppEngineDataStoreFactory
AppEngineDataStoreFactory newFactory = new AppEngineDataStoreFactory();
AppIdentityCredential credential = new AppIdentityCredential.Builder(SCOPES).build()
//line with error
if (newFactory.getDataStore(StoredCredential.DEFAULT_DATA_STORE_ID)
.set(userId, new StoredCredential(credential))) {
return credential;
}
return null;
AppIdentityCredential is not serializable and StoredCredential accept only Credential object... What's the logic????
Cédric