| OLD | NEW |
| 1 // Copyright 2016 The LUCI Authors. All rights reserved. | 1 // Copyright 2016 The LUCI Authors. All rights reserved. |
| 2 // Use of this source code is governed under the Apache License, Version 2.0 | 2 // Use of this source code is governed under the Apache License, Version 2.0 |
| 3 // that can be found in the LICENSE file. | 3 // that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // Package tokenminter implements TokenMinter API. | 5 // Package tokenminter implements TokenMinter API. |
| 6 // | 6 // |
| 7 // This is main public API of The Token Server. | 7 // This is main public API of The Token Server. |
| 8 package tokenminter | 8 package tokenminter |
| 9 | 9 |
| 10 import ( | 10 import ( |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 // NewServer returns prod TokenMinterServer implementation. | 29 // NewServer returns prod TokenMinterServer implementation. |
| 30 // | 30 // |
| 31 // It does all authorization checks inside. | 31 // It does all authorization checks inside. |
| 32 func NewServer() minter.TokenMinterServer { | 32 func NewServer() minter.TokenMinterServer { |
| 33 return &serverImpl{ | 33 return &serverImpl{ |
| 34 MintMachineTokenRPC: machinetoken.MintMachineTokenRPC{ | 34 MintMachineTokenRPC: machinetoken.MintMachineTokenRPC{ |
| 35 Signer: gaesigner.Signer{}, | 35 Signer: gaesigner.Signer{}, |
| 36 CheckCertificate: certchecker.CheckCertificate, | 36 CheckCertificate: certchecker.CheckCertificate, |
| 37 }, | 37 }, |
| 38 MintDelegationTokenRPC: delegation.MintDelegationTokenRPC{ | 38 MintDelegationTokenRPC: delegation.MintDelegationTokenRPC{ |
| 39 » » » Signer: gaesigner.Signer{}, | 39 » » » Signer: gaesigner.Signer{}, |
| 40 » » » ConfigLoader: delegation.DelegationConfigLoader(), |
| 40 }, | 41 }, |
| 41 } | 42 } |
| 42 } | 43 } |
| OLD | NEW |