public class DefaultNWorkspaceSecurityModel extends Object
| Constructor and Description |
|---|
DefaultNWorkspaceSecurityModel(DefaultNWorkspace ws) |
| Modifier and Type | Method and Description |
|---|---|
protected net.thevpc.nuts.log.NLog |
_LOG() |
WrapperNAuthenticationAgent |
agentMapper() |
void |
checkAllowed(String permission,
String operationName) |
void |
checkRepositoryAllowed(String repository,
String permission,
String operationName) |
net.thevpc.nuts.util.NOptional<net.thevpc.nuts.security.NUser> |
findUser(String username) |
List<net.thevpc.nuts.security.NUser> |
findUsers() |
net.thevpc.nuts.security.NAuthenticationAgent |
getAuthenticationAgent(String authenticationAgentId) |
List<String> |
getCurrentLoginStack() |
String |
getCurrentUsername() |
net.thevpc.nuts.core.NWorkspace |
getWorkspace() |
boolean |
isAdmin() |
boolean |
isAdminOrUser(String user) |
boolean |
isAllowed(String permission) |
boolean |
isAnonymous() |
boolean |
isRepositoryAllowed(String permission,
String repository) |
boolean |
isSecure() |
void |
login(String username,
net.thevpc.nuts.security.NSecureString password) |
void |
logout() |
void |
requiredAdminOrUser(String user) |
void |
setAuthenticationAgent(String authenticationAgentId) |
boolean |
setSecureMode(boolean secure,
net.thevpc.nuts.security.NSecureString adminPassword) |
boolean |
switchSecureMode(net.thevpc.nuts.security.NSecureString adminPassword) |
boolean |
switchUnsecureMode(net.thevpc.nuts.security.NSecureString adminPassword) |
public DefaultNWorkspaceSecurityModel(DefaultNWorkspace ws)
protected net.thevpc.nuts.log.NLog _LOG()
public void login(String username, net.thevpc.nuts.security.NSecureString password)
public boolean setSecureMode(boolean secure,
net.thevpc.nuts.security.NSecureString adminPassword)
public boolean switchUnsecureMode(net.thevpc.nuts.security.NSecureString adminPassword)
public boolean switchSecureMode(net.thevpc.nuts.security.NSecureString adminPassword)
public void requiredAdminOrUser(String user)
public boolean isAdminOrUser(String user)
public boolean isAdmin()
public boolean isAnonymous()
public void logout()
public net.thevpc.nuts.util.NOptional<net.thevpc.nuts.security.NUser> findUser(String username)
public List<net.thevpc.nuts.security.NUser> findUsers()
public void checkRepositoryAllowed(String repository, String permission, String operationName)
public boolean isAllowed(String permission)
public String getCurrentUsername()
public WrapperNAuthenticationAgent agentMapper()
public net.thevpc.nuts.security.NAuthenticationAgent getAuthenticationAgent(String authenticationAgentId)
public void setAuthenticationAgent(String authenticationAgentId)
public boolean isSecure()
public net.thevpc.nuts.core.NWorkspace getWorkspace()
Copyright © 2026 vpc open source initiative. All rights reserved.