commit | 89cfb875d552fda0889e5d9253618bb7be88324a | [log] [tgz] |
---|---|---|
author | Asim Shankar <ashankar@google.com> | Wed Oct 14 13:39:12 2015 -0700 |
committer | Asim Shankar <ashankar@google.com> | Wed Oct 14 13:39:12 2015 -0700 |
tree | f8272f6c534f80756492ec049901665758309b8a | |
parent | 33bcb5cb21d7ebf8cb99bfbb545647a3cdb8b566 [diff] |
Counterpart to https://vanadium-review.googlesource.com/16648 MultiPart: 6/7 Change-Id: I82165424caf8449bcedb1cc94c915f3652de69f8
diff --git a/src/main/java/io/v/baku/sample/travel/TravelService.java b/src/main/java/io/v/baku/sample/travel/TravelService.java index 097247e..dd3f106 100644 --- a/src/main/java/io/v/baku/sample/travel/TravelService.java +++ b/src/main/java/io/v/baku/sample/travel/TravelService.java
@@ -21,6 +21,7 @@ import io.v.v23.security.Blessings; import io.v.v23.security.VCertificate; import io.v.v23.security.VPrincipal; +import io.v.v23.security.VSecurity; import io.v.v23.verror.VException; import io.v.v23.vom.VomUtil; @@ -91,7 +92,7 @@ principal.blessingStore().set(blessings, new BlessingPattern("...")); // Trust these blessings and all the "parent" blessings. - principal.addToRoots(blessings); + VSecurity.addToRoots(principal, blessings); // Our security environment is now set-up. Let's find a home in the // namespace for our service.