Ankur | cc04385 | 2015-04-14 13:10:28 -0700 | [diff] [blame] | 1 | // Copyright 2015 The Vanadium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
| 5 | package security |
| 6 | |
| 7 | import "v.io/v23/security" |
| 8 | |
| 9 | type blessingRootsState map[string][]security.BlessingPattern |
| 10 | |
| 11 | type blessingStoreState struct { |
| 12 | // PeerBlessings maps BlessingPatterns to the Blessings object that is to |
| 13 | // be shared with peers which present blessings of their own that match the |
| 14 | // pattern. |
| 15 | // |
| 16 | // All blessings bind to the same public key. |
| 17 | PeerBlessings map[security.BlessingPattern]security.WireBlessings |
| 18 | // DefaultBlessings is the default Blessings to be shared with peers for which |
| 19 | // no other information is available to select blessings. |
| 20 | DefaultBlessings security.WireBlessings |
| 21 | } |