Imported Upstream version 3.6.0

Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
This commit is contained in:
Jo Shields
2014-08-13 10:39:27 +01:00
commit a575963da9
50588 changed files with 8155799 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// Copyright (c) 2008 Novell, Inc. (http://www.novell.com)
//
// Authors:
// Chris Toshok (toshok@ximian.com)
//
namespace System.Security.RightsManagement {
public enum AuthenticationType {
Windows,
Passport,
WindowsPassport,
Internal
}
}

View File

@@ -0,0 +1,61 @@
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// Copyright (c) 2007 Novell, Inc. (http://www.novell.com)
//
// Authors:
// Chris Toshok (toshok@ximian.com)
//
using System;
using System.Security;
namespace System.Security.RightsManagement {
[SecurityCritical (SecurityCriticalScope.Everything)]
public class ContentGrant
{
public ContentGrant (ContentUser user, ContentRight right)
{
throw new NotImplementedException ();
}
public ContentGrant (ContentUser user, ContentRight right, DateTime validFrom, DateTime validUntil)
{
throw new NotImplementedException ();
}
public ContentRight Right {
get { throw new NotImplementedException (); }
}
public ContentUser User {
get { throw new NotImplementedException (); }
}
public DateTime ValidFrom {
get { throw new NotImplementedException (); }
}
public DateTime ValidUntil {
get { throw new NotImplementedException (); }
}
}
}

View File

@@ -0,0 +1,44 @@
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// Copyright (c) 2008 Novell, Inc. (http://www.novell.com)
//
// Authors:
// Chris Toshok (toshok@ximian.com)
//
namespace System.Security.RightsManagement {
public enum ContentRight {
View,
Edit,
Print,
Extract,
ObjectModel,
Owner,
ViewRightsData,
Forward,
Reply,
ReplyAll,
Sign,
DocumentEdit,
Export
}
}

View File

@@ -0,0 +1,71 @@
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// Copyright (c) 2007 Novell, Inc. (http://www.novell.com)
//
// Authors:
// Chris Toshok (toshok@ximian.com)
//
using System;
using System.Security;
namespace System.Security.RightsManagement {
[SecurityCritical (SecurityCriticalScope.Everything)]
public class ContentUser
{
public ContentUser (string name, AuthenticationType authenticationType)
{
throw new NotImplementedException ();
}
public static ContentUser AnyoneUser {
get { throw new NotImplementedException (); }
}
public AuthenticationType AuthenticationType {
get { throw new NotImplementedException (); }
}
public string Name {
get { throw new NotImplementedException (); }
}
public static ContentUser OwnerUser {
get { throw new NotImplementedException (); }
}
public override bool Equals (object obj)
{
throw new NotImplementedException ();
}
public override int GetHashCode ()
{
throw new NotImplementedException ();
}
public bool IsAuthenticated ()
{
throw new NotImplementedException ();
}
}
}

View File

@@ -0,0 +1,84 @@
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// Copyright (c) 2007 Novell, Inc. (http://www.novell.com)
//
// Authors:
// Chris Toshok (toshok@ximian.com)
//
using System;
using System.Security;
using System.Collections.ObjectModel;
namespace System.Security.RightsManagement {
[SecurityCritical (SecurityCriticalScope.Everything)]
public class CryptoProvider : IDisposable
{
internal CryptoProvider ()
{
}
~CryptoProvider ()
{
}
public int BlockSize {
get { throw new NotImplementedException (); }
}
public ReadOnlyCollection<ContentGrant> BoundGrants {
get { throw new NotImplementedException (); }
}
public bool CanDecrypt {
get { throw new NotImplementedException (); }
}
public bool CanEncrypt {
get { throw new NotImplementedException (); }
}
public bool CanMergeBlocks {
get { throw new NotImplementedException (); }
}
public byte[] Decrypt (byte[] cryptoText)
{
throw new NotImplementedException ();
}
public byte[] Encrypt (byte[] clearText)
{
throw new NotImplementedException ();
}
protected virtual void Dispose (bool disposing)
{
throw new NotImplementedException ();
}
public void Dispose ()
{
throw new NotImplementedException ();
}
}
}

View File

@@ -0,0 +1,57 @@
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// Copyright (c) 2007 Novell, Inc. (http://www.novell.com)
//
// Authors:
// Chris Toshok (toshok@ximian.com)
//
using System;
using System.Security;
namespace System.Security.RightsManagement {
[SecurityCritical (SecurityCriticalScope.Everything)]
public class LocalizedNameDescriptionPair
{
public LocalizedNameDescriptionPair (string name, string description)
{
throw new NotImplementedException ();
}
public string Name {
get { throw new NotImplementedException (); }
}
public string Description {
get { throw new NotImplementedException (); }
}
public override bool Equals (object obj)
{
throw new NotImplementedException ();
}
public override int GetHashCode ()
{
throw new NotImplementedException ();
}
}
}

View File

@@ -0,0 +1,77 @@
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// Copyright (c) 2007 Novell, Inc. (http://www.novell.com)
//
// Authors:
// Chris Toshok (toshok@ximian.com)
//
using System;
using System.Security;
namespace System.Security.RightsManagement {
[SecurityCritical (SecurityCriticalScope.Everything)]
public class PublishLicense
{
public PublishLicense (string signedPublishLicense)
{
throw new NotImplementedException ();
}
public Guid ContentId {
get { throw new NotImplementedException (); }
}
public string ReferralInfoName {
get { throw new NotImplementedException (); }
}
public Uri ReferralInfoUri {
get { throw new NotImplementedException (); }
}
public Uri UseLicenseAcquisitionUrl {
get { throw new NotImplementedException (); }
}
public UseLicense AcquireUseLicense (SecureEnvironment secureEnvironment)
{
throw new NotImplementedException ();
}
public UseLicense AcquireUseLicenseNoUI (SecureEnvironment secureEnvironment)
{
throw new NotImplementedException ();
}
public UnsignedPublishLicense DecryptUnsignedPublishLicense (CryptoProvider cryptoProvider)
{
throw new NotImplementedException ();
}
public override string ToString ()
{
throw new NotImplementedException ();
}
}
}

View File

@@ -0,0 +1,86 @@
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// Copyright (c) 2007 Novell, Inc. (http://www.novell.com)
//
// Authors:
// Chris Toshok (toshok@ximian.com)
//
using System;
using System.Runtime.Serialization;
using System.Security;
namespace System.Security.RightsManagement {
[Serializable]
public class RightsManagementException : Exception
{
public RightsManagementException ()
{
throw new NotImplementedException ();
}
public RightsManagementException (RightsManagementFailureCode failureCode)
{
throw new NotImplementedException ();
}
public RightsManagementException (string message)
{
throw new NotImplementedException ();
}
public RightsManagementException (RightsManagementFailureCode failureCode, Exception innerException)
{
throw new NotImplementedException ();
}
public RightsManagementException (RightsManagementFailureCode failureCode, string message)
{
throw new NotImplementedException ();
}
public RightsManagementException (string message, Exception innerException)
{
throw new NotImplementedException ();
}
public RightsManagementException (RightsManagementFailureCode failureCode, string message, Exception innerException)
{
throw new NotImplementedException ();
}
protected RightsManagementException (SerializationInfo info, StreamingContext context)
{
throw new NotImplementedException ();
}
public RightsManagementFailureCode FailureCode {
get { throw new NotImplementedException (); }
}
[SecurityCritical]
public override void GetObjectData (SerializationInfo info, StreamingContext context)
{
throw new NotImplementedException ();
}
}
}

View File

@@ -0,0 +1,139 @@
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// Copyright (c) 2007 Novell, Inc. (http://www.novell.com)
//
// Authors:
// Chris Toshok (toshok@ximian.com)
//
using System;
namespace System.Security.RightsManagement {
public enum RightsManagementFailureCode
{
ManifestPolicyViolation = -2147183860,
InvalidLicense = -2147168512,
InfoNotInLicense,
InvalidLicenseSignature,
EncryptionNotPermitted = -2147168508,
RightNotGranted,
InvalidVersion,
InvalidEncodingType,
InvalidNumericalValue,
InvalidAlgorithmType,
EnvironmentNotLoaded,
EnvironmentCannotLoad,
TooManyLoadedEnvironments,
IncompatibleObjects = -2147168498,
LibraryFail,
EnablingPrincipalFailure,
InfoNotPresent,
BadGetInfoQuery,
KeyTypeUnsupported,
CryptoOperationUnsupported,
ClockRollbackDetected,
QueryReportsNoResults,
UnexpectedException,
BindValidityTimeViolated,
BrokenCertChain,
BindPolicyViolation = -2147168485,
BindRevokedLicense,
BindRevokedIssuer,
BindRevokedPrincipal,
BindRevokedResource,
BindRevokedModule,
BindContentNotInEndUseLicense,
BindAccessPrincipalNotEnabling,
BindAccessUnsatisfied,
BindIndicatedPrincipalMissing,
BindMachineNotFoundInGroupIdentity,
LibraryUnsupportedPlugIn,
BindRevocationListStale,
BindNoApplicableRevocationList,
InvalidHandle = -2147168468,
BindIntervalTimeViolated = -2147168465,
BindNoSatisfiedRightsGroup,
BindSpecifiedWorkMissing,
NoMoreData = -2147168461,
LicenseAcquisitionFailed,
IdMismatch,
TooManyCertificates,
NoDistributionPointUrlFound,
AlreadyInProgress,
GroupIdentityNotSet,
RecordNotFound,
NoConnect,
NoLicense,
NeedsMachineActivation,
NeedsGroupIdentityActivation,
ActivationFailed = -2147168448,
Aborted,
OutOfQuota,
AuthenticationFailed,
ServerError,
InstallationFailed,
HidCorrupted,
InvalidServerResponse,
ServiceNotFound,
UseDefault,
ServerNotFound,
InvalidEmail,
ValidityTimeViolation,
OutdatedModule,
NotSet,
MetadataNotSet,
RevocationInfoNotSet,
InvalidTimeInfo,
RightNotSet,
LicenseBindingToWindowsIdentityFailed,
InvalidIssuanceLicenseTemplate,
InvalidKeyLength,
ExpiredOfficialIssuanceLicenseTemplate = -2147168425,
InvalidClientLicensorCertificate,
HidInvalid,
EmailNotVerified,
ServiceMoved,
ServiceGone,
AdEntryNotFound,
NotAChain,
RequestDenied,
DebuggerDetected,
InvalidLockboxType = -2147168400,
InvalidLockboxPath,
InvalidRegistryPath,
NoAesCryptoProvider,
GlobalOptionAlreadySet,
OwnerLicenseNotFound,
Success = 0
}
}

View File

@@ -0,0 +1,84 @@
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// Copyright (c) 2007 Novell, Inc. (http://www.novell.com)
//
// Authors:
// Chris Toshok (toshok@ximian.com)
//
using System;
using System.Collections.ObjectModel;
using System.Security;
namespace System.Security.RightsManagement {
[SecurityCritical (SecurityCriticalScope.Everything)]
public class SecureEnvironment : IDisposable
{
internal SecureEnvironment ()
{
throw new NotImplementedException ();
}
public string ApplicationManifest {
get { throw new NotImplementedException (); }
}
public ContentUser User {
get { throw new NotImplementedException (); }
}
public static SecureEnvironment Create (string applicationManifest, ContentUser user)
{
throw new NotImplementedException ();
}
public static SecureEnvironment Create (string applicationManifest, AuthenticationType authentication, UserActivationMode userActivationMode)
{
throw new NotImplementedException ();
}
public void Dispose ()
{
throw new NotImplementedException ();
}
protected virtual void Dispose (bool disposing)
{
throw new NotImplementedException ();
}
public static ReadOnlyCollection<ContentUser> GetActivatedUsers ()
{
throw new NotImplementedException ();
}
public static bool IsUserActivated (ContentUser user)
{
throw new NotImplementedException ();
}
public static void RemoveActivatedUser (ContentUser user)
{
throw new NotImplementedException ();
}
}
}

View File

@@ -0,0 +1,84 @@
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// Copyright (c) 2007 Novell, Inc. (http://www.novell.com)
//
// Authors:
// Chris Toshok (toshok@ximian.com)
//
using System;
using System.Collections.Generic;
using System.Security;
namespace System.Security.RightsManagement {
[SecurityCritical (SecurityCriticalScope.Everything)]
public class UnsignedPublishLicense
{
public UnsignedPublishLicense ()
{
throw new NotImplementedException ();
}
public UnsignedPublishLicense (string publishLicenseTemplate)
{
throw new NotImplementedException ();
}
public Guid ContentId {
get { throw new NotImplementedException (); }
set { throw new NotImplementedException (); }
}
public ICollection<ContentGrant> Grants {
get { throw new NotImplementedException (); }
}
public IDictionary<int, LocalizedNameDescriptionPair> LocalizedNameDescriptionDictionary {
get { throw new NotImplementedException (); }
}
public ContentUser Owner {
get { throw new NotImplementedException (); }
set { throw new NotImplementedException (); }
}
public string ReferralInfoName {
get { throw new NotImplementedException (); }
set { throw new NotImplementedException (); }
}
public Uri ReferralInfoUri {
get { throw new NotImplementedException (); }
set { throw new NotImplementedException (); }
}
public PublishLicense Sign (SecureEnvironment secureEnvironment, out UseLicense authorUseLicense)
{
throw new NotImplementedException ();
}
public override string ToString ()
{
throw new NotImplementedException ();
}
}
}

View File

@@ -0,0 +1,72 @@
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// Copyright (c) 2007 Novell, Inc. (http://www.novell.com)
//
// Authors:
// Chris Toshok (toshok@ximian.com)
//
using System;
using System.Collections.Generic;
using System.Security;
namespace System.Security.RightsManagement {
[SecurityCritical (SecurityCriticalScope.Everything)]
public class UseLicense
{
public UseLicense (string useLicense)
{
throw new NotImplementedException ();
}
public IDictionary<string, string> ApplicationData {
get { throw new NotImplementedException (); }
}
public Guid ContentId {
get { throw new NotImplementedException (); }
}
public ContentUser Owner {
get { throw new NotImplementedException (); }
}
public CryptoProvider Bind (SecureEnvironment secureEnvironment)
{
throw new NotImplementedException ();
}
public override bool Equals (object x)
{
throw new NotImplementedException ();
}
public override int GetHashCode ()
{
throw new NotImplementedException ();
}
public override string ToString ()
{
throw new NotImplementedException ();
}
}
}

View File

@@ -0,0 +1,33 @@
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// Copyright (c) 2008 Novell, Inc. (http://www.novell.com)
//
// Authors:
// Chris Toshok (toshok@ximian.com)
//
namespace System.Security.RightsManagement {
public enum UserActivationMode {
Permanent,
Temporary
}
}