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