SecurityKeyPKIImpl.java
1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* com.adobe.internal.pdftoolkit.core.credentials.Credentials
* com.adobe.internal.pdftoolkit.core.exceptions.PDFSecurityConfigurationException
* com.adobe.internal.pdftoolkit.core.exceptions.PDFSecurityException
* com.adobe.internal.pdftoolkit.core.securityframework.SecurityManager
* com.adobe.internal.pdftoolkit.core.securityframework.impl.SecurityKeyPKIInterface
* com.adobe.internal.pdftoolkit.core.securityframework.impl.SecurityProvidersImpl
*/
package com.adobe.internal.pdftoolkit.core.encryption;
import com.adobe.internal.pdftoolkit.core.credentials.Credentials;
import com.adobe.internal.pdftoolkit.core.encryption.StandardCipherSecurityManager;
import com.adobe.internal.pdftoolkit.core.exceptions.PDFSecurityConfigurationException;
import com.adobe.internal.pdftoolkit.core.exceptions.PDFSecurityException;
import com.adobe.internal.pdftoolkit.core.securityframework.SecurityManager;
import com.adobe.internal.pdftoolkit.core.securityframework.impl.SecurityKeyPKIInterface;
import com.adobe.internal.pdftoolkit.core.securityframework.impl.SecurityProvidersImpl;
import java.util.Map;
public class SecurityKeyPKIImpl
implements SecurityKeyPKIInterface {
private SecurityManager mSecMgr;
public SecurityKeyPKIImpl() {
}
private SecurityKeyPKIImpl(Credentials recipient, Map encryptParams, SecurityProvidersImpl providers) throws PDFSecurityConfigurationException {
this.mSecMgr = StandardCipherSecurityManager.newInstance(recipient, encryptParams, providers);
}
public SecurityKeyPKIInterface makeSecurityKey(Credentials recipient, Map encryptParams, SecurityProvidersImpl providers) throws PDFSecurityException {
return new SecurityKeyPKIImpl(recipient, encryptParams, providers);
}
public SecurityManager getSecurityManager() {
return this.mSecMgr;
}
}