Partager via


UserPolicy class

Represents a user policy

Signature

public class UserPolicy implements Serializable

Methods

Name Description
accessCheck
Does the user policy has the given right.
acquire
Acquire a UserPolicy object based on a serialized content policy.
create(PolicyDescriptor, ...) asynchronous
Asynchronously creates a new UserPolicy object from a policy descriptor.
create (PolicyDescriptor, ...) synchronous
Synchronously creates a new UserPolicy object from a policy descriptor.
create(TemplateDescriptor, ...) asynchronous
Asynchronously creates a new UserPolicy object from a template descriptor.
create (TemplateDescriptor, ...) synchronous
Synchronously creates a new UserPolicy object from a template descriptor.
doesUseDeprecatedAlgorithm
Does the policy use deprecated algorithms.
getContentId
Gets the content ID.
getContentValidUntil
Gets the date until which the content is valid.
getDescription
Gets the content description.
getEncryptedAppData
Gets the encrypted application data.
getIssuedTo
Gets the user to whom the policy was originally issued.
getName
Gets the policy name.
getOwner
Gets the policy owner.
getPolicyDescriptor
Gets the policy descriptor.
getReferrer
Gets the referrer information.
getSerializedContentPolicy
Gets the serialized content policy.
getSignedAppData
Gets the signed application data.
getTemplateDescriptor
Gets the template descriptor associated with the policy.
getType
Gets the type of user policy.
isAllowedAuditedExtract
Is audited extract of the policy allowed.
isIssuedToOwner
Checks if the current user is the same as the original policy owner.
isProtected
Checks if the user policy is a protected user policy.
registerForDocTracking asynchronous
Asynchronously registers this user policy with the document tracking service.
registerForDocTracking synchronous
Synchronously registers this user policy with the document tracking service.
revokeUserPolicy asynchronous
Asynchronously revokes published content.
revokeUserPolicy synchronous
Synchronously revokes published content.

Defined in

UserPolicy.java

Supported Platforms

Minimum supported OS version
Android 4.0.3 (API level 15)

Package

com.microsoft.rightsmanagement

Thread Safety

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