Skip to content

Commit 8cef288

Browse files
committed
Added use of @deprecated. Relates to github #2026
1 parent c27e35d commit 8cef288

13 files changed

+22
-1
lines changed

tls/src/main/java/org/bouncycastle/tls/AbstractTlsServer.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ protected boolean allowTrustedCAIndication()
6868
}
6969

7070
/** @deprecated Use 'serverExtensions' directly, it is now never null */
71+
@Deprecated
7172
protected Hashtable checkServerExtensions()
7273
{
7374
return serverExtensions;

tls/src/main/java/org/bouncycastle/tls/Certificate.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ public void encode(TlsContext context, OutputStream messageOutput, OutputStream
245245
* @throws IOException
246246
* @deprecated Use version taking a {@link ParseOptions} argument instead.
247247
*/
248+
@Deprecated
248249
public static Certificate parse(TlsContext context, InputStream messageInput, OutputStream endPointHashOutput)
249250
throws IOException
250251
{

tls/src/main/java/org/bouncycastle/tls/ClientHello.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public int[] getCipherSuites()
4444
/**
4545
* @deprecated Use {@link #getVersion()} instead.
4646
*/
47+
@Deprecated
4748
public ProtocolVersion getClientVersion()
4849
{
4950
return version;

tls/src/main/java/org/bouncycastle/tls/NamedGroup.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,13 @@ public class NamedGroup
103103
public static final int arbitrary_explicit_char2_curves = 0xFF02;
104104

105105
/** @deprecated Experimental API (unstable): unofficial value from Open Quantum Safe project. */
106+
@Deprecated
106107
public static final int OQS_mlkem512 = 0x0247;
107108
/** @deprecated Experimental API (unstable): unofficial value from Open Quantum Safe project. */
109+
@Deprecated
108110
public static final int OQS_mlkem768 = 0x0248;
109111
/** @deprecated Experimental API (unstable): unofficial value from Open Quantum Safe project. */
112+
@Deprecated
110113
public static final int OQS_mlkem1024 = 0x0249;
111114

112115
/*

tls/src/main/java/org/bouncycastle/tls/RecordPreview.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ static RecordPreview extendRecordSize(RecordPreview a, int recordSize)
2222
}
2323

2424
/** @deprecated Use {@link #getContentLimit} instead */
25+
@Deprecated
2526
public int getApplicationDataLimit()
2627
{
2728
return contentLimit;

tls/src/main/java/org/bouncycastle/tls/SecurityParameters.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ public int[] getServerSupportedGroups()
177177
*
178178
* @deprecated Will be removed. Use constant CompressionMethod._null instead.
179179
*/
180+
@Deprecated
180181
public short getCompressionAlgorithm()
181182
{
182183
return CompressionMethod._null;
@@ -193,6 +194,7 @@ public short getMaxFragmentLength()
193194
/**
194195
* @deprecated Use {@link #getPRFAlgorithm()} instead.
195196
*/
197+
@Deprecated
196198
public int getPrfAlgorithm()
197199
{
198200
return prfAlgorithm;

tls/src/main/java/org/bouncycastle/tls/SignatureScheme.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ public static int getNamedGroup(int signatureScheme)
195195
}
196196

197197
/** @deprecated Use {@link #getCryptoHashAlgorithm(int)} instead. */
198+
@Deprecated
198199
public static int getRSAPSSCryptoHashAlgorithm(int signatureScheme)
199200
{
200201
switch (signatureScheme)

tls/src/main/java/org/bouncycastle/tls/TlsExtensionsUtils.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@ public static short getClientCertificateTypeExtensionServer(Hashtable extensions
325325
/**
326326
* @deprecated Use version without defaultValue instead
327327
*/
328+
@Deprecated
328329
public static short getClientCertificateTypeExtensionServer(Hashtable extensions, short defaultValue)
329330
throws IOException
330331
{
@@ -452,6 +453,7 @@ public static short getServerCertificateTypeExtensionServer(Hashtable extensions
452453
/**
453454
* @deprecated Use version without defaultValue instead
454455
*/
456+
@Deprecated
455457
public static short getServerCertificateTypeExtensionServer(Hashtable extensions, short defaultValue)
456458
throws IOException
457459
{

tls/src/main/java/org/bouncycastle/tls/TlsPeer.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ public interface TlsPeer
9292
* {@link TlsUtils#checkPeerSigAlgs(TlsContext, TlsCertificate[])} once a complete
9393
* CertPath has been determined (i.e. as part of chain validation).
9494
*/
95+
@Deprecated
9596
boolean shouldCheckSigAlgOfPeerCerts();
9697

9798
boolean shouldUseExtendedMasterSecret();

tls/src/main/java/org/bouncycastle/tls/TlsProtocol.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1942,6 +1942,7 @@ public boolean isHandshaking()
19421942
/**
19431943
* @deprecated Will be removed.
19441944
*/
1945+
@Deprecated
19451946
protected short processMaxFragmentLengthExtension(Hashtable clientExtensions, Hashtable serverExtensions,
19461947
short alertDescription)
19471948
throws IOException

0 commit comments

Comments
 (0)