|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.glassfish.grizzly.filterchain.BaseFilter
com.tinkerpop.rexster.filter.AbstractSecurityFilter
com.tinkerpop.rexster.filter.DefaultSecurityFilter
public class DefaultSecurityFilter
Provides authentication for Rexster for all services: RexPro, REST, and Dog House.
Utilizes a simple list of usernames and passwords in rexster.xml. Example:
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.tinkerpop.rexster.filter.AbstractSecurityFilter |
---|
AbstractSecurityFilter.Authorizer, AbstractSecurityFilter.User |
Field Summary |
---|
Fields inherited from class com.tinkerpop.rexster.filter.AbstractSecurityFilter |
---|
httpServletRequest, servletConfig, uriInfo |
Constructor Summary | |
---|---|
DefaultSecurityFilter()
|
Method Summary | |
---|---|
boolean |
authenticate(String username,
String password)
Checks the users map to determine if the username and password supplied is one of the ones available.. |
void |
configure(org.apache.commons.configuration.XMLConfiguration configuration)
Reads the configuration from rexster.xml and converts it to a map of usernames and passwords. |
String |
getName()
The name of the security filter. |
Methods inherited from class com.tinkerpop.rexster.filter.AbstractSecurityFilter |
---|
filter, handleRead |
Methods inherited from class org.glassfish.grizzly.filterchain.BaseFilter |
---|
createContext, exceptionOccurred, getFilterChain, getIndex, handleAccept, handleClose, handleConnect, handleEvent, handleWrite, onAdded, onFilterChainChanged, onRemoved |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultSecurityFilter()
Method Detail |
---|
public boolean authenticate(String username, String password)
authenticate
in class AbstractSecurityFilter
public void configure(org.apache.commons.configuration.XMLConfiguration configuration)
configure
in class AbstractSecurityFilter
public String getName()
AbstractSecurityFilter
getName
in class AbstractSecurityFilter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |