Code example for Signature

0
         
        WaveRecipeAuthorization auth = new WaveRecipeAuthorization(recipeOne);
        Date now = new Date();
        ComponentName clientName = new ComponentName("edu.berkeley.waveapps.fitness", ".FitnessActivity");
        auth.setRecipeClientName(clientName);
        auth.setRecipeClientSignatures(new Signature[] { new Signature("theatihceadocdttheaotnhai") });
        auth.setAuthorizedDate(now);
        auth.setModifiedDate(now);
         
        // test the save 
        assertTrue(databaseHelper.insertOrUpdateAuthorization(auth));
         
        // We need a WaveService instance to test the load, which doesn't suit 
        // this test, so we just check that the appropriate table now contains 
        // a row 
        assertEquals(1, rowCountForTable(databaseHelper.RECIPE_AUTH_TABLE_NAME));
         
        // test saving a revoked auth 
        Date later = new Date();
        auth.setRevokedDate(later);
Contextual code suggestions in your IDE  Get Codota for Java