Udostępnij za pośrednictwem


MSUserPolicy class

Represents a user policy.

Signature

@interface MSUserPolicy : NSSecureCodableObject

Properties

Name Description
allowAuditedExtract
Checks if the user can perform and audited extract of the policy
contentId
The unique ID associated with the protected content.
contentValidUntil
The date until which the content license is valid.
policyDescription
The description of the user policy.
doesUseDeprecatedAlgorithm
A flag that indicates whether Deprecated Algorithms, (ECB) mode, was used to protect the content for the policy.
encryptedAppData
The encrypted application specific data.
isIssuedToOwner
Is the current user the original owner?
issuedTo
The email address of the original content owner.
policyName
Name of the user policy.
owner
The email address of the current content owner.
policyDescriptor
The custom policy used to protect the content.
referrer
The referral information
serializedPolicy
The serialized policy
signedAppData
Application specific data, signed.
templateDescriptor
The template used to protect the content.
type
Policy type, template based or custom.

Methods

Name Description
[accessCheck](msuserpolicy-accesscheck-method-objc.md)
Returns a value that indicates whether the current user has the specified right.
[registerForDocTracking](msuserpolicy-registerfordoctracking-userid-authenticationcallback-completionblock-method-objc.md)
Registers the content and user with the document tracking service.
[!Note]
Document tracking is only supported for RMSO scenarios.

[revokeSerializedPolicyWithUserId](https://www.bing.com/search?q=revokeSerializedPolicyWithUserId)
Use to revoke published content.
[userPolicyWithSerializedPolicy](msuserpolicy-protectionpolicywithserializedpolicy-userid-authenticationcallback-options-completionblock-method-objc.md)
Creates a user policy based on the supplied serialized policy
[userPolicyWithTemplateDescriptor](msuserpolicy-protectionpolicywithtemplatedescriptor-userid-authenticationcallback-options-completionblock-method-objc.md)
Creates a user policy based on the supplied template descriptor
[userPolicyWithPolicyDescriptor](msuserpolicy-protectionpolicywithpolicydescriptor-userid-authenticationcallback-options-completionblock-method-objc.md)
Creates a user policy based on the supplied policy descriptor

Defined in

MSUserPolicy.h

Supported Platforms

Minimum supported OS version
iOS 7.0 and OS X 10.8

Remarks

An MSUserPolicy object defines the policy that is associated with the protected content. It can be used to examine the rights of the current user as well as to protect or unprotect content.

Thread Safety

Members of this class are not guaranteed to be thread safe.