Questions tagged as 'java'

1
answer

REGEX password validation

I have a validation problem and I can not apply within a simple structure, 3 validations can not have alphanumeric decreasing, increasing or repeated in a same password.    For example: 00000000, 01234567, 98765432, aaaaaaaa, aa1123456 Ca...
asked by 28.07.2016 / 17:12
1
answer

What programming should be done to use Spring Security with Jboss with annotations?

As per requirements of a project that is in the research phase, I need a large distributed system to work properly with Spring, right now I'm having a hard time integrating Spring Security 3.2 with JBoss EAP 6.3. It's a bit difficult to defin...
asked by 08.06.2015 / 21:12
1
answer

How to display an html page in a JTextPane?

I'm trying to display / embed a php page in a JtextPane , it works but I do not have HTML control, it only displays the text that the page generates and I'd like to display it with HTML, <div> , CSS , but I'm not getting any su...
asked by 11.06.2015 / 22:37
3
answers

Retrieve logged in user

I have Java Web application, but I want to do the following: When I log into my application with a certain user then I need to do some operations, such as saving some information in the database, but I want it at the time I do this insertion,...
asked by 11.06.2015 / 22:35
1
answer

JTable does not save information when there is focus on cell [closed]

My JTable does not save the information when there is focus on the cell. In order to effectively save the information I need to manually focus and then click the "Register" button. How can I make this process automatic, every time I...
asked by 22.09.2014 / 21:06
1
answer

Choose encryption in SSL

How can I define exactly which encryption I will use in the routine below? I want to define for example that the encryption to be used is AES, or DES, or 3DES ... // Setup truststore KeyStore trustStore = null; trustStore = KeyStore.getInstanc...
asked by 13.10.2014 / 04:46
3
answers

How to test the Service layer in a web service application, using mockito and junit

I have a class of services that will receive a dependency injection of an object responsible for the persistence layer. In this service class are all my methods that will respond to the REST call of the web service. The problem is: I would...
asked by 06.09.2014 / 17:12
1
answer

Spring Security without authentication

I have a system that already authenticates the user, and controls access to pages that require authentication, I need to use spring security to control access to pages by user rules and to control access to certain resources, such as a user only...
asked by 17.06.2015 / 14:49
1
answer

How to solve DIRTY_WORKTREE

I'm trying to merge a git using eclipse, but it gives me an error:    DIRTY_WORKTREE "filename". I have tried to revert commit and resetar , but neither option works.     
asked by 23.06.2015 / 14:58
1
answer

Error creating Java Virtual Machine

I was running an rmi application in Eclipse Luna and the following message appeared:    "Could not create the Java Virtual Machine . A fatal exception has occurred. Program will closed. ". The operating system used is Window...
asked by 18.06.2015 / 00:03