Stack Exchange
log in
users (13)
rooms (12)
faq
Viktor Seifert
general
recent
conversations
Java
Dedicated to the discussion of the Java programming language a...
2
Viktor Seifert
Dec 6, 2017 16:35
on the topic of sharing maven artifacts: you also can run your own (inhouse) artifact server
Viktor Seifert
Nov 7, 2017 16:17
@Julo0sS well thats a lesson for me as well ;)
Viktor Seifert
Nov 7, 2017 16:10
not very helpful
Viktor Seifert
Nov 7, 2017 16:10
it says that the ChoiceBox is not suitable for many rows
Viktor Seifert
Nov 7, 2017 16:09
@Julo0sS i read the russian post
Viktor Seifert
Nov 7, 2017 15:51
@rshah good luck with the assignment
Viktor Seifert
Nov 7, 2017 15:50
@rshah I haven't found anything (article etc) yet that deals with all topics
Viktor Seifert
Nov 7, 2017 15:48
well it talks about private and public keys, and you should have both if you have a certificate
Viktor Seifert
Nov 7, 2017 15:46
does not say anything about x.509 though
Viktor Seifert
Nov 7, 2017 15:46
@rshah
docs.oracle.com/javase/tutorial/security/apisign/gensig.html
deals with creating keys and signatures in java
Viktor Seifert
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
Viktor Seifert
Nov 7, 2017 15:35
i'll see if i find how to do it in java
Viktor Seifert
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/…
Viktor Seifert
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
Viktor Seifert
Nov 7, 2017 15:29
that one seems to be about handling the cert in code
Viktor Seifert
Nov 7, 2017 15:29
@rshah only the point "write RIA to create file signatures with either of their PGP private keys"
Viktor Seifert
Nov 7, 2017 15:28
seems like it to me
Viktor Seifert
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
Viktor Seifert
Nov 7, 2017 15:19
@rshah I'm sorry I don't have any experience in developing a Java RIA
Viktor Seifert
Nov 7, 2017 15:09
see
stackoverflow.com/questions/16480846/…
Viktor Seifert
Nov 7, 2017 15:09
is that what you're asking?
Viktor Seifert
Nov 7, 2017 15:08
@rshah seems like openssl can generate x.509 certificates
C#
General discussions about the c# language, Squirrels |
gist.gi...
4
Viktor Seifert
Oct 30, 2017 15:58
should be
localhost:57615/api/Users
or
localhost:57615/api/UsersController
Viktor Seifert
Oct 30, 2017 15:56
but it may be in your case
Viktor Seifert
Oct 30, 2017 15:56
usually the word 'controller' is not part of the path
Viktor Seifert
Oct 30, 2017 15:56
ah, then your URL is missing the controller name
Viktor Seifert
Oct 30, 2017 15:54
@MohamedAhmed yes
Viktor Seifert
Oct 30, 2017 15:53
@MohamedAhmed is there a route in the class containing the method?
Viktor Seifert
Oct 19, 2017 14:28
is it possible for you to get more detailed logs?
Viktor Seifert
Oct 19, 2017 14:22
why do you even lock something if all you're doing is deleting it?
Viktor Seifert
Oct 19, 2017 14:20
or just check after the deletion if the row was deleted
Viktor Seifert
Oct 12, 2017 09:05
i % 5 == 0
Viktor Seifert
Oct 11, 2017 14:31
maybe you can pass the username via the context to the value-provider
Viktor Seifert
Oct 11, 2017 14:30
is it possible to store some custom values in a HttpActionContext ?
Viktor Seifert
Oct 11, 2017 14:30
the microsoft article explains how
Viktor Seifert
Oct 11, 2017 14:29
@Wietlol i think you can implement a IValueProvider
Viktor Seifert
Oct 11, 2017 14:12
you might be able to identfy params by their name and/or type
Viktor Seifert
Oct 11, 2017 14:11
it's not strictly needed
Viktor Seifert
Oct 11, 2017 14:11
to mark params you would like to resolve in the authorization
Viktor Seifert
Oct 11, 2017 14:11
you would create that yourself
Viktor Seifert
Oct 11, 2017 14:10
i know
Viktor Seifert
Oct 11, 2017 14:10
check the article i posted above
Viktor Seifert
Oct 11, 2017 14:10
and you would resolve that in your BasicAuthenticationAttribute
Viktor Seifert
Oct 11, 2017 14:09
your handler-method would have param "[FromAuth] string user"
Viktor Seifert
Oct 11, 2017 14:08
maybe you can extend that so that it resolves a param of your handler
Viktor Seifert
Oct 11, 2017 14:08
@Wietlol seems ok at first glance
Viktor Seifert
Oct 11, 2017 14:07
docs.microsoft.com/en-us/aspnet/web-api/overview/…
Viktor Seifert
Oct 11, 2017 14:06
i think i've seen an example of how to set params of handlers somewhere
Viktor Seifert
Oct 11, 2017 14:05
the param would have an attribute like [FromAuth]
Viktor Seifert
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