< prev index next >

src/java.base/share/classes/javax/crypto/Mac.java

Print this page
rev 15967 : [mq]: GetInstance

*** 164,178 **** * See the Mac section in the <a href= * "{@docRoot}/../technotes/guides/security/StandardNames.html#Mac"> * Java Cryptography Architecture Standard Algorithm Name Documentation</a> * for information about standard algorithm names. * ! * @return the new {@code Mac} object. * ! * @exception NoSuchAlgorithmException if no Provider supports a ! * MacSpi implementation for the ! * specified algorithm. * * @see java.security.Provider */ public static final Mac getInstance(String algorithm) throws NoSuchAlgorithmException { --- 164,179 ---- * See the Mac section in the <a href= * "{@docRoot}/../technotes/guides/security/StandardNames.html#Mac"> * Java Cryptography Architecture Standard Algorithm Name Documentation</a> * for information about standard algorithm names. * ! * @return the new {@code Mac} object * ! * @throws NoSuchAlgorithmException if no {@code Provider} supports a ! * {@code MacSpi} implementation for the specified algorithm ! * ! * @throws NullPointerException if {@code algorithm} is {@code null} * * @see java.security.Provider */ public static final Mac getInstance(String algorithm) throws NoSuchAlgorithmException {
*** 208,228 **** * Java Cryptography Architecture Standard Algorithm Name Documentation</a> * for information about standard algorithm names. * * @param provider the name of the provider. * ! * @return the new {@code Mac} object. * ! * @exception NoSuchAlgorithmException if a MacSpi * implementation for the specified algorithm is not ! * available from the specified provider. * ! * @exception NoSuchProviderException if the specified provider is not ! * registered in the security provider list. * ! * @exception IllegalArgumentException if the {@code provider} ! * is null or empty. * * @see java.security.Provider */ public static final Mac getInstance(String algorithm, String provider) throws NoSuchAlgorithmException, NoSuchProviderException { --- 209,231 ---- * Java Cryptography Architecture Standard Algorithm Name Documentation</a> * for information about standard algorithm names. * * @param provider the name of the provider. * ! * @return the new {@code Mac} object ! * ! * @throws IllegalArgumentException if the {@code provider} ! * is {@code null} or empty * ! * @throws NoSuchAlgorithmException if a {@code MacSpi} * implementation for the specified algorithm is not ! * available from the specified provider * ! * @throws NoSuchProviderException if the specified provider is not ! * registered in the security provider list * ! * @throws NullPointerException if {@code algorithm} is {@code null} * * @see java.security.Provider */ public static final Mac getInstance(String algorithm, String provider) throws NoSuchAlgorithmException, NoSuchProviderException {
*** 246,263 **** * Java Cryptography Architecture Standard Algorithm Name Documentation</a> * for information about standard algorithm names. * * @param provider the provider. * ! * @return the new {@code Mac} object. * ! * @exception NoSuchAlgorithmException if a MacSpi * implementation for the specified algorithm is not available ! * from the specified Provider object. * ! * @exception IllegalArgumentException if the {@code provider} ! * is null. * * @see java.security.Provider */ public static final Mac getInstance(String algorithm, Provider provider) throws NoSuchAlgorithmException { --- 249,268 ---- * Java Cryptography Architecture Standard Algorithm Name Documentation</a> * for information about standard algorithm names. * * @param provider the provider. * ! * @return the new {@code Mac} object ! * ! * @throws IllegalArgumentException if the {@code provider} is ! * {@code null} * ! * @throws NoSuchAlgorithmException if a {@code MacSpi} * implementation for the specified algorithm is not available ! * from the specified {@code Provider} object * ! * @throws NullPointerException if {@code algorithm} is {@code null} * * @see java.security.Provider */ public static final Mac getInstance(String algorithm, Provider provider) throws NoSuchAlgorithmException {
< prev index next >