| // Copyright 2015 The Vanadium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style |
| // license that can be found in the LICENSE file. |
| type Principal interface { |
| const PrincipalHandleByteSize = sha512.Size |
| type KeyManager interface { |
| NewPrincipal(inMemory bool) (handle [PrincipalHandleByteSize]byte, err error) |
| ServePrincipal(handle [PrincipalHandleByteSize]byte, socketPath string) error |
| StopServing(handle [PrincipalHandleByteSize]byte) error |
| DeletePrincipal(handle [PrincipalHandleByteSize]byte) error |