DecryptedStatePBSH.java 1.86 KB
/*
 * Decompiled with CFR 0_118.
 * 
 * Could not load the following classes:
 *  com.adobe.internal.pdftoolkit.core.cos.CosDocument
 *  com.adobe.internal.pdftoolkit.core.exceptions.PDFSecurityConfigurationException
 *  com.adobe.internal.pdftoolkit.core.securityframework.DecryptedState
 *  com.adobe.internal.pdftoolkit.core.securityframework.SecurityManager
 */
package com.adobe.internal.pdftoolkit.core.encryption;

import com.adobe.internal.pdftoolkit.core.cos.CosDocument;
import com.adobe.internal.pdftoolkit.core.encryption.StandardCipherSecurityManager;
import com.adobe.internal.pdftoolkit.core.exceptions.PDFSecurityConfigurationException;
import com.adobe.internal.pdftoolkit.core.securityframework.DecryptedState;
import com.adobe.internal.pdftoolkit.core.securityframework.SecurityManager;

public class DecryptedStatePBSH
implements DecryptedState {
    private static final long serialVersionUID = -7117026973528299629L;
    private byte[] encryptKey;
    private Integer perms;

    public byte[] getEncryptKey() {
        return this.encryptKey;
    }

    public void setEncryptKey(byte[] encryptKey) {
        this.encryptKey = encryptKey;
    }

    public void setPerms(Integer mPerms) {
        this.perms = mPerms;
    }

    public Integer getPerms() {
        return this.perms;
    }

    public SecurityManager getSecurityManager(CosDocument cosDocument) throws PDFSecurityConfigurationException {
        byte[] passwordb = null;
        return StandardCipherSecurityManager.newInstance(passwordb);
    }

    public byte[] getEncryptKey(String cryptFilter) {
        throw new IllegalStateException("Encrypt key is not dependent on crypt filter for password algorithms.");
    }

    public void setEncryptKey(String cryptFilter, byte[] encryptKey) {
        throw new IllegalStateException("Encrypt key is not dependent on crypt filter for password algorithms.");
    }
}