Viktor Seifert

Java

Dedicated to the discussion of the Java programming language a...
Dec 6, 2017 16:35
on the topic of sharing maven artifacts: you also can run your own (inhouse) artifact server
Nov 7, 2017 16:17
@Julo0sS well thats a lesson for me as well ;)
Nov 7, 2017 16:10
not very helpful
Nov 7, 2017 16:10
it says that the ChoiceBox is not suitable for many rows
Nov 7, 2017 16:09
@Julo0sS i read the russian post
Nov 7, 2017 15:51
@rshah good luck with the assignment
Nov 7, 2017 15:50
@rshah I haven't found anything (article etc) yet that deals with all topics
Nov 7, 2017 15:48
well it talks about private and public keys, and you should have both if you have a certificate
Nov 7, 2017 15:46
does not say anything about x.509 though
Nov 7, 2017 15:46
@rshah docs.oracle.com/javase/tutorial/security/apisign/gensig.html deals with creating keys and signatures in java
Nov 7, 2017 15:39
@rshah That's would be an option, I don't know if it is in the "spirit" of the assignment
Nov 7, 2017 15:35
i'll see if i find how to do it in java
Nov 7, 2017 15:35
@rshah this one seems to be about using openssl to create a signature using a certificate: stackoverflow.com/questions/10782826/…
Nov 7, 2017 15:31
@rshah once you have the cert you should be able use openssl to generate a signature for a file. but let me do a quick search
Nov 7, 2017 15:29
that one seems to be about handling the cert in code
Nov 7, 2017 15:29
@rshah only the point "write RIA to create file signatures with either of their PGP private keys"
Nov 7, 2017 15:28
seems like it to me
Nov 7, 2017 15:28
@rshah I looked at your assignment, very litte of it seems to have to do with handling x.509 certs in your own code
Nov 7, 2017 15:19
@rshah I'm sorry I don't have any experience in developing a Java RIA
Nov 7, 2017 15:09
is that what you're asking?
Nov 7, 2017 15:08
@rshah seems like openssl can generate x.509 certificates
 

C#

General discussions about the c# language, Squirrels | gist.gi...
Oct 30, 2017 15:56
but it may be in your case
Oct 30, 2017 15:56
usually the word 'controller' is not part of the path
Oct 30, 2017 15:56
ah, then your URL is missing the controller name
Oct 30, 2017 15:54
@MohamedAhmed yes
Oct 30, 2017 15:53
@MohamedAhmed is there a route in the class containing the method?
Oct 19, 2017 14:28
is it possible for you to get more detailed logs?
Oct 19, 2017 14:22
why do you even lock something if all you're doing is deleting it?
Oct 19, 2017 14:20
or just check after the deletion if the row was deleted
Oct 12, 2017 09:05
i % 5 == 0
Oct 11, 2017 14:31
maybe you can pass the username via the context to the value-provider
Oct 11, 2017 14:30
is it possible to store some custom values in a HttpActionContext ?
Oct 11, 2017 14:30
the microsoft article explains how
Oct 11, 2017 14:29
@Wietlol i think you can implement a IValueProvider
Oct 11, 2017 14:12
you might be able to identfy params by their name and/or type
Oct 11, 2017 14:11
it's not strictly needed
Oct 11, 2017 14:11
to mark params you would like to resolve in the authorization
Oct 11, 2017 14:11
you would create that yourself
Oct 11, 2017 14:10
i know
Oct 11, 2017 14:10
check the article i posted above
Oct 11, 2017 14:10
and you would resolve that in your BasicAuthenticationAttribute
Oct 11, 2017 14:09
your handler-method would have param "[FromAuth] string user"
Oct 11, 2017 14:08
maybe you can extend that so that it resolves a param of your handler
Oct 11, 2017 14:08
@Wietlol seems ok at first glance
Oct 11, 2017 14:06
i think i've seen an example of how to set params of handlers somewhere
Oct 11, 2017 14:05
the param would have an attribute like [FromAuth]
Oct 11, 2017 14:05
but if you are creating your own attribute, can you not use that to "inject" that into say a method param