< prev index next >

src/java.base/share/classes/com/sun/crypto/provider/TlsKeyMaterialGenerator.java

Print this page

        

@@ -44,10 +44,11 @@
 public final class TlsKeyMaterialGenerator extends KeyGeneratorSpi {
 
     private final static String MSG = "TlsKeyMaterialGenerator must be "
         + "initialized using a TlsKeyMaterialParameterSpec";
 
+    @SuppressWarnings("deprecation")
     private TlsKeyMaterialParameterSpec spec;
 
     private int protocolVersion;
 
     public TlsKeyMaterialGenerator() {

@@ -55,10 +56,11 @@
 
     protected void engineInit(SecureRandom random) {
         throw new InvalidParameterException(MSG);
     }
 
+    @SuppressWarnings("deprecation")
     protected void engineInit(AlgorithmParameterSpec params,
             SecureRandom random) throws InvalidAlgorithmParameterException {
         if (params instanceof TlsKeyMaterialParameterSpec == false) {
             throw new InvalidAlgorithmParameterException(MSG);
         }

@@ -89,10 +91,11 @@
         } catch (GeneralSecurityException e) {
             throw new ProviderException(e);
         }
     }
 
+    @SuppressWarnings("deprecation")
     private SecretKey engineGenerateKey0() throws GeneralSecurityException {
         byte[] masterSecret = spec.getMasterSecret().getEncoded();
 
         byte[] clientRandom = spec.getClientRandom();
         byte[] serverRandom = spec.getServerRandom();
< prev index next >