public class DefaultNWorkspaceSecurityManager extends Object implements net.thevpc.nuts.NWorkspaceSecurityManager
| Modifier and Type | Field and Description |
|---|---|
DefaultNWorkspaceSecurityModel |
model |
net.thevpc.nuts.NWorkspace |
workspace |
| Constructor and Description |
|---|
DefaultNWorkspaceSecurityManager(net.thevpc.nuts.NWorkspace workspace) |
| Modifier and Type | Method and Description |
|---|---|
net.thevpc.nuts.NAddUserCmd |
addUser(String name) |
net.thevpc.nuts.NWorkspaceSecurityManager |
checkAllowed(String permission,
String operationName) |
net.thevpc.nuts.NWorkspaceSecurityManager |
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() |
int |
getSupportLevel(net.thevpc.nuts.spi.NSupportLevelContext context) |
boolean |
isAdmin() |
boolean |
isAllowed(String permission) |
boolean |
isAnonymous() |
boolean |
isSecureMode() |
net.thevpc.nuts.NWorkspaceSecurityManager |
login(String username,
char[] password) |
net.thevpc.nuts.NWorkspaceSecurityManager |
logout() |
boolean |
removeCredentials(char[] credentialsId) |
net.thevpc.nuts.NRemoveUserCmd |
removeUser(String name) |
net.thevpc.nuts.NWorkspaceSecurityManager |
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 final DefaultNWorkspaceSecurityModel model
public net.thevpc.nuts.NWorkspace workspace
public DefaultNWorkspaceSecurityManager(net.thevpc.nuts.NWorkspace workspace)
public int getSupportLevel(net.thevpc.nuts.spi.NSupportLevelContext context)
getSupportLevel in interface net.thevpc.nuts.spi.NComponentpublic net.thevpc.nuts.NWorkspaceSecurityManager login(String username, char[] password)
login in interface net.thevpc.nuts.NWorkspaceSecurityManagerpublic boolean setSecureMode(boolean secure,
char[] adminPassword)
setSecureMode in interface net.thevpc.nuts.NWorkspaceSecurityManagerpublic boolean switchUnsecureMode(char[] adminPassword)
public boolean switchSecureMode(char[] adminPassword)
public boolean isAdmin()
isAdmin in interface net.thevpc.nuts.NWorkspaceSecurityManagerpublic boolean isAnonymous()
isAnonymous in interface net.thevpc.nuts.NWorkspaceSecurityManagerpublic net.thevpc.nuts.NWorkspaceSecurityManager logout()
logout in interface net.thevpc.nuts.NWorkspaceSecurityManagerpublic net.thevpc.nuts.NUser findUser(String username)
findUser in interface net.thevpc.nuts.NWorkspaceSecurityManagerpublic List<net.thevpc.nuts.NUser> findUsers()
findUsers in interface net.thevpc.nuts.NWorkspaceSecurityManagerpublic net.thevpc.nuts.NAddUserCmd addUser(String name)
addUser in interface net.thevpc.nuts.NWorkspaceSecurityManagerpublic net.thevpc.nuts.NUpdateUserCmd updateUser(String name)
updateUser in interface net.thevpc.nuts.NWorkspaceSecurityManagerpublic net.thevpc.nuts.NRemoveUserCmd removeUser(String name)
removeUser in interface net.thevpc.nuts.NWorkspaceSecurityManagerpublic net.thevpc.nuts.NWorkspaceSecurityManager checkAllowed(String permission, String operationName)
checkAllowed in interface net.thevpc.nuts.NWorkspaceSecurityManagerpublic boolean isAllowed(String permission)
isAllowed in interface net.thevpc.nuts.NWorkspaceSecurityManagerpublic String[] getCurrentLoginStack()
getCurrentLoginStack in interface net.thevpc.nuts.NWorkspaceSecurityManagerpublic String getCurrentUsername()
getCurrentUsername in interface net.thevpc.nuts.NWorkspaceSecurityManagerpublic net.thevpc.nuts.security.NAuthenticationAgent getAuthenticationAgent(String authenticationAgentId)
getAuthenticationAgent in interface net.thevpc.nuts.NWorkspaceSecurityManagerpublic net.thevpc.nuts.NWorkspaceSecurityManager setAuthenticationAgent(String authenticationAgentId)
setAuthenticationAgent in interface net.thevpc.nuts.NWorkspaceSecurityManagerpublic boolean isSecureMode()
isSecureMode in interface net.thevpc.nuts.NWorkspaceSecurityManagerpublic net.thevpc.nuts.NWorkspaceSecurityManager checkCredentials(char[] credentialsId,
char[] password)
throws net.thevpc.nuts.NSecurityException
checkCredentials in interface net.thevpc.nuts.NWorkspaceSecurityManagernet.thevpc.nuts.NSecurityExceptionpublic char[] getCredentials(char[] credentialsId)
getCredentials in interface net.thevpc.nuts.NWorkspaceSecurityManagerpublic boolean removeCredentials(char[] credentialsId)
removeCredentials in interface net.thevpc.nuts.NWorkspaceSecurityManagerpublic char[] createCredentials(char[] credentials,
boolean allowRetrieve,
char[] credentialId)
createCredentials in interface net.thevpc.nuts.NWorkspaceSecurityManagerCopyright © 2025 vpc open source initiative. All rights reserved.