public synchronized void updateKey ( final byte [ ] key ) { if ( key == null || key . length == 0 ) { throw new IllegalArgumentException ( SR . INVALID_KEY ) ; } this . key = key ; this . hmacSha256 = null ; }
Sets the name of the access key to be used when signing the request .