{"action":"created","issue":{"url":"https://api.github.com/repos/AzureAD/rms-sdk-for-cpp/issues/69","labels_url":"https://api.github.com/repos/AzureAD/rms-sdk-for-cpp/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/AzureAD/rms-sdk-for-cpp/issues/69/comments","events_url":"https://api.github.com/repos/AzureAD/rms-sdk-for-cpp/issues/69/events","html_url":"https://github.com/AzureAD/rms-sdk-for-cpp/issues/69","id":98159335,"number":69,"title":"get the value of PolicyDescriptor is NULL","user":{"login":"Kammy6679","id":10860444,"avatar_url":"https://avatars.githubusercontent.com/u/10860444?v=3","gravatar_id":"","url":"https://api.github.com/users/Kammy6679","html_url":"https://github.com/Kammy6679","followers_url":"https://api.github.com/users/Kammy6679/followers","following_url":"https://api.github.com/users/Kammy6679/following{/other_user}","gists_url":"https://api.github.com/users/Kammy6679/gists{/gist_id}","starred_url":"https://api.github.com/users/Kammy6679/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kammy6679/subscriptions","organizations_url":"https://api.github.com/users/Kammy6679/orgs","repos_url":"https://api.github.com/users/Kammy6679/repos","events_url":"https://api.github.com/users/Kammy6679/events{/privacy}","received_events_url":"https://api.github.com/users/Kammy6679/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-30T12:37:18Z","updated_at":"2015-08-13T10:01:09Z","closed_at":null,"body":"1. Use the following code to encrypt the files\r\n static std::shared_ptr<UserPolicy>Create(\r\n    PolicyDescriptor        & policyDescriptor,\r\n    const std::string       & userId,\r\n    IAuthenticationCallback & authenticationCallback,\r\n    UserPolicyCreationOptions options);\r\n2. When  decrypting, whether is owner, get the value of PolicyDescriptor is NULL.\r\n![4](https://cloud.githubusercontent.com/assets/10860444/8983195/ba46d03e-36fa-11e5-8d7c-af9018851250.jpg)\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/AzureAD/rms-sdk-for-cpp/issues/comments/130598820","html_url":"https://github.com/AzureAD/rms-sdk-for-cpp/issues/69#issuecomment-130598820","issue_url":"https://api.github.com/repos/AzureAD/rms-sdk-for-cpp/issues/69","id":130598820,"user":{"login":"Kammy6679","id":10860444,"avatar_url":"https://avatars.githubusercontent.com/u/10860444?v=3","gravatar_id":"","url":"https://api.github.com/users/Kammy6679","html_url":"https://github.com/Kammy6679","followers_url":"https://api.github.com/users/Kammy6679/followers","following_url":"https://api.github.com/users/Kammy6679/following{/other_user}","gists_url":"https://api.github.com/users/Kammy6679/gists{/gist_id}","starred_url":"https://api.github.com/users/Kammy6679/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kammy6679/subscriptions","organizations_url":"https://api.github.com/users/Kammy6679/orgs","repos_url":"https://api.github.com/users/Kammy6679/repos","events_url":"https://api.github.com/users/Kammy6679/events{/privacy}","received_events_url":"https://api.github.com/users/Kammy6679/received_events","type":"User","site_admin":false},"created_at":"2015-08-13T10:01:09Z","updated_at":"2015-08-13T10:01:09Z","body":"After debugging, we found that:\r\nUse \"PolicyDescriptor\" to encrypt the files. Then \"UserPolicy->Type()\"  is \"TemplateBased\",  not \"Custom\" when decrypting the files.\r\n"}}