/******************************************************************************* * Copyright (c) 2012 Pivotal Software, Inc. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Pivotal Software, Inc. - initial API and implementation *******************************************************************************/ package com.vmware.vfabric.ide.eclipse.tcserver.internal.core; /** * Combines an entry in the jmxremote.access and jmxremote.password file. * @author Steffen Pingel * @author Christian Dupuis */ public class JmxCredentials { public static final String WRITE_FLAG = "readwrite"; private String username; private String password; private boolean writeAccess; public JmxCredentials(String username, String password) { this.username = username; this.password = password; } public String getPassword() { return password; } public String getUsername() { return username; } public boolean hasWriteAccess() { return writeAccess; } public void setPassword(String password) { this.password = password; } public void setUsername(String username) { this.username = username; } public void setWriteAccess(boolean writeAccess) { this.writeAccess = writeAccess; } }