Sets the default Credential to provided credential. Unsets the default Credential if credential is null.