Opc.Ua.WindowsCertificateStore.GetAccessRules C# (CSharp) Method

GetAccessRules() public method

public GetAccessRules ( string thumbprint ) : IList
thumbprint string
return IList
        public IList<ApplicationAccessRule> GetAccessRules(string thumbprint)
        {
            lock (m_lock)
            {  
	            IntPtr hStore = IntPtr.Zero;

	            // find the certificate.
	            try
                {
                    // open store.
                    hStore = OpenStore(true, false, true);

		            // get the container information.
                    CspKeyContainerInfo container = GetCspKeyContainerInfo(hStore, thumbprint, m_symbolicName, m_storeType);

                    if (container == null)
                    {
                        throw ServiceResultException.Create(
                            StatusCodes.BadUnexpectedError,
                            "Could not get CspKeyContainerInfo for certificate (does the certificate exist?).\r\nType={0}, Name={1}",
                            m_storeType,
                            m_symbolicName);
                    }

		            // get the key file.
		            FileInfo keyFile = GetKeyFileInfo(
			            container.UniqueKeyContainerName, 
			            m_storeType, 
			            m_serviceNameOrUserSid);

		            // get the access rules on the file.
		            return ApplicationAccessRule.GetAccessRules(keyFile.FullName);
	            }
	            finally
	            {
		            if (hStore != IntPtr.Zero)
                    {
                        NativeMethods.CertCloseStore(hStore, 0);
		            }
	            }
            }
        }
        

Same methods

WindowsCertificateStore::GetAccessRules ( ) : IList