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 8963219
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:18:41+00:00 2026-06-15T16:18:41+00:00

I need to implement message level security in a REST API and have some

  • 0

I need to implement message level security in a REST API and have some concerns and questions. I found the answer here:
Message Level Security in Rest Web services

only partially helpful.

We currently support standard SSL transport security and several authentication methods including:

  • Basic http auth (required by some network equipment services that
    talk to our API’s)
  • HMAC with pre-shared secrete key in both SHA1 and SHA256 flavors.
  • Client identity certs sent @ the TLS level.
  • SAML 2.0

Why we need message level security because:

  • Customer industries include health care, financial and government, among others, and they often frown on SSL only.
  • Need to guarantee end to end security. Through reverse proxies, SSL accelerators, etc…
  • Some data passed through the services will include very sensitive data.
  • Need to have a good answer for customers that insist that SOAP’s WS-* security standards are “Enterprise strength” web services and REST APIs are not.

My initial thought is to use an PKCS#7 envelope, as an option, if client applications understand how to process enveloped responses.

I want client applications to tell the API that they want a secured response or tell the API that the message they are POSTing or PUTing is secured.

My real question is, should this be communicated through a media type? E.g.:

  • Content-Type: application/vnd.resourcetype1+json+pkcs7
  • Content-Type: txt/csv+pkcs7

i don’t want to loose information on the media type that is enveloped.

It gets complicated as in some cases the signature is enough. Others require encryption as well. The term “pkcs7” is vague as to how the envelope is constructed.

I want the client and server to tell each other the type of content they are sending and the type of content they understand through standard HTTP headers.

  • 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-15T16:18:43+00:00Added an answer on June 15, 2026 at 4:18 pm

    Of course, it is up to you how to define your API, there is no right or wrong way, however S/MIME is a very well understood message format, well suited to the internet. As is PGP/MIME if your prefer a de-centralised trust hierarchy. Since these are well understood formats, it will allow clients to adopt existing libraries to process these message bodies.

    If you are adament you do not want to use a multi-part response, you may want to take a look at the Content-Encoding header, besides just Content-Type. You could then specify the signature/encryption format as a custom encoding type.

    There are significant benefits to using HTTP as an application protocol and not just a transport protocol, but you seem to understand that already. Be sure you set and parse the Accept* headers correctly, including q-values. Beware of things such as the default of q=1 meaning equal (not descending) preference, and q=0.

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

Sidebar

Related Questions

I need to IMPLEMENT(not to use some library/open source) an event/message system. I have
I need to implement a very secured Web Service using WCF. I have read
I need to implement some new functions on an editor. I picked Emacs -
I need to implement a message board with rating system. Something similar to stack
I need to implement a text link that triggers a message box. Premises :
I need to access the selection in Emacs buffer. I have found this article
I have a problem I would like some help at. I need to create
I have an application where i need to write some data to the serial
I need to implement a simple message bus: One process only thus no need
I need to implement Sign Sign Out in Java using Spring Security. What CAS

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.