Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
wangweij committed May 10, 2024
1 parent 8834f04 commit b8658a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/java.base/share/classes/javax/crypto/Cipher.java
Original file line number Diff line number Diff line change
Expand Up @@ -2622,9 +2622,9 @@ public final byte[] wrap(Key key)
*
* @since 23
*/
public final SecretKey export(byte[] context, String algorithm, int length) {
public final SecretKey exportKey(byte[] context, String algorithm, int length) {
chooseFirstProvider();
return spi.engineExport(context, algorithm, length);
return spi.engineExportKey(context, algorithm, length);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/java.base/share/classes/javax/crypto/CipherSpi.java
Original file line number Diff line number Diff line change
Expand Up @@ -988,7 +988,7 @@ protected void engineUpdateAAD(byte[] src, int offset, int len) {
*
* @since 23
*/
protected SecretKey engineExport(byte[] context, String algorithm, int length) {
protected SecretKey engineExportKey(byte[] context, String algorithm, int length) {
throw new UnsupportedOperationException(
"The underlying Cipher implementation "
+ "does not support this method");
Expand Down

0 comments on commit b8658a7

Please sign in to comment.