|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.security.AbstractRoleMap
com.caucho.security.XmlRoleMap
@Service public class XmlRoleMap
The XML role-map reads a static file for authentication.
<role-map url="xml:path=WEB-INF/role-map.xml"/>
The format of the static file is as follows:
<role-map>
<role name="admin" user="Harry Potter"/>
...
</users>
Nested Class Summary | |
---|---|
static class |
XmlRoleMap.Role
|
Constructor Summary | |
---|---|
XmlRoleMap()
|
Method Summary | |
---|---|
void |
addRole(XmlRoleMap.Role role)
Adds a user from the configuration. |
Path |
getPath()
Gets the path to the XML file. |
void |
init()
Initialize the XML authenticator. |
java.lang.Boolean |
isUserInRole(java.lang.String roleName,
java.security.Principal user)
Returns the PasswordUser |
void |
reload()
Reload the authenticator. |
void |
setPath(Path path)
Sets the path to the XML file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlRoleMap()
Method Detail |
---|
public void setPath(Path path)
public Path getPath()
public void addRole(XmlRoleMap.Role role)
<init user='Harry Potter:quidditch:user,webdav'/>
@PostConstruct public void init()
init
in class AbstractRoleMap
public java.lang.Boolean isUserInRole(java.lang.String roleName, java.security.Principal user)
public void reload()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |