Is “postconstruct” something in java like this?

|
martin_angelo 2022-06-29 00:15:15
javaofficial-25255.jpg
Is “postconstruct” something in java like this?
JorgeXYZPT 2022-06-29 00:16:12
nop, only example
martin_angelo 2022-06-29 00:16:30
ah ok.
martin_angelo 2022-06-29 00:17:22
I recommend you, to also ask in other groups, which are more focused on webapps. Unless someone else has an idea (maybe @Jaschar or @JFCostta )
JorgeXYZPT 2022-06-29 00:22:03
I dont have more groups 😛
martin_angelo 2022-06-29 00:28:14
not yet 😛
JFCostta 2022-06-29 03:04:12
JorgeXYZPT 2022-06-29 00:22:03
I dont have more groups 😛

I’d recommend the same as @martin_angelo did, working with certificates adds an unnecessary complexity when a user account system would solve your problem. Is this really a project requirement?

Jaschar 2022-06-29 18:39:54
martin_angelo 2022-06-29 00:17:22
I recommend you, to also ask in other groups, which are more focused on webapps. Unless someone else has an idea (maybe @Jaschar or @JFCostta )

I definitely strongly recommend to use a user account system. With user name and password and additionally a user certificate for authentication.

The certificate should be uploaded by the user everytime during log-in.

The certificate should be deleted when the session is expired.

Jaschar 2022-06-29 18:44:18
This exactly how the German tax web application works which is called ELSTER to secure all user related tax data.

The tax payer need to login with email an password an need to upload an encryption certificate to decrypt and encrypt his/her data.

After log off or session is expired the user has to login and upload the certificate again.

JorgeXYZPT 2022-06-29 19:27:05
bad solution: https://stackoverflow.com/questions/27362588/mutual-authentication-with-tomcat-7

why bad solution? because i only controlling who access app with certificate.
good solution is controlling who decrypt data with certificate .

Mutual authentication with Tomcat 7Stack Overflow
I’m trying to set up a Java web service running in Tomcat 7 to use mutual (2-way) authentication. It seems like no matter what I do, connecting to the service on the secure port isn’t working.

He…

JorgeXYZPT 2022-06-29 19:40:44
https://www.cloudflare.com/learning/access-management/what-is-mutual-tls/
Jaschar 2022-06-29 21:06:02
@R_r_F_BR Welcome Back
R_r_F_BR 2022-06-30 04:48:25
Thanks, Jaschar
martin_angelo 2022-07-01 03:46:43
Oh dear…beware of hackerRank code challenges for job interviews. I failed miserably 😒
martin_angelo 2022-07-01 03:46:57
(Using Java)
R_r_F_BR 2022-07-01 03:51:11
Have you even failed with easy questions (the first ones)???
martin_angelo 2022-07-01 04:23:19
The first one was not so easy – at least I didn’t find the easy solution / correct algorithm, only part of it.
The second question was about a web api request and json handling. Unfortunately I wasted a lot if time trying to make a json lib working. Finally I found out, which libs are allowed, but then I didn’t have any more time. And last was some SQL task, but I didn’t start it. In total I had 70 minutes. I think the first challenge was intermediate/advanced, the second one was intermediate. The third one was maybe easy, but I didn’t take a look. I only had 1 minute left….
martin_angelo 2022-07-02 04:02:29
what does it show, if you open the pom.xml in the most simple editor on your PC?
(if it’s the same, the file is corrupted. If not, there is something wrong with eclipse.)
martin_angelo 2022-07-02 10:18:12
martin_angelo 2022-07-01 04:23:19
The first one was not so easy – at least I didn’t find the easy solution / correct algorithm, only part of it.
The second question was about a web api request and json handling. Unfortunately I wasted a lot if time trying to make a json lib working. Finally I found out, which libs are allowed, but then I didn’t have any more time. And last was some SQL task, but I didn’t start it. In total I had 70 minutes. I think the first challenge was intermediate/advanced, the second one was intermediate. The third one was maybe easy, but I didn’t take a look. I only had 1 minute left….

Update: My feelings about the complexity and the time limits where right. I was very furious yesterday and wrote a polite email, explaining my point of view where I also expressed my opinion about disadvantages of using such a platform (e.g. the tasks are not realistic Szenarios, no professional developer works without an IDE nowadays, no professional developer debugs with System.out.println, …).
Friday morning, I received an email, where the HR said the engineering team agrees with me and will come back at me in the beginning of next week. After 4 hours I received another email where I got invited to the next interview.

martin_angelo 2022-07-02 10:33:17
So, when you encounter such a situation it’s worth to write an email, explain the situation and maybe mention some ideas about how to solve the things that you didn’t manage to in time 👍
|