Skip to content

Commit cf9ef0d

Browse files
committed
relates to #1228 - removed unusable methods.
1 parent 5cac0eb commit cf9ef0d

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

pg/src/main/java/org/bouncycastle/openpgp/operator/bc/BcSessionKeyDataDecryptorFactory.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,6 @@ public BcSessionKeyDataDecryptorFactory(PGPSessionKey sessionKey)
1919
this.sessionKey = sessionKey;
2020
}
2121

22-
public byte[] recoverSessionData(int keyAlgorithm, byte[] key, byte[] seckKeyData)
23-
throws PGPException
24-
{
25-
throw new IllegalStateException("trying to recover session data from session key!");
26-
}
27-
28-
public byte[] recoverSessionData(int keyAlgorithm, byte[][] secKeyData)
29-
throws PGPException
30-
{
31-
throw new IllegalStateException("trying to recover session data from session key!");
32-
}
33-
3422
public PGPSessionKey getSessionKey()
3523
{
3624
return sessionKey;

pg/src/main/java/org/bouncycastle/openpgp/operator/jcajce/JceSessionKeyDataDecryptorFactoryBuilder.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -64,18 +64,6 @@ public JceSessionKeyDataDecryptorFactory(OperatorHelper helper, PGPSessionKey se
6464
this.sessionKey = sessionKey;
6565
}
6666

67-
public byte[] recoverSessionData(int keyAlgorithm, byte[] key, byte[] seckKeyData)
68-
throws PGPException
69-
{
70-
throw new IllegalStateException("trying to recover session data from session key!");
71-
}
72-
73-
public byte[] recoverSessionData(int keyAlgorithm, byte[][] secKeyData)
74-
throws PGPException
75-
{
76-
throw new IllegalStateException("trying to recover session data from session key!");
77-
}
78-
7967
public PGPSessionKey getSessionKey()
8068
{
8169
return sessionKey;

0 commit comments

Comments
 (0)