(conf map[string]string)
| 28 | } |
| 29 | |
| 30 | func NewTokenFromConfig(conf map[string]string) (*Token, error) { |
| 31 | base, err := newCredentialBaseFromData(conf) |
| 32 | if err != nil { |
| 33 | return nil, err |
| 34 | } |
| 35 | |
| 36 | return &Token{ |
| 37 | credentialBase: base, |
| 38 | Value: conf[keyringKeyTokenValue], |
| 39 | }, nil |
| 40 | } |
| 41 | |
| 42 | func (t *Token) ID() entity.Id { |
| 43 | h := sha256.New() |
no test coverage detected