public class DefaultNutsWorkspaceSecurityModel extends Object
| Constructor and Description |
|---|
DefaultNutsWorkspaceSecurityModel(DefaultNutsWorkspace ws) |
| Modifier and Type | Method and Description |
|---|---|
protected net.thevpc.nuts.NutsLogger |
_LOG(net.thevpc.nuts.NutsSession session) |
protected net.thevpc.nuts.NutsLoggerOp |
_LOGOP(net.thevpc.nuts.NutsSession session) |
net.thevpc.nuts.NutsAddUserCommand |
addUser(String name,
net.thevpc.nuts.NutsSession session) |
void |
checkAllowed(String permission,
String operationName,
net.thevpc.nuts.NutsSession session) |
void |
checkCredentials(char[] credentialsId,
char[] password,
net.thevpc.nuts.NutsSession session) |
char[] |
createCredentials(char[] credentials,
boolean allowRetrieve,
char[] credentialId,
net.thevpc.nuts.NutsSession session) |
net.thevpc.nuts.NutsUser |
findUser(String username,
net.thevpc.nuts.NutsSession session) |
net.thevpc.nuts.NutsUser[] |
findUsers(net.thevpc.nuts.NutsSession session) |
net.thevpc.nuts.NutsAuthenticationAgent |
getAuthenticationAgent(String authenticationAgentId,
net.thevpc.nuts.NutsSession session) |
char[] |
getCredentials(char[] credentialsId,
net.thevpc.nuts.NutsSession session) |
String[] |
getCurrentLoginStack(net.thevpc.nuts.NutsSession session) |
String |
getCurrentUsername(net.thevpc.nuts.NutsSession session) |
net.thevpc.nuts.NutsWorkspace |
getWorkspace() |
boolean |
isAdmin(net.thevpc.nuts.NutsSession session) |
boolean |
isAllowed(String permission,
net.thevpc.nuts.NutsSession session) |
boolean |
isSecure(net.thevpc.nuts.NutsSession session) |
void |
login(CallbackHandler handler,
net.thevpc.nuts.NutsSession session) |
void |
login(String username,
char[] password,
net.thevpc.nuts.NutsSession session) |
void |
logout(net.thevpc.nuts.NutsSession session) |
boolean |
removeCredentials(char[] credentialsId,
net.thevpc.nuts.NutsSession session) |
net.thevpc.nuts.NutsRemoveUserCommand |
removeUser(String name,
net.thevpc.nuts.NutsSession session) |
void |
setAuthenticationAgent(String authenticationAgentId,
net.thevpc.nuts.NutsSession session) |
boolean |
setSecureMode(boolean secure,
char[] adminPassword,
net.thevpc.nuts.NutsSession session) |
boolean |
switchSecureMode(char[] adminPassword,
net.thevpc.nuts.NutsSession session) |
boolean |
switchUnsecureMode(char[] adminPassword,
net.thevpc.nuts.NutsSession session) |
net.thevpc.nuts.NutsUpdateUserCommand |
updateUser(String name,
net.thevpc.nuts.NutsSession session) |
public DefaultNutsWorkspaceSecurityModel(DefaultNutsWorkspace ws)
protected net.thevpc.nuts.NutsLoggerOp _LOGOP(net.thevpc.nuts.NutsSession session)
protected net.thevpc.nuts.NutsLogger _LOG(net.thevpc.nuts.NutsSession session)
public void login(String username, char[] password, net.thevpc.nuts.NutsSession session)
public boolean setSecureMode(boolean secure,
char[] adminPassword,
net.thevpc.nuts.NutsSession session)
public boolean switchUnsecureMode(char[] adminPassword,
net.thevpc.nuts.NutsSession session)
public boolean switchSecureMode(char[] adminPassword,
net.thevpc.nuts.NutsSession session)
public boolean isAdmin(net.thevpc.nuts.NutsSession session)
public void logout(net.thevpc.nuts.NutsSession session)
public net.thevpc.nuts.NutsUser findUser(String username, net.thevpc.nuts.NutsSession session)
public net.thevpc.nuts.NutsUser[] findUsers(net.thevpc.nuts.NutsSession session)
public net.thevpc.nuts.NutsAddUserCommand addUser(String name, net.thevpc.nuts.NutsSession session)
public net.thevpc.nuts.NutsUpdateUserCommand updateUser(String name, net.thevpc.nuts.NutsSession session)
public net.thevpc.nuts.NutsRemoveUserCommand removeUser(String name, net.thevpc.nuts.NutsSession session)
public void checkAllowed(String permission, String operationName, net.thevpc.nuts.NutsSession session)
public boolean isAllowed(String permission, net.thevpc.nuts.NutsSession session)
public String[] getCurrentLoginStack(net.thevpc.nuts.NutsSession session)
public String getCurrentUsername(net.thevpc.nuts.NutsSession session)
public void login(CallbackHandler handler, net.thevpc.nuts.NutsSession session)
public net.thevpc.nuts.NutsAuthenticationAgent getAuthenticationAgent(String authenticationAgentId, net.thevpc.nuts.NutsSession session)
public void setAuthenticationAgent(String authenticationAgentId, net.thevpc.nuts.NutsSession session)
public boolean isSecure(net.thevpc.nuts.NutsSession session)
public void checkCredentials(char[] credentialsId,
char[] password,
net.thevpc.nuts.NutsSession session)
throws net.thevpc.nuts.NutsSecurityException
net.thevpc.nuts.NutsSecurityExceptionpublic char[] getCredentials(char[] credentialsId,
net.thevpc.nuts.NutsSession session)
public boolean removeCredentials(char[] credentialsId,
net.thevpc.nuts.NutsSession session)
public char[] createCredentials(char[] credentials,
boolean allowRetrieve,
char[] credentialId,
net.thevpc.nuts.NutsSession session)
public net.thevpc.nuts.NutsWorkspace getWorkspace()
Copyright © 2021 vpc open source initiative. All rights reserved.