public ContainerUnauthorizedException(string message, string resourceAccount, string resourceContainer, string resourceIdentifier, IAccountIdentifier requestor, Microsoft.Cis.Services.Nephos.Common.Authorization.PermissionLevel permissionLevel, SASPermission signedPermission, Exception innerException) : base(message, innerException) { this.requestor = requestor; this.resourceAccount = resourceAccount; this.resourceContainer = resourceContainer; this.resourceIdentifier = resourceIdentifier; this.permissionLevel = permissionLevel; this.signedPermission = signedPermission; }
protected ContainerUnauthorizedException(SerializationInfo info, StreamingContext context) : base(info, context) { if (info == null) { throw new ArgumentNullException("info"); } this.requestor = (IAccountIdentifier)info.GetValue("this.requestor", typeof(IAccountIdentifier)); this.resourceAccount = info.GetString("this.resourceAccount"); this.resourceContainer = info.GetString("this.resourceContainer"); this.resourceIdentifier = info.GetString("this.resourceIdentifier"); this.permissionLevel = (Microsoft.Cis.Services.Nephos.Common.Authorization.PermissionLevel)info.GetValue("this.permissionLevel", typeof(Microsoft.Cis.Services.Nephos.Common.Authorization.PermissionLevel)); this.signedPermission = (SASPermission)info.GetValue("this.signedPermission", typeof(SASPermission)); }
public ContainerUnauthorizedException(string message, string resourceAccount, string resourceContainer, string resourceIdentifier, IAccountIdentifier requestor, Microsoft.Cis.Services.Nephos.Common.Authorization.PermissionLevel permissionLevel, Exception innerException) : this(message, resourceAccount, resourceContainer, resourceIdentifier, requestor, permissionLevel, SASPermission.None, innerException) { }
public ContainerUnauthorizedException(string resourceAccount, string resourceContainer, string resourceIdentifier, IAccountIdentifier requestor, Microsoft.Cis.Services.Nephos.Common.Authorization.PermissionLevel permissionLevel, SASPermission signedPermission, Exception innerException) : this(string.Format(CultureInfo.InvariantCulture, "{0} does not have {1} access to resource {2}", new object[] { requestor.AccountName, permissionLevel, RealServiceManager.GetResourceString(resourceAccount, resourceContainer, resourceIdentifier) }), resourceAccount, resourceContainer, resourceIdentifier, requestor, permissionLevel, signedPermission, innerException) { }
public ContainerUnauthorizedException(string resourceAccount, string resourceContainer, string resourceIdentifier, IAccountIdentifier requestor, Microsoft.Cis.Services.Nephos.Common.Authorization.PermissionLevel permissionLevel, SASPermission signedPermission) : this(resourceAccount, resourceContainer, resourceIdentifier, requestor, permissionLevel, signedPermission, null) { }
public NephosUnauthorizedAccessException(string resourceAccount, string resourceContainer, string resourceIdentifier, IAccountIdentifier requestor, Microsoft.Cis.Services.Nephos.Common.Authorization.PermissionLevel permissionLevel, AuthorizationFailureReason failureReason, Exception innerException) : this(resourceAccount, resourceContainer, resourceIdentifier, requestor, permissionLevel, SASPermission.None, failureReason, innerException) { }