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 |