jdk/src/share/classes/com/sun/crypto/provider/DHKeyFactory.java
changeset 3353 ddbd63234844
parent 2 90ce3da70b43
child 5506 202f599c92aa
equal deleted inserted replaced
3333:111dede48a15 3353:ddbd63234844
     1 /*
     1 /*
     2  * Copyright 1997-2007 Sun Microsystems, Inc.  All Rights Reserved.
     2  * Copyright 1997-2009 Sun Microsystems, Inc.  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.  Sun designates this
     7  * published by the Free Software Foundation.  Sun designates this
    47  *
    47  *
    48  */
    48  */
    49 public final class DHKeyFactory extends KeyFactorySpi {
    49 public final class DHKeyFactory extends KeyFactorySpi {
    50 
    50 
    51     /**
    51     /**
    52      * Verify the SunJCE provider in the constructor.
    52      * Empty constructor
    53      *
       
    54      * @exception SecurityException if fails to verify
       
    55      * its own integrity
       
    56      */
    53      */
    57     public DHKeyFactory() {
    54     public DHKeyFactory() {
    58         if (!SunJCE.verifySelfIntegrity(this.getClass())) {
       
    59             throw new SecurityException("The SunJCE provider may have " +
       
    60                                         "been tampered.");
       
    61         }
       
    62     }
    55     }
    63 
    56 
    64     /**
    57     /**
    65      * Generates a public key object from the provided key specification
    58      * Generates a public key object from the provided key specification
    66      * (key material).
    59      * (key material).