File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
pg/src/main/java/org/bouncycastle/openpgp/api Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 24
24
import org .bouncycastle .openpgp .PGPUserAttributeSubpacketVector ;
25
25
import org .bouncycastle .openpgp .PGPUtil ;
26
26
import org .bouncycastle .openpgp .api .util .UTCUtil ;
27
- import org .bouncycastle .openpgp .bc .BcPGPObjectFactory ;
28
27
import org .bouncycastle .openpgp .operator .PGPContentVerifierBuilderProvider ;
29
28
import org .bouncycastle .util .Iterable ;
30
29
import org .bouncycastle .util .encoders .Hex ;
@@ -131,7 +130,7 @@ public static OpenPGPCertificate fromBytes(
131
130
ByteArrayInputStream bIn = new ByteArrayInputStream (bytes );
132
131
InputStream decoderStream = PGPUtil .getDecoderStream (bIn );
133
132
BCPGInputStream pIn = BCPGInputStream .wrap (decoderStream );
134
- PGPObjectFactory objectFactory = new BcPGPObjectFactory (pIn );
133
+ PGPObjectFactory objectFactory = implementation . pgpObjectFactory (pIn );
135
134
PGPPublicKeyRing keyRing = (PGPPublicKeyRing ) objectFactory .nextObject ();
136
135
return new OpenPGPCertificate (keyRing , implementation );
137
136
}
Original file line number Diff line number Diff line change 12
12
import org .bouncycastle .openpgp .PGPSecretKey ;
13
13
import org .bouncycastle .openpgp .PGPSecretKeyRing ;
14
14
import org .bouncycastle .openpgp .PGPUtil ;
15
- import org .bouncycastle .openpgp .bc .BcPGPObjectFactory ;
16
15
import org .bouncycastle .openpgp .operator .PBESecretKeyDecryptor ;
17
16
import org .bouncycastle .openpgp .operator .PBESecretKeyDecryptorBuilderProvider ;
18
17
import org .bouncycastle .openpgp .operator .PGPContentVerifierBuilderProvider ;
@@ -81,7 +80,7 @@ public static OpenPGPKey fromBytes(
81
80
ByteArrayInputStream bIn = new ByteArrayInputStream (bytes );
82
81
InputStream decoderStream = PGPUtil .getDecoderStream (bIn );
83
82
BCPGInputStream pIn = BCPGInputStream .wrap (decoderStream );
84
- PGPObjectFactory objectFactory = new BcPGPObjectFactory (pIn );
83
+ PGPObjectFactory objectFactory = implementation . pgpObjectFactory (pIn );
85
84
PGPSecretKeyRing keyRing = (PGPSecretKeyRing ) objectFactory .nextObject ();
86
85
return new OpenPGPKey (keyRing , implementation );
87
86
}
You can’t perform that action at this time.
0 commit comments