コード例 #1
0
        public RmsPropertyParser(byte[] fileLicense, SafeInformationProtectionKeyHandle keyHandle)
        {
            FileLicense = fileLicense;
            KeyHandle   = keyHandle;

            DocumentProperties = new RmsDocumentProperties();
            DocumentProperties.ConnectionInfo  = getConnectionInfo();
            DocumentProperties.ContentId       = getSimpleProperty(LicensePropertyType.ContentId);
            DocumentProperties.Descriptor      = getDescriptor();
            DocumentProperties.IntervalTime    = getIntervalTime();
            DocumentProperties.Owner           = getSimpleProperty(LicensePropertyType.Owner);
            DocumentProperties.ReferralInfoUrl = getSimpleProperty(LicensePropertyType.ReferralInfoUrl);
            DocumentProperties.UserRightsList  = getRightsList();
            DocumentProperties.ValidityTime    = getValidityTime();
        }
コード例 #2
0
        public RmsPropertyParser(byte[] fileLicense, SafeInformationProtectionKeyHandle keyHandle)
        {
            FileLicense = fileLicense;
            KeyHandle = keyHandle;

            DocumentProperties = new RmsDocumentProperties();
            DocumentProperties.ConnectionInfo = getConnectionInfo();
            DocumentProperties.ContentId = getSimpleProperty(LicensePropertyType.ContentId);
            DocumentProperties.Descriptor = getDescriptor();
            DocumentProperties.IntervalTime = getIntervalTime();
            DocumentProperties.Owner = getSimpleProperty(LicensePropertyType.Owner);
            DocumentProperties.ReferralInfoUrl = getSimpleProperty(LicensePropertyType.ReferralInfoUrl);
            DocumentProperties.UserRightsList = getRightsList();
            DocumentProperties.ValidityTime = getValidityTime();
        }