|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.granite.messaging.amf.io.RegexAMF3DeserializerSecurizer
public class RegexAMF3DeserializerSecurizer
A default implementation of the securizer interface that prevents arbitrary class instantiation based on a regex pattern.
| Constructor Summary | |
|---|---|
RegexAMF3DeserializerSecurizer()
|
|
| Method Summary | |
|---|---|
boolean |
allowInstantiation(String className)
Checks if the given class name isn't matched by the configured pattern. |
String |
getParam()
Return this securizer pattern. |
void |
setParam(String param)
Set this securizer pattern. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RegexAMF3DeserializerSecurizer()
| Method Detail |
|---|
public boolean allowInstantiation(String className)
allowInstantiation in interface AMF3DeserializerSecurizerclassName - the class to check.
true if the given class name is allowed to be
instantiated, false otherwise.public void setParam(String param)
setParam in interface AMF3DeserializerSecurizerparam - a regex containing allowed class name patterns.
PatternSyntaxException - if the given value isn't a valid
regex pattern.public String getParam()
getParam in interface AMF3DeserializerSecurizer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||