|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.thoughtworks.xstream.mapper.MapperWrapper
com.thoughtworks.xstream.mapper.SecurityMapper
public class SecurityMapper
A Mapper implementation injecting a security layer based on permission rules for any type required in the unmarshalling process.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.thoughtworks.xstream.mapper.Mapper |
|---|
com.thoughtworks.xstream.mapper.Mapper.ImplicitCollectionMapping, com.thoughtworks.xstream.mapper.Mapper.Null |
| Constructor Summary | |
|---|---|
SecurityMapper(com.thoughtworks.xstream.mapper.Mapper wrapped)
Construct a SecurityMapper. |
|
SecurityMapper(com.thoughtworks.xstream.mapper.Mapper wrapped,
TypePermission[] permissions)
Construct a SecurityMapper. |
|
| Method Summary | |
|---|---|
void |
addPermission(TypePermission permission)
Add a new permission. |
java.lang.Class |
realClass(java.lang.String elementName)
|
| Methods inherited from class com.thoughtworks.xstream.mapper.MapperWrapper |
|---|
aliasForAttribute, aliasForAttribute, aliasForSystemAttribute, attributeForAlias, attributeForAlias, defaultImplementationOf, getConverterFromAttribute, getConverterFromAttribute, getConverterFromAttribute, getConverterFromItemType, getConverterFromItemType, getConverterFromItemType, getFieldNameForItemTypeAndName, getImplicitCollectionDefForFieldName, getItemTypeForItemFieldName, getLocalConverter, isImmutableValueType, lookupMapperOfType, realMember, serializedClass, serializedMember, shouldSerializeMember |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SecurityMapper(com.thoughtworks.xstream.mapper.Mapper wrapped)
wrapped - the mapper chain
public SecurityMapper(com.thoughtworks.xstream.mapper.Mapper wrapped,
TypePermission[] permissions)
wrapped - the mapper chainpermissions - the predefined permissions| Method Detail |
|---|
public void addPermission(TypePermission permission)
Permissions are evaluated in the added sequence. An instance of NoTypePermission or
AnyTypePermission will implicitly wipe any existing permission.
permission - the permission to add.public java.lang.Class realClass(java.lang.String elementName)
realClass in interface com.thoughtworks.xstream.mapper.MapperrealClass in class com.thoughtworks.xstream.mapper.MapperWrapper
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||