public class DefaultNutsWorkspaceSecurityManager extends Object implements net.thevpc.nuts.NutsWorkspaceSecurityManager
| Modifier and Type | Field and Description |
|---|---|
DefaultNutsWorkspaceSecurityModel |
model |
net.thevpc.nuts.NutsSession |
session |
| Constructor and Description |
|---|
DefaultNutsWorkspaceSecurityManager(DefaultNutsWorkspaceSecurityModel model) |
| Modifier and Type | Method and Description |
|---|---|
net.thevpc.nuts.NutsAddUserCommand |
addUser(String name) |
net.thevpc.nuts.NutsWorkspaceSecurityManager |
checkAllowed(String permission,
String operationName) |
net.thevpc.nuts.NutsWorkspaceSecurityManager |
checkCredentials(char[] credentialsId,
char[] password) |
char[] |
createCredentials(char[] credentials,
boolean allowRetrieve,
char[] credentialId) |
net.thevpc.nuts.NutsUser |
findUser(String username) |
net.thevpc.nuts.NutsUser[] |
findUsers() |
net.thevpc.nuts.NutsAuthenticationAgent |
getAuthenticationAgent(String authenticationAgentId) |
char[] |
getCredentials(char[] credentialsId) |
String[] |
getCurrentLoginStack() |
String |
getCurrentUsername() |
net.thevpc.nuts.NutsSession |
getSession() |
boolean |
isAdmin() |
boolean |
isAllowed(String permission) |
boolean |
isSecure() |
net.thevpc.nuts.NutsWorkspaceSecurityManager |
login(CallbackHandler handler) |
net.thevpc.nuts.NutsWorkspaceSecurityManager |
login(String username,
char[] password) |
net.thevpc.nuts.NutsWorkspaceSecurityManager |
logout() |
boolean |
removeCredentials(char[] credentialsId) |
net.thevpc.nuts.NutsRemoveUserCommand |
removeUser(String name) |
net.thevpc.nuts.NutsWorkspaceSecurityManager |
setAuthenticationAgent(String authenticationAgentId) |
boolean |
setSecureMode(boolean secure,
char[] adminPassword) |
net.thevpc.nuts.NutsWorkspaceSecurityManager |
setSession(net.thevpc.nuts.NutsSession session) |
boolean |
switchSecureMode(char[] adminPassword) |
boolean |
switchUnsecureMode(char[] adminPassword) |
net.thevpc.nuts.NutsUpdateUserCommand |
updateUser(String name) |
public final DefaultNutsWorkspaceSecurityModel model
public net.thevpc.nuts.NutsSession session
public DefaultNutsWorkspaceSecurityManager(DefaultNutsWorkspaceSecurityModel model)
public net.thevpc.nuts.NutsSession getSession()
getSession in interface net.thevpc.nuts.NutsWorkspaceSecurityManagerpublic net.thevpc.nuts.NutsWorkspaceSecurityManager setSession(net.thevpc.nuts.NutsSession session)
setSession in interface net.thevpc.nuts.NutsWorkspaceSecurityManagerpublic net.thevpc.nuts.NutsWorkspaceSecurityManager login(String username, char[] password)
login in interface net.thevpc.nuts.NutsWorkspaceSecurityManagerpublic boolean setSecureMode(boolean secure,
char[] adminPassword)
setSecureMode in interface net.thevpc.nuts.NutsWorkspaceSecurityManagerpublic boolean switchUnsecureMode(char[] adminPassword)
public boolean switchSecureMode(char[] adminPassword)
public boolean isAdmin()
isAdmin in interface net.thevpc.nuts.NutsWorkspaceSecurityManagerpublic net.thevpc.nuts.NutsWorkspaceSecurityManager logout()
logout in interface net.thevpc.nuts.NutsWorkspaceSecurityManagerpublic net.thevpc.nuts.NutsUser findUser(String username)
findUser in interface net.thevpc.nuts.NutsWorkspaceSecurityManagerpublic net.thevpc.nuts.NutsUser[] findUsers()
findUsers in interface net.thevpc.nuts.NutsWorkspaceSecurityManagerpublic net.thevpc.nuts.NutsAddUserCommand addUser(String name)
addUser in interface net.thevpc.nuts.NutsWorkspaceSecurityManagerpublic net.thevpc.nuts.NutsUpdateUserCommand updateUser(String name)
updateUser in interface net.thevpc.nuts.NutsWorkspaceSecurityManagerpublic net.thevpc.nuts.NutsRemoveUserCommand removeUser(String name)
removeUser in interface net.thevpc.nuts.NutsWorkspaceSecurityManagerpublic net.thevpc.nuts.NutsWorkspaceSecurityManager checkAllowed(String permission, String operationName)
checkAllowed in interface net.thevpc.nuts.NutsWorkspaceSecurityManagerpublic boolean isAllowed(String permission)
isAllowed in interface net.thevpc.nuts.NutsWorkspaceSecurityManagerpublic String[] getCurrentLoginStack()
getCurrentLoginStack in interface net.thevpc.nuts.NutsWorkspaceSecurityManagerpublic String getCurrentUsername()
getCurrentUsername in interface net.thevpc.nuts.NutsWorkspaceSecurityManagerpublic net.thevpc.nuts.NutsWorkspaceSecurityManager login(CallbackHandler handler)
login in interface net.thevpc.nuts.NutsWorkspaceSecurityManagerpublic net.thevpc.nuts.NutsAuthenticationAgent getAuthenticationAgent(String authenticationAgentId)
getAuthenticationAgent in interface net.thevpc.nuts.NutsWorkspaceSecurityManagerpublic net.thevpc.nuts.NutsWorkspaceSecurityManager setAuthenticationAgent(String authenticationAgentId)
setAuthenticationAgent in interface net.thevpc.nuts.NutsWorkspaceSecurityManagerpublic boolean isSecure()
isSecure in interface net.thevpc.nuts.NutsWorkspaceSecurityManagerpublic net.thevpc.nuts.NutsWorkspaceSecurityManager checkCredentials(char[] credentialsId,
char[] password)
throws net.thevpc.nuts.NutsSecurityException
checkCredentials in interface net.thevpc.nuts.NutsWorkspaceSecurityManagernet.thevpc.nuts.NutsSecurityExceptionpublic char[] getCredentials(char[] credentialsId)
getCredentials in interface net.thevpc.nuts.NutsWorkspaceSecurityManagerpublic boolean removeCredentials(char[] credentialsId)
removeCredentials in interface net.thevpc.nuts.NutsWorkspaceSecurityManagerpublic char[] createCredentials(char[] credentials,
boolean allowRetrieve,
char[] credentialId)
createCredentials in interface net.thevpc.nuts.NutsWorkspaceSecurityManagerCopyright © 2021 vpc open source initiative. All rights reserved.