Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Security by class fields #203

Open
thhart opened this issue May 29, 2020 · 1 comment
Open

Security by class fields #203

thhart opened this issue May 29, 2020 · 1 comment
Assignees

Comments

@thhart
Copy link

thhart commented May 29, 2020

It would be nice to initialize the security to allow all classes recursively which are referenced members of a class?
Or would this harm any security considerations?

@joehni joehni self-assigned this May 29, 2020
@joehni
Copy link
Member

joehni commented May 29, 2020

Actually, it is always your configuration of XStream. It would be your own risk to use such a functionality. Said that, if you know your object graph, why not. The types with XStream annotations are found the same way. There's actually another proposal to allow automatically all annotated types. You will have just to consider that XStream will test the types against the concrete Java type, which will be rejected if the member is declared e.g. using an interface.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants