@@ -10,7 +10,7 @@ import (
1010)
1111
1212// NewSession is the method through which the broker and the daemon will communicate once dbusInterface.NewSession is called.
13- func (s * Service ) NewSession (username , lang , mode string ) (sessionID , encryptionKey string , dbusErr * dbus.Error ) {
13+ func (s * Interface ) NewSession (username , lang , mode string ) (sessionID , encryptionKey string , dbusErr * dbus.Error ) {
1414 log .Debugf (context .Background (), "Creating new session (username=%s, lang=%s, mode=%s)" , username , lang , mode )
1515 sessionID , encryptionKey , err := s .broker .NewSession (username , lang , mode )
1616 if err != nil {
@@ -21,7 +21,7 @@ func (s *Service) NewSession(username, lang, mode string) (sessionID, encryption
2121}
2222
2323// GetAuthenticationModes is the method through which the broker and the daemon will communicate once dbusInterface.GetAuthenticationModes is called.
24- func (s * Service ) GetAuthenticationModes (sessionID string , supportedUILayouts []map [string ]string ) (authenticationModes []map [string ]string , dbusErr * dbus.Error ) {
24+ func (s * Interface ) GetAuthenticationModes (sessionID string , supportedUILayouts []map [string ]string ) (authenticationModes []map [string ]string , dbusErr * dbus.Error ) {
2525 log .Debugf (context .Background (), "Getting authentication modes for session %s" , sessionID )
2626 authenticationModes , err := s .broker .GetAuthenticationModes (sessionID , supportedUILayouts )
2727 if err != nil {
@@ -32,7 +32,7 @@ func (s *Service) GetAuthenticationModes(sessionID string, supportedUILayouts []
3232}
3333
3434// SelectAuthenticationMode is the method through which the broker and the daemon will communicate once dbusInterface.SelectAuthenticationMode is called.
35- func (s * Service ) SelectAuthenticationMode (sessionID , authenticationModeName string ) (uiLayoutInfo map [string ]string , dbusErr * dbus.Error ) {
35+ func (s * Interface ) SelectAuthenticationMode (sessionID , authenticationModeName string ) (uiLayoutInfo map [string ]string , dbusErr * dbus.Error ) {
3636 log .Debugf (context .Background (), "Selecting authentication mode %s for session %s" , authenticationModeName , sessionID )
3737 uiLayoutInfo , err := s .broker .SelectAuthenticationMode (sessionID , authenticationModeName )
3838 if err != nil {
@@ -43,7 +43,7 @@ func (s *Service) SelectAuthenticationMode(sessionID, authenticationModeName str
4343}
4444
4545// IsAuthenticated is the method through which the broker and the daemon will communicate once dbusInterface.IsAuthenticated is called.
46- func (s * Service ) IsAuthenticated (sessionID , authenticationData string ) (access , data string , dbusErr * dbus.Error ) {
46+ func (s * Interface ) IsAuthenticated (sessionID , authenticationData string ) (access , data string , dbusErr * dbus.Error ) {
4747 // Do *not* log authenticationData here, because it may contain the user's password in cleartext.
4848 log .Debugf (context .Background (), "Handling IsAuthenticated call for session %s" , sessionID )
4949 access , data , err := s .broker .IsAuthenticated (sessionID , authenticationData )
@@ -59,7 +59,7 @@ func (s *Service) IsAuthenticated(sessionID, authenticationData string) (access,
5959}
6060
6161// EndSession is the method through which the broker and the daemon will communicate once dbusInterface.EndSession is called.
62- func (s * Service ) EndSession (sessionID string ) (dbusErr * dbus.Error ) {
62+ func (s * Interface ) EndSession (sessionID string ) (dbusErr * dbus.Error ) {
6363 log .Debugf (context .Background (), "Ending session %s" , sessionID )
6464 err := s .broker .EndSession (sessionID )
6565 if err != nil {
@@ -69,14 +69,14 @@ func (s *Service) EndSession(sessionID string) (dbusErr *dbus.Error) {
6969}
7070
7171// CancelIsAuthenticated is the method through which the broker and the daemon will communicate once dbusInterface.CancelIsAuthenticated is called.
72- func (s * Service ) CancelIsAuthenticated (sessionID string ) (dbusErr * dbus.Error ) {
72+ func (s * Interface ) CancelIsAuthenticated (sessionID string ) (dbusErr * dbus.Error ) {
7373 log .Debugf (context .Background (), "Cancelling IsAuthenticated call for session %s" , sessionID )
7474 s .broker .CancelIsAuthenticated (sessionID )
7575 return nil
7676}
7777
7878// UserPreCheck is the method through which the broker and the daemon will communicate once dbusInterface.UserPreCheck is called.
79- func (s * Service ) UserPreCheck (username string ) (userinfo string , dbusErr * dbus.Error ) {
79+ func (s * Interface ) UserPreCheck (username string ) (userinfo string , dbusErr * dbus.Error ) {
8080 log .Debugf (context .Background (), "UserPreCheck: %s" , username )
8181 userinfo , err := s .broker .UserPreCheck (username )
8282 if err != nil {
@@ -87,7 +87,7 @@ func (s *Service) UserPreCheck(username string) (userinfo string, dbusErr *dbus.
8787}
8888
8989// DeleteUser is the method through which the broker and the daemon will communicate once dbusInterface.DeleteUser is called.
90- func (s * Service ) DeleteUser (username string ) (dbusErr * dbus.Error ) {
90+ func (s * Interface ) DeleteUser (username string ) (dbusErr * dbus.Error ) {
9191 log .Debugf (context .Background (), "DeleteUser: %s" , username )
9292 if err := s .broker .DeleteUser (username ); err != nil {
9393 return dbus .MakeFailedError (err )
0 commit comments