|
Spring Extensions | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.myjeeva.spring.security.util.SecureUriMapperImpl
public class SecureUriMapperImpl
Concrete implementation of SecureUriMapper
that obtains URI/URL's pass key from the application context.
So getPassKey(String)
method applies the Ant-style path patterns for verification.
Constructor Summary | |
---|---|
SecureUriMapperImpl()
Constructor |
Method Summary | |
---|---|
String |
getPassKey(String uri)
getting a pass key for given URI/URL |
Map |
getUriMappings()
Returns the respective URI/URL name mapping specified via setUriMappings(Map) |
void |
setUriMappings(Map inputUriMappings)
Set to map the pass key and Ant-style path patterns In a Spring XML ApplicationContext, a definition would look something like this: |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SecureUriMapperImpl()
Method Detail |
---|
public Map getUriMappings()
setUriMappings(Map)
public void setUriMappings(Map inputUriMappings)
<property name="uriMappings"> <map> <entry key="tg54f54h59e"><value>/data/secure/*</value></entry> <entry key="34ti94l2qo"><value>/protected/*</value></entry> </map> </property>
inputUriMappings
- - A Map consisting of String keys and String values, where for each entry the key is the string
representation of an password, and the value is the string representation of the corresponding Ant-style path patterns;
where filter will intercept.
IllegalArgumentException
- if input map does not consist of String keys and values.public String getPassKey(String uri)
getPassKey
in interface SecureUriMapper
uri
- a String
object.
null
if no match
|
Spring Extensions | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |