Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7946093
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T01:03:04+00:00 2026-06-04T01:03:04+00:00

I am writing a Spring Restful Web Services Project. I need to write secure

  • 0

I am writing a Spring Restful Web Services Project. I need to write secure Web Services. For Security I am already using Spring Security+SSL, however now i need some security for encryption and message signing. I know how to encrypt the message from code, however i am looking for a mechanism to enable automatic encryption/decryption and message signing.

I have been searching for different alternatives for security including spring WSS and others but most of them are for SOAP. Could some one suggest me some better security mechanism and a link for the same.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T01:03:05+00:00Added an answer on June 4, 2026 at 1:03 am

    There are multiple ways to secure your restful webservices, unfortunately there are many links which provides information to secure a soap web services, but as restful gaining popularity, it is of utmost necessity to find a way to secure and to find a way to manage sessions of your restful web service.
    So to secure my Spring MVC with restful support, You need to atleast consider for three Aspect

    1) Authentication. — For Authentication Spring Security can be used.
    2) Authorization. — For Authorizing a request OAuth can be used.
    3) Securing the communication. — SSL can be used to secure the communication channel.
    4) Encryption — Again Oauth can solve the purpose
    5) Message Signing. — Again Oauth can solve the purpose

    So , to secure a restful webservice spring security + OAuth can be used. The other security mechanisms which can be used are Http Basic Security and Digest Security.

    Here is a very good example securing a spring restful webservice with spring security:
    http://java.dzone.com/articles/securing-restful-web-service

    Also to use spring security in conjunction with OAuth you can follow this tutorial:

    Spring security with OAuth

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing a RESTful web service using JAXB and Spring MVC. In my
I'm writing a web app using grails and spring-security 3.0.3 which requires me to
I am writing a Spring Restful webservices application using Spring MVC. I have used
I am writing a web app in Grails with the Acegi/Spring Security plug-in, and
I am writing a RESTful web application with Spring 3, and part of my
I am writing Web app in java using Spring Web MVC framework. Somehow validation
I'm writing a Spring 3 MVC based web app, using JSPs for my view
I am writing a web application using Spring MVC. I am using annotations for
I'm writing a web application using Spring/Hibernate that displays a report to a user,
Say you're writing a web page for fruit vendors using Spring MVC's SimpleFormController ,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.