|
7 | 7 | import org.bouncycastle.asn1.ASN1Encoding; |
8 | 8 | import org.bouncycastle.asn1.ASN1ObjectIdentifier; |
9 | 9 | import org.bouncycastle.asn1.ASN1Primitive; |
10 | | -import org.bouncycastle.asn1.x509.AlgorithmIdentifier; |
11 | 10 | import org.bouncycastle.asn1.x509.Certificate; |
12 | 11 | import org.bouncycastle.asn1.x509.Extension; |
13 | 12 | import org.bouncycastle.asn1.x509.Extensions; |
14 | 13 | import org.bouncycastle.asn1.x509.KeyUsage; |
15 | | -import org.bouncycastle.asn1.x509.SubjectPublicKeyInfo; |
16 | | -import org.bouncycastle.crypto.Digest; |
17 | | -import org.bouncycastle.crypto.Signer; |
18 | | -import org.bouncycastle.crypto.engines.RSAEngine; |
19 | | -import org.bouncycastle.crypto.params.AsymmetricKeyParameter; |
20 | | -import org.bouncycastle.crypto.params.DHPublicKeyParameters; |
21 | | -import org.bouncycastle.crypto.params.DSAPublicKeyParameters; |
22 | | -import org.bouncycastle.crypto.params.ECPublicKeyParameters; |
23 | | -import org.bouncycastle.crypto.params.Ed25519PublicKeyParameters; |
24 | | -import org.bouncycastle.crypto.params.Ed448PublicKeyParameters; |
25 | | -import org.bouncycastle.crypto.params.RSAKeyParameters; |
26 | | -import org.bouncycastle.crypto.signers.DSADigestSigner; |
27 | | -import org.bouncycastle.crypto.signers.ECDSASigner; |
28 | | -import org.bouncycastle.crypto.signers.Ed25519Signer; |
29 | | -import org.bouncycastle.crypto.signers.Ed448Signer; |
30 | | -import org.bouncycastle.crypto.signers.PSSSigner; |
31 | | -import org.bouncycastle.crypto.signers.RSADigestSigner; |
32 | | -import org.bouncycastle.crypto.util.PublicKeyFactory; |
33 | 14 | import org.bouncycastle.tls.AlertDescription; |
34 | | -import org.bouncycastle.tls.HashAlgorithm; |
35 | | -import org.bouncycastle.tls.SignatureAlgorithm; |
36 | | -import org.bouncycastle.tls.SignatureScheme; |
37 | 15 | import org.bouncycastle.tls.TlsFatalAlert; |
38 | 16 | import org.bouncycastle.tls.TlsUtils; |
39 | | -import org.bouncycastle.tls.crypto.Tls13Verifier; |
40 | 17 | import org.bouncycastle.tls.crypto.TlsCertificate; |
41 | | -import org.bouncycastle.tls.crypto.TlsCertificateRole; |
42 | | -import org.bouncycastle.tls.crypto.TlsCryptoUtils; |
43 | | -import org.bouncycastle.tls.crypto.TlsEncryptor; |
44 | | -import org.bouncycastle.tls.crypto.TlsVerifier; |
45 | | -import org.bouncycastle.tls.crypto.impl.LegacyTls13Verifier; |
46 | | -import org.bouncycastle.tls.crypto.impl.RSAUtil; |
47 | 18 | import org.bouncycastle.util.Arrays; |
48 | 19 |
|
49 | 20 | /** |
@@ -148,13 +119,4 @@ protected boolean supportsKeyUsage(int keyUsageBits) |
148 | 119 | } |
149 | 120 | return true; |
150 | 121 | } |
151 | | - |
152 | | - public void validateKeyUsage(int keyUsageBits) |
153 | | - throws IOException |
154 | | - { |
155 | | - if (!supportsKeyUsage(keyUsageBits)) |
156 | | - { |
157 | | - throw new TlsFatalAlert(AlertDescription.certificate_unknown); |
158 | | - } |
159 | | - } |
160 | 122 | } |
0 commit comments