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