public class DefaultNWorkspaceSecurityModel extends Object
| Constructor and Description |
|---|
DefaultNWorkspaceSecurityModel(DefaultNWorkspace ws) |
| Modifier and Type | Method and Description |
|---|---|
protected net.thevpc.nuts.log.NLog |
_LOG() |
protected net.thevpc.nuts.log.NLogOp |
_LOGOP() |
net.thevpc.nuts.NAddUserCmd |
addUser(String name) |
void |
checkAllowed(String permission,
String operationName) |
void |
checkCredentials(char[] credentialsId,
char[] password) |
char[] |
createCredentials(char[] credentials,
boolean allowRetrieve,
char[] credentialId) |
net.thevpc.nuts.NUser |
findUser(String username) |
List<net.thevpc.nuts.NUser> |
findUsers() |
net.thevpc.nuts.security.NAuthenticationAgent |
getAuthenticationAgent(String authenticationAgentId) |
char[] |
getCredentials(char[] credentialsId) |
String[] |
getCurrentLoginStack() |
String |
getCurrentUsername() |
net.thevpc.nuts.NWorkspace |
getWorkspace() |
boolean |
isAdmin() |
boolean |
isAllowed(String permission) |
boolean |
isAnonymous() |
boolean |
isSecure() |
void |
login(String username,
char[] password) |
void |
logout() |
boolean |
removeCredentials(char[] credentialsId) |
net.thevpc.nuts.NRemoveUserCmd |
removeUser(String name) |
void |
setAuthenticationAgent(String authenticationAgentId) |
boolean |
setSecureMode(boolean secure,
char[] adminPassword) |
boolean |
switchSecureMode(char[] adminPassword) |
boolean |
switchUnsecureMode(char[] adminPassword) |
net.thevpc.nuts.NUpdateUserCmd |
updateUser(String name) |
public DefaultNWorkspaceSecurityModel(DefaultNWorkspace ws)
protected net.thevpc.nuts.log.NLogOp _LOGOP()
protected net.thevpc.nuts.log.NLog _LOG()
public void login(String username, char[] password)
public boolean setSecureMode(boolean secure,
char[] adminPassword)
public boolean switchUnsecureMode(char[] adminPassword)
public boolean switchSecureMode(char[] adminPassword)
public boolean isAdmin()
public boolean isAnonymous()
public void logout()
public net.thevpc.nuts.NUser findUser(String username)
public List<net.thevpc.nuts.NUser> findUsers()
public net.thevpc.nuts.NAddUserCmd addUser(String name)
public net.thevpc.nuts.NUpdateUserCmd updateUser(String name)
public net.thevpc.nuts.NRemoveUserCmd removeUser(String name)
public boolean isAllowed(String permission)
public String[] getCurrentLoginStack()
public String getCurrentUsername()
public net.thevpc.nuts.security.NAuthenticationAgent getAuthenticationAgent(String authenticationAgentId)
public void setAuthenticationAgent(String authenticationAgentId)
public boolean isSecure()
public void checkCredentials(char[] credentialsId,
char[] password)
throws net.thevpc.nuts.NSecurityException
net.thevpc.nuts.NSecurityExceptionpublic char[] getCredentials(char[] credentialsId)
public boolean removeCredentials(char[] credentialsId)
public char[] createCredentials(char[] credentials,
boolean allowRetrieve,
char[] credentialId)
public net.thevpc.nuts.NWorkspace getWorkspace()
Copyright © 2025 vpc open source initiative. All rights reserved.