microsoft-azure-storage/src/com/microsoft/azure/storage/StorageCredentialsAccountAndKey.java
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;
    }
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;
    }
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.

@param key
A <code>String</code> that represents the name of the access key to be used when signing the request.
Sets the name of the access key to be used when signing the request .