public class DefaultNWorkspaceSecurityManager extends Object implements NWorkspaceSecurityManager
| Modifier and Type | Field and Description |
|---|---|
DefaultNWorkspaceSecurityModel |
model |
NWorkspace |
workspace |
CUSTOM_SCORE, DEFAULT_SCORE, UNSUPPORTED_SCORE| Constructor and Description |
|---|
DefaultNWorkspaceSecurityManager(NWorkspace workspace) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitofisValidScore, query, querypublic final DefaultNWorkspaceSecurityModel model
public NWorkspace workspace
public DefaultNWorkspaceSecurityManager(NWorkspace workspace)
public int getScore(NScorableContext context)
getScore in interface NComponentgetScore in interface NScorablepublic NWorkspaceSecurityManager login(String username, char[] password)
login in interface NWorkspaceSecurityManagerpublic boolean setSecureMode(boolean secure,
char[] adminPassword)
setSecureMode in interface NWorkspaceSecurityManagerpublic boolean switchUnsecureMode(char[] adminPassword)
public boolean switchSecureMode(char[] adminPassword)
public boolean isAdmin()
isAdmin in interface NWorkspaceSecurityManagerpublic boolean isAnonymous()
isAnonymous in interface NWorkspaceSecurityManagerpublic NWorkspaceSecurityManager logout()
logout in interface NWorkspaceSecurityManagerpublic NUser findUser(String username)
findUser in interface NWorkspaceSecurityManagerpublic List<NUser> findUsers()
findUsers in interface NWorkspaceSecurityManagerpublic NAddUserCmd addUser(String name)
addUser in interface NWorkspaceSecurityManagerpublic NUpdateUserCmd updateUser(String name)
updateUser in interface NWorkspaceSecurityManagerpublic NRemoveUserCmd removeUser(String name)
removeUser in interface NWorkspaceSecurityManagerpublic NWorkspaceSecurityManager checkAllowed(String permission, String operationName)
checkAllowed in interface NWorkspaceSecurityManagerpublic boolean isAllowed(String permission)
isAllowed in interface NWorkspaceSecurityManagerpublic String[] getCurrentLoginStack()
getCurrentLoginStack in interface NWorkspaceSecurityManagerpublic String getCurrentUsername()
getCurrentUsername in interface NWorkspaceSecurityManagerpublic NAuthenticationAgent getAuthenticationAgent(String authenticationAgentId)
getAuthenticationAgent in interface NWorkspaceSecurityManagerpublic NWorkspaceSecurityManager setAuthenticationAgent(String authenticationAgentId)
setAuthenticationAgent in interface NWorkspaceSecurityManagerpublic boolean isSecureMode()
isSecureMode in interface NWorkspaceSecurityManagerpublic NWorkspaceSecurityManager checkCredentials(char[] credentialsId, char[] password) throws NSecurityException
checkCredentials in interface NWorkspaceSecurityManagerNSecurityExceptionpublic char[] getCredentials(char[] credentialsId)
getCredentials in interface NWorkspaceSecurityManagerpublic boolean removeCredentials(char[] credentialsId)
removeCredentials in interface NWorkspaceSecurityManagerpublic char[] createCredentials(char[] credentials,
boolean allowRetrieve,
char[] credentialId)
createCredentials in interface NWorkspaceSecurityManagerCopyright © 2025 vpc open source initiative. All rights reserved.