public class User extends Object implements SecurityContext, Checkable
| Constructor and Description |
|---|
User()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPrivilege(Privilege privilege)
Add a privilege to this context
|
void |
check() |
void |
checkPermission(String resourceName,
String action) |
String |
getName() |
String |
getPassword() |
void |
setName(String name) |
void |
setPassword(String password) |
public String getName()
public void setName(String name)
name - the name to setpublic String getPassword()
public void setPassword(String password)
password - the password to setpublic void addPrivilege(Privilege privilege)
privilege - the privilege to addpublic void checkPermission(String resourceName, String action) throws javax.jms.JMSException
checkPermission in interface SecurityContextjavax.jms.JMSExceptionCopyright © 2016. All rights reserved.