< prev index next >

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

Print this page
rev 15967 : [mq]: GetInstance

*** 491,509 **** * See the Cipher section in the <a href= * "{@docRoot}/../technotes/guides/security/StandardNames.html#Cipher"> * Java Cryptography Architecture Standard Algorithm Name Documentation</a> * for information about standard transformation names. * ! * @return a cipher that implements the requested transformation. * ! * @exception NoSuchAlgorithmException if {@code transformation} ! * is null, empty, in an invalid format, ! * or if no Provider supports a CipherSpi implementation for the ! * specified algorithm. * ! * @exception NoSuchPaddingException if {@code transformation} ! * contains a padding scheme that is not available. * * @see java.security.Provider */ public static final Cipher getInstance(String transformation) throws NoSuchAlgorithmException, NoSuchPaddingException --- 491,509 ---- * See the Cipher section in the <a href= * "{@docRoot}/../technotes/guides/security/StandardNames.html#Cipher"> * Java Cryptography Architecture Standard Algorithm Name Documentation</a> * for information about standard transformation names. * ! * @return a cipher that implements the requested transformation * ! * @throws NoSuchAlgorithmException if {@code transformation} ! * is {@code null}, empty, in an invalid format, ! * or if no {@code Provider} supports a {@code CipherSpi} ! * implementation for the specified algorithm * ! * @throws NoSuchPaddingException if {@code transformation} ! * contains a padding scheme that is not available * * @see java.security.Provider */ public static final Cipher getInstance(String transformation) throws NoSuchAlgorithmException, NoSuchPaddingException
*** 568,592 **** * Java Cryptography Architecture Standard Algorithm Name Documentation</a> * for information about standard transformation names. * * @param provider the name of the provider. * ! * @return a cipher that implements the requested transformation. * ! * @exception NoSuchAlgorithmException if {@code transformation} ! * is null, empty, in an invalid format, ! * or if a CipherSpi 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 NoSuchPaddingException if {@code transformation} ! * contains a padding scheme that is not available. * ! * @exception IllegalArgumentException if the {@code provider} ! * is null or empty. * * @see java.security.Provider */ public static final Cipher getInstance(String transformation, String provider) --- 568,593 ---- * Java Cryptography Architecture Standard Algorithm Name Documentation</a> * for information about standard transformation names. * * @param provider the name of the provider. * ! * @return a cipher that implements the requested transformation * ! * @throws IllegalArgumentException if the {@code provider} ! * is {@code null} or empty * ! * @throws NoSuchAlgorithmException if {@code transformation} ! * is {@code null}, empty, in an invalid format, ! * or if a {@code CipherSpi} implementation for the ! * specified algorithm is not available from the specified ! * provider * ! * @throws NoSuchPaddingException if {@code transformation} ! * contains a padding scheme that is not available * ! * @throws NoSuchProviderException if the specified provider is not ! * registered in the security provider list * * @see java.security.Provider */ public static final Cipher getInstance(String transformation, String provider)
*** 620,641 **** * Java Cryptography Architecture Standard Algorithm Name Documentation</a> * for information about standard transformation names. * * @param provider the provider. * ! * @return a cipher that implements the requested transformation. * ! * @exception NoSuchAlgorithmException if {@code transformation} ! * is null, empty, in an invalid format, ! * or if a CipherSpi implementation for the specified algorithm ! * is not available from the specified Provider object. * ! * @exception NoSuchPaddingException if {@code transformation} ! * contains a padding scheme that is not available. * ! * @exception IllegalArgumentException if the {@code provider} ! * is null. * * @see java.security.Provider */ public static final Cipher getInstance(String transformation, Provider provider) --- 621,643 ---- * Java Cryptography Architecture Standard Algorithm Name Documentation</a> * for information about standard transformation names. * * @param provider the provider. * ! * @return a cipher that implements the requested transformation * ! * @throws IllegalArgumentException if the {@code provider} ! * is {@code null} * ! * @throws NoSuchAlgorithmException if {@code transformation} ! * is {@code null}, empty, in an invalid format, ! * or if a {@code CipherSpi} implementation for the ! * specified algorithm is not available from the specified ! * {@code Provider} object * ! * @throws NoSuchPaddingException if {@code transformation} ! * contains a padding scheme that is not available * * @see java.security.Provider */ public static final Cipher getInstance(String transformation, Provider provider)
< prev index next >