org.opentcs.kernel.extensions.rmi.DefaultUserAccountProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of opentcs-kernel-extension-rmi-services Show documentation
Show all versions of opentcs-kernel-extension-rmi-services Show documentation
openTCS-Kernel-Extension-RMI-Services
/**
* Copyright (c) The openTCS Authors.
*
* This program is free software and subject to the MIT license. (For details,
* see the licensing information (LICENSE.txt) you should have received with
* this copy of the software.)
*/
package org.opentcs.kernel.extensions.rmi;
import java.util.Arrays;
import java.util.EnumSet;
import java.util.HashSet;
import java.util.Set;
import org.opentcs.common.GuestUserCredentials;
/**
* The default impelementation of {@link UserAccountProvider}.
* Provides only one (guest) user account.
*
* @see GuestUserCredentials
*/
public class DefaultUserAccountProvider
implements
UserAccountProvider {
public DefaultUserAccountProvider() {
}
@Override
public Set getUserAccounts() {
return new HashSet<>(
Arrays.asList(
new UserAccount(
GuestUserCredentials.USER,
GuestUserCredentials.PASSWORD,
EnumSet.allOf(UserPermission.class)
)
)
);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy