Share via


PolicyDescriptor class

Information associated with a user's custom policy.

Signature

public class PolicyDescriptor implements Serializable

Methods

Name Description
createPolicyDescriptorFromUserRights
Creates a new PolicyDescriptor from user rights
createPolicyDescriptorFromUserRoles
Creates a new PolicyDescriptor from user roles
getContentValidUntil
Gets the date that the content is valid until
getDescription
Gets the policy description
getEncryptedAppData
Gets the encrypted application data
getLicenseMetadata
Gets the license metadata object.
getName
Gets the policy's name
getOfflineCacheLifetimeInDays
Gets the time a user policy can be cached offline
getReferrer
Gets the optional referrer
getSignedAppData
Gets the signed application data
getUserRightsList
Gets the user's rights list
getUserRolesList
Gets the user's roles list
setContentValidUntil
Sets the date that the content is valid until
setDescription
Sets the policy description
setEncryptedAppData
Sets the encrypted application data
setLicenseMetadata
Sets the license metadata object.
setName
Sets the policy's name
setOfflineCacheLifetimeInDays
Sets the number of days the license is valid
setSignedAppData
Sets the signed application data.
setReferrer
Sets the referrer information

Defined in

PolicyDescriptor.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.