github.com/cloud-green/juju@v0.0.0-20151002100041-a00291338d3d/apiserver/authentication/interfaces.go (about)

     1  // Copyright 2014 Canonical Ltd. All rights reserved.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package authentication
     5  
     6  import (
     7  	"github.com/juju/juju/state"
     8  )
     9  
    10  // EntityAuthenticator is the interface all entity authenticators need to implement
    11  // to authenticate juju entities.
    12  type EntityAuthenticator interface {
    13  	// Authenticate authenticates the given entity
    14  	Authenticate(entity state.Entity, password, nonce string) error
    15  }