public SC.Interfaces.ISecurityProvider GetSecurityProvider()
 {
     lock (locker)
     {
         if (secProvider == null)
             secProvider = new SC.Security.SecurityProvider(fullName);
         return secProvider;
     }
 }
        public void SetProvider(SC.Interfaces.IProvider provider)
        {
            if (secProvider != null || settProvider != null)
            {
                throw new InvalidOperationException("Cannot assign providers twice.");
            }

            this.settProvider = provider.GetSettingsProvider();
            this.secProvider  = provider.GetSecurityProvider();
        }
        public SC.Interfaces.ISecurityProvider GetSecurityProvider(string[] additionalOperations)
        {
            lock (locker)
            {
                if (secProvider == null)
                    throw new InvalidOperationException("Additional operations cannot be specified twice.");

                secProvider = new SC.Security.SecurityProvider(fullName, additionalOperations);
                return secProvider;
            }
        }
 public SC.Interfaces.ISecurityProvider GetSecurityProvider()
 {
     lock (locker)
     {
         if (secProvider == null)
         {
             secProvider = new SC.Security.SecurityProvider(fullName);
         }
         return(secProvider);
     }
 }
        public SC.Interfaces.ISecurityProvider GetSecurityProvider(string[] additionalOperations)
        {
            lock (locker)
            {
                if (secProvider == null)
                {
                    throw new InvalidOperationException("Additional operations cannot be specified twice.");
                }

                secProvider = new SC.Security.SecurityProvider(fullName, additionalOperations);
                return(secProvider);
            }
        }
Beispiel #6
0
 public SecureInvokeableTask(string name, SC.Interfaces.ISecurityProvider secProvider) : base(name)
 {
     this.name        = name;
     securityProvider = secProvider;
 }
 private PluginLoader(SC.Interfaces.ISecurityProvider secProvider)
 {
     this.secProvider = secProvider;
 }
        public void SetProvider(SC.Interfaces.IStandaloneProvider provider)
        {
            if (secProvider != null || settProvider != null)
                throw new InvalidOperationException("Cannot assign providers twice.");

            this.secProvider = provider.GetSecurityProvider();
            this.settProvider = provider.GetSettingsProvider();
            this.root = provider.GetRoot();
        }
 private PluginLoader(SC.Interfaces.ISecurityProvider secProvider)
 {
     this.secProvider = secProvider;
 }