src/java.base/share/classes/javax/crypto/SecretKeyFactory.java
changeset 59059 27a266d5fb13
parent 47216 71c04702a3d5
equal deleted inserted replaced
59058:3f57daa2d6eb 59059:27a266d5fb13
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 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
    50  * <P> Application developers should refer to their provider's documentation
    50  * <P> Application developers should refer to their provider's documentation
    51  * to find out which key specifications are supported by the
    51  * to find out which key specifications are supported by the
    52  * {@link #generateSecret(java.security.spec.KeySpec) generateSecret} and
    52  * {@link #generateSecret(java.security.spec.KeySpec) generateSecret} and
    53  * {@link #getKeySpec(javax.crypto.SecretKey, java.lang.Class) getKeySpec}
    53  * {@link #getKeySpec(javax.crypto.SecretKey, java.lang.Class) getKeySpec}
    54  * methods.
    54  * methods.
    55  * For example, the DES secret-key factory supplied by the "SunJCE" provider
    55  * For example, the DESede (Triple DES) secret-key factory supplied by the
    56  * supports {@code DESKeySpec} as a transparent representation of DES
    56  * "SunJCE" provider supports {@code DESedeKeySpec} as a transparent
    57  * keys, and that provider's secret-key factory for Triple DES keys supports
    57  * representation of Triple DES keys.
    58  * {@code DESedeKeySpec} as a transparent representation of Triple DES
       
    59  * keys.
       
    60  *
    58  *
    61  * <p> Every implementation of the Java platform is required to support the
    59  * <p> Every implementation of the Java platform is required to support the
    62  * following standard {@code SecretKeyFactory} algorithms:
    60  * following standard {@code SecretKeyFactory} algorithms:
    63  * <ul>
    61  * <ul>
    64  * <li>{@code DES}</li>
       
    65  * <li>{@code DESede}</li>
    62  * <li>{@code DESede}</li>
    66  * </ul>
    63  * </ul>
    67  * These algorithms are described in the <a href=
    64  * These algorithms are described in the <a href=
    68  * "{@docRoot}/../specs/security/standard-names.html#secretkeyfactory-algorithms">
    65  * "{@docRoot}/../specs/security/standard-names.html#secretkeyfactory-algorithms">
    69  * SecretKeyFactory section</a> of the
    66  * SecretKeyFactory section</a> of the
    72  * other algorithms are supported.
    69  * other algorithms are supported.
    73  *
    70  *
    74  * @author Jan Luehe
    71  * @author Jan Luehe
    75  *
    72  *
    76  * @see SecretKey
    73  * @see SecretKey
    77  * @see javax.crypto.spec.DESKeySpec
       
    78  * @see javax.crypto.spec.DESedeKeySpec
    74  * @see javax.crypto.spec.DESedeKeySpec
    79  * @see javax.crypto.spec.PBEKeySpec
    75  * @see javax.crypto.spec.PBEKeySpec
    80  * @since 1.4
    76  * @since 1.4
    81  */
    77  */
    82 
    78