Can somebody please explain how security in RAML works. All of the examples seem to relate to using OAuth. My API simply needs to get a token ensure that the token exists in the header for all subsequent requests. I can’t seem to find anything that covers how to do this.

Just to be clear, the securitySchemes and securedBy is mostly for documentation purposes correct? I am trying to undersand how something like the JAX-RS generator would use it (if it does?), or if this is primarily to help document resources that are implemented with security.