Тёмный

Singleton Pattern With Reflection Attack - How to protect reflection attacks? 

Naveen AutomationLabs
Подписаться 389 тыс.
Просмотров 2,7 тыс.
50% 1

In this video, I have explained how to protect against reflection attacks, you can modify the constructor to throw an exception if an instance already exists
Schedule a meeting in case of any queries/guidance/counselling:
calendly.com/n...
~~~Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
www.youtube.co...
Follow me on my Facebook Page:
/ naveenqtpexpert
Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:
t.me/joinchat/...
Naveen AutomationLabs Paid Courses:
GIT Hub Course:
naveenautomati...
Java & Selenium:
naveenautomati...
Java & API +POSTMAN + RestAssured + HttpClient:
naveenautomati...

Опубликовано:

 

5 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 5   
@__as_
@__as_ 3 месяца назад
Very Nice 👍 Plz continue this series of covering important design patterns
@sakshiaggarwal6199
@sakshiaggarwal6199 29 дней назад
Thank you so much Naveen🙏
@anureshnanda07
@anureshnanda07 2 месяца назад
Quite an informative one and really look forward to more such videos in implementing various such design patterns in test automation frameworks !!
@leninanthony
@leninanthony Месяц назад
I can create 2 object if I call the getInstance method after calling the reflection method. Frist in constructor in checks for object value is null, if fails and create a new object. Again new object is created when calling getInstance method. Browser instance2; Constructor constructor = Browser.class.getDeclaredConstructor(); constructor.setAccessible(true); instance2=constructor.newInstance(); Browser instance1= Browser.getInstance(); System.out.println("instance 1 : "+instance1.hashCode()); System.out.println("instance 2 : "+instance2.hashCode()); I see different has code for the above code. How to restrict this?
@laxmannarkhede8116
@laxmannarkhede8116 19 дней назад
Hi bro, did you got solution for this
Далее
Редакция. News: 137-я неделя
42:24
Просмотров 621 тыс.
Mcdonalds cups and ball trick 🤯🥤 #shorts
00:25
Просмотров 612 тыс.
5 Design Patterns That Are ACTUALLY Used By Developers
9:27
Playwright Interview Questions - Tips and Tricks
10:12
Просмотров 1,6 тыс.
Reflection in Java: The Fundamentals - Java Programming
16:03
Factory Pattern With Selenium WebDriver + Java + TestNG
20:57