src/java.base/share/classes/sun/security/ssl/Authenticator.java
changeset 53734 cb1642ccc732
parent 50768 68fa3d4026ea
equal deleted inserted replaced
53733:b5d45c2fe8a0 53734:cb1642ccc732
     1 /*
     1 /*
     2  * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   482                     break;
   482                     break;
   483                 default:
   483                 default:
   484                     throw new RuntimeException("Unknown MacAlg " + macAlg);
   484                     throw new RuntimeException("Unknown MacAlg " + macAlg);
   485             }
   485             }
   486 
   486 
   487             Mac m = JsseJce.getMac(algorithm);
   487             Mac m = Mac.getInstance(algorithm);
   488             m.init(key);
   488             m.init(key);
   489             this.macAlg = macAlg;
   489             this.macAlg = macAlg;
   490             this.mac = m;
   490             this.mac = m;
   491         }
   491         }
   492 
   492