扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
[WebService(Name="IApplicationManager", Namespace="http://CredentialsServices", Description="IApplicationManager is used to manage applications. This web service is only the definition of the interface. You cannot invoke method calls on it.")] abstract class IApplicationManagerShim : IApplicationManager{ public abstract void DeleteApplication(string application); public abstract string[] GetApplications(); public abstract void DeleteAllApplications(); } |
<%@ WebService Language="C#" CodeBehind="~/App_Code/IApplicationManagerShim.cs" Class="IApplicationManagerShim"%> |
[WebServiceBinding("IRoleManager")] interface IRoleManager{ [WebMethod(...)] void CreateRole(string application,string role); [WebMethod(...)] bool DeleteRole(string application,string role,bool throwOnPopulatedRole); [WebMethod(...)] void AddUserToRole(string application,string userName, string role); [WebMethod(...)] void DeleteAllRoles(string application,bool throwOnPopulatedRole); [WebMethod(...)] string[] GetAllRoles(string application); [WebMethod(...)] string[] GetRolesForUser(string application,string userName); [WebMethod(...)] string[] GetUsersInRole(string application, string role); [WebMethod(...)] void RemoveUserFromRole(string application,string userName, string roleName); //更多成员 } |
[WebServiceBinding("IPasswordManager")] interface IPasswordManager{ [WebMethod(...)] bool EnablePasswordReset(string application); [WebMethod(...)] bool EnablePasswordRetrieval(string application); [WebMethod(...)] string GeneratePassword(string application,int length, int numberOfNonAlphanumericCharacters); [WebMethod(...)] bool RequiresQuestionAndAnswer(string application); [WebMethod(...)] string ResetPassword(string application,string userName); [WebMethod(...)] string GetPassword(string application,string userName,string passwordAnswer); [WebMethod(...)] void ChangePassword(string application,string userName,string newPassword); //更多成员 } |
[WebServiceBinding("IUserManager")] public interface IUserManager{ [WebMethod(...)] bool Authenticate(string applicationName,string userName, string password); [WebMethod(...)] bool IsInRole(string applicationName,string userName, string role); [WebMethod(...)] string[] GetRoles(string applicationName,string userName); } |
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。
现场直击|2021世界人工智能大会
直击5G创新地带,就在2021MWC上海
5G已至 转型当时——服务提供商如何把握转型的绝佳时机
寻找自己的Flag
华为开发者大会2020(Cloud)- 科技行者