[security-dev] Supporting different credential types from a single authentication endpoint

Pedro Igor Silva psilva at redhat.com
Thu Jun 6 20:37:41 EDT 2013


    I would like to create a generic authentication endpoint using JAX-RS (with a single @Path for authentication) to support multiple credentials. Each credential type may have its own payload format, so I need to convert the payload to the correct implementation before authenticating.
    Do I have to use @Provider for this "dynamic" behavior ? Or there is a more easy way to achieve that ?

    What about using custom mime types for each credential type ?
Pedro Igor

More information about the security-dev mailing list